diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-03 02:20:36 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-03 02:20:36 +0000 |
commit | 7ca77357ced396b7548806e404af70a1c4bcf567 (patch) | |
tree | eddb29f4bb858be956504b5b3de41e9cc70af38b /clang/tools/c-index-test/c-index-test.c | |
parent | e9681525649adf23f626641d5e0c2ec08b756927 (diff) | |
download | bcm5719-llvm-7ca77357ced396b7548806e404af70a1c4bcf567.tar.gz bcm5719-llvm-7ca77357ced396b7548806e404af70a1c4bcf567.zip |
[libclang] Add missing return in clang_getExpansionLocation that resulted in that function
always returning a null file/line/column.
Also add at least one use of clang_getExpansionLocation inside c-index-test that would have
made the tests to catch that.
llvm-svn: 143606
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index b46e3842a0d..3bfdeeed2a5 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -340,7 +340,7 @@ static const char* GetCursorSource(CXCursor Cursor) { CXSourceLocation Loc = clang_getCursorLocation(Cursor); CXString source; CXFile file; - clang_getSpellingLocation(Loc, &file, 0, 0, 0); + clang_getExpansionLocation(Loc, &file, 0, 0, 0); source = clang_getFileName(file); if (!clang_getCString(source)) { clang_disposeString(source); |