authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-27 14:16:43-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-27 14:16:43-07:00
loge1ca6946bee3acf9cbdf6e5ea30fa2d55304365d
tree22a4f47cd2625e52d49437f1cd9f1f6d64d53dc2
parent7c2bde1f07f5e672bb2320c517568dab9edab652

rename ZigClangFloatingLiteral_getValueAsApproximateDouble


3 files changed, 4 insertions(+), 4 deletions(-)

src/clang.zig+2-2
......@@ -434,8 +434,8 @@ pub const FieldDecl = opaque {
434434pub const FileID = opaque {};
435435
436436pub const FloatingLiteral = opaque {
437 pub const getValueAsApproximateDouble = ZigClangAPFloat_getValueAsApproximateDouble;
438 extern fn ZigClangAPFloat_getValueAsApproximateDouble(*const FloatingLiteral) f64;
437 pub const getValueAsApproximateDouble = ZigClangFloatingLiteral_getValueAsApproximateDouble;
438 extern fn ZigClangFloatingLiteral_getValueAsApproximateDouble(*const FloatingLiteral) f64;
439439};
440440
441441pub const ForStmt = opaque {
src/zig_clang.cpp+1-1
......@@ -2494,7 +2494,7 @@ unsigned ZigClangAPFloat_convertToHexString(const ZigClangAPFloat *self, char *D
24942494 return casted->convertToHexString(DST, HexDigits, UpperCase, (llvm::APFloat::roundingMode)RM);
24952495}
24962496
2497double ZigClangAPFloat_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self) {
2497double ZigClangFloatingLiteral_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self) {
24982498 auto casted = reinterpret_cast<const clang::FloatingLiteral *>(self);
24992499 return casted->getValueAsApproximateDouble();
25002500}
src/zig_clang.h+1-1
......@@ -1105,7 +1105,7 @@ ZIG_EXTERN_C struct ZigClangSourceLocation ZigClangDeclStmt_getBeginLoc(const st
11051105
11061106ZIG_EXTERN_C unsigned ZigClangAPFloat_convertToHexString(const struct ZigClangAPFloat *self, char *DST,
11071107 unsigned HexDigits, bool UpperCase, enum ZigClangAPFloat_roundingMode RM);
1108ZIG_EXTERN_C double ZigClangAPFloat_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self);
1108ZIG_EXTERN_C double ZigClangFloatingLiteral_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self);
11091109
11101110ZIG_EXTERN_C enum ZigClangStringLiteral_StringKind ZigClangStringLiteral_getKind(const struct ZigClangStringLiteral *self);
11111111ZIG_EXTERN_C const char *ZigClangStringLiteral_getString_bytes_begin_size(const struct ZigClangStringLiteral *self,