Have clang_getSpellingLocation() use the same logic as DiagnosticRenderer for...
Have clang_getSpellingLocation() use the same logic as DiagnosticRenderer for plowing through macros. This fixes a subtle bug reported in <rdar://problem/12584554> where a double-nested macro could lead to an incorrect fixit location with live issues. This fix also uncovers a bunch of subtle bugs in our indexer test cases which are now fixed (mostly around source ranges for attributes). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170468 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- test/Index/c-index-api-loadTU-test.m 26 additions, 12 deletionstest/Index/c-index-api-loadTU-test.m
- test/Index/fix-its.m 28 additions, 0 deletionstest/Index/fix-its.m
- test/Index/preamble_macro_template.cpp 2 additions, 2 deletionstest/Index/preamble_macro_template.cpp
- tools/libclang/CXSourceLocation.cpp 6 additions, 8 deletionstools/libclang/CXSourceLocation.cpp
test/Index/fix-its.m
0 → 100644
Please register or sign in to comment