Skip to content

Commit 600f638

Browse files
glandiumemilio
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 2013b8c commit 600f638

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
@@ -1610,7 +1610,7 @@ impl SourceLocation {
16101610
let mut line = 0;
16111611
let mut col = 0;
16121612
let mut off = 0;
1613-
clang_getSpellingLocation(
1613+
clang_getFileLocation(
16141614
self.x, &mut file, &mut line, &mut col, &mut off,
16151615
);
16161616
(File { x: file }, line as usize, col as usize, off as usize)

0 commit comments

Comments
 (0)