summaryrefslogtreecommitdiffstats
path: root/clang/tools/CIndex/CIndex.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-05 16:10:30 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-05 16:10:30 +0000
commitf3df985ba781c71c2cc83f481ae2b1a2a70afce2 (patch)
treeea87899610d26b6b81c0d7784f32eeaf7deabf9f /clang/tools/CIndex/CIndex.cpp
parentfaa4905e0c5e40b5131793cab909f3ecd913dd9b (diff)
downloadbcm5719-llvm-f3df985ba781c71c2cc83f481ae2b1a2a70afce2.tar.gz
bcm5719-llvm-f3df985ba781c71c2cc83f481ae2b1a2a70afce2.zip
Code completion results that refer to macros now get the cursor kind
of macro definitions when passed to CIndex. Add test for code completion of macros via CIndex. llvm-svn: 100431
Diffstat (limited to 'clang/tools/CIndex/CIndex.cpp')
-rw-r--r--clang/tools/CIndex/CIndex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp
index 998fbbba22b..2d9b2cb3763 100644
--- a/clang/tools/CIndex/CIndex.cpp
+++ b/clang/tools/CIndex/CIndex.cpp
@@ -2333,7 +2333,7 @@ void clang_annotateTokens(CXTranslationUnit TU,
RegionOfInterest.setBegin(
cxloc::translateSourceLocation(clang_getTokenLocation(TU, Tokens[0])));
SourceLocation End
- = cxloc::translateSourceLocation(clang_getTokenLocation(TU,
+ = cxloc::translateSourceLocation(clang_getTokenLocation(TU,
Tokens[NumTokens - 1]));
RegionOfInterest.setEnd(CXXUnit->getPreprocessor().getLocForEndOfToken(End));
OpenPOWER on IntegriCloud