Skip to content

Commit 35f0f9a

Browse files
glandiumpvdrz
authored andcommitted
Use clang_getFileLocation instead of clang_getSpellingLocation
Both had the same behavior... until llvm/llvm-project@2e770ed which fixed getSpellingLocation, but bindgen looks like it actually expects the getFileLocation result.
1 parent 62859b2 commit 35f0f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindgen/clang.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ impl SourceLocation {
16081608
let mut line = 0;
16091609
let mut col = 0;
16101610
let mut off = 0;
1611-
clang_getSpellingLocation(
1611+
clang_getFileLocation(
16121612
self.x, &mut file, &mut line, &mut col, &mut off,
16131613
);
16141614
(File { x: file }, line as usize, col as usize, off as usize)

0 commit comments

Comments
 (0)