Commit e1ca6946be

Andrew Kelley <andrew@ziglang.org>
2020-10-27 22:16:43
rename ZigClangFloatingLiteral_getValueAsApproximateDouble
1 parent 7c2bde1
src/clang.zig
@@ -434,8 +434,8 @@ pub const FieldDecl = opaque {
 pub const FileID = opaque {};
 
 pub const FloatingLiteral = opaque {
-    pub const getValueAsApproximateDouble = ZigClangAPFloat_getValueAsApproximateDouble;
-    extern fn ZigClangAPFloat_getValueAsApproximateDouble(*const FloatingLiteral) f64;
+    pub const getValueAsApproximateDouble = ZigClangFloatingLiteral_getValueAsApproximateDouble;
+    extern fn ZigClangFloatingLiteral_getValueAsApproximateDouble(*const FloatingLiteral) f64;
 };
 
 pub const ForStmt = opaque {
src/zig_clang.cpp
@@ -2494,7 +2494,7 @@ unsigned ZigClangAPFloat_convertToHexString(const ZigClangAPFloat *self, char *D
     return casted->convertToHexString(DST, HexDigits, UpperCase, (llvm::APFloat::roundingMode)RM);
 }
 
-double ZigClangAPFloat_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self) {
+double ZigClangFloatingLiteral_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self) {
     auto casted = reinterpret_cast<const clang::FloatingLiteral *>(self);
     return casted->getValueAsApproximateDouble();
 }
src/zig_clang.h
@@ -1105,7 +1105,7 @@ ZIG_EXTERN_C struct ZigClangSourceLocation ZigClangDeclStmt_getBeginLoc(const st
 
 ZIG_EXTERN_C unsigned ZigClangAPFloat_convertToHexString(const struct ZigClangAPFloat *self, char *DST,
         unsigned HexDigits, bool UpperCase, enum ZigClangAPFloat_roundingMode RM);
-ZIG_EXTERN_C double ZigClangAPFloat_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self);
+ZIG_EXTERN_C double ZigClangFloatingLiteral_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self);
 
 ZIG_EXTERN_C enum ZigClangStringLiteral_StringKind ZigClangStringLiteral_getKind(const struct ZigClangStringLiteral *self);
 ZIG_EXTERN_C const char *ZigClangStringLiteral_getString_bytes_begin_size(const struct ZigClangStringLiteral *self,