diff --git a/src/clang.zig b/src/clang.zig index 162da5d53c..350afb90ca 100644 --- a/src/clang.zig +++ b/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 { diff --git a/src/zig_clang.cpp b/src/zig_clang.cpp index c2eb4f1524..1fa5bbe078 100644 --- a/src/zig_clang.cpp +++ b/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(self); return casted->getValueAsApproximateDouble(); } diff --git a/src/zig_clang.h b/src/zig_clang.h index 41a9bb670c..d128c74c7f 100644 --- a/src/zig_clang.h +++ b/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,