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 {...@@ -434,8 +434,8 @@ pub const FieldDecl = opaque {
434pub const FileID = opaque {};434pub const FileID = opaque {};
435435
436pub const FloatingLiteral = opaque {436pub const FloatingLiteral = opaque {
437 pub const getValueAsApproximateDouble = ZigClangAPFloat_getValueAsApproximateDouble;437 pub const getValueAsApproximateDouble = ZigClangFloatingLiteral_getValueAsApproximateDouble;
438 extern fn ZigClangAPFloat_getValueAsApproximateDouble(*const FloatingLiteral) f64;438 extern fn ZigClangFloatingLiteral_getValueAsApproximateDouble(*const FloatingLiteral) f64;
439};439};
440440
441pub const ForStmt = opaque {441pub const ForStmt = opaque {
src/zig_clang.cpp+1-1
...@@ -2494,7 +2494,7 @@ unsigned ZigClangAPFloat_convertToHexString(const ZigClangAPFloat *self, char *D...@@ -2494,7 +2494,7 @@ unsigned ZigClangAPFloat_convertToHexString(const ZigClangAPFloat *self, char *D
2494 return casted->convertToHexString(DST, HexDigits, UpperCase, (llvm::APFloat::roundingMode)RM);2494 return casted->convertToHexString(DST, HexDigits, UpperCase, (llvm::APFloat::roundingMode)RM);
2495}2495}
24962496
2497double ZigClangAPFloat_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self) {2497double ZigClangFloatingLiteral_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self) {
2498 auto casted = reinterpret_cast<const clang::FloatingLiteral *>(self);2498 auto casted = reinterpret_cast<const clang::FloatingLiteral *>(self);
2499 return casted->getValueAsApproximateDouble();2499 return casted->getValueAsApproximateDouble();
2500}2500}
src/zig_clang.h+1-1
...@@ -1105,7 +1105,7 @@ ZIG_EXTERN_C struct ZigClangSourceLocation ZigClangDeclStmt_getBeginLoc(const st...@@ -1105,7 +1105,7 @@ ZIG_EXTERN_C struct ZigClangSourceLocation ZigClangDeclStmt_getBeginLoc(const st
11051105
1106ZIG_EXTERN_C unsigned ZigClangAPFloat_convertToHexString(const struct ZigClangAPFloat *self, char *DST,1106ZIG_EXTERN_C unsigned ZigClangAPFloat_convertToHexString(const struct ZigClangAPFloat *self, char *DST,
1107 unsigned HexDigits, bool UpperCase, enum ZigClangAPFloat_roundingMode RM);1107 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
1110ZIG_EXTERN_C enum ZigClangStringLiteral_StringKind ZigClangStringLiteral_getKind(const struct ZigClangStringLiteral *self);1110ZIG_EXTERN_C enum ZigClangStringLiteral_StringKind ZigClangStringLiteral_getKind(const struct ZigClangStringLiteral *self);
1111ZIG_EXTERN_C const char *ZigClangStringLiteral_getString_bytes_begin_size(const struct ZigClangStringLiteral *self,1111ZIG_EXTERN_C const char *ZigClangStringLiteral_getString_bytes_begin_size(const struct ZigClangStringLiteral *self,