summaryrefslogtreecommitdiffstats
path: root/clang/tools/CIndex/CXSourceLocation.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-26 17:06:03 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-26 17:06:03 +0000
commit27b4fa994d7bf7a9a5c49ffc860e60b814985957 (patch)
treee0f6cc92e962b55426d67e6f81b81bf838778b15 /clang/tools/CIndex/CXSourceLocation.h
parent86a8c957dac585dd59f6c5ece4f911f5ad4921d4 (diff)
downloadbcm5719-llvm-27b4fa994d7bf7a9a5c49ffc860e60b814985957.tar.gz
bcm5719-llvm-27b4fa994d7bf7a9a5c49ffc860e60b814985957.zip
Introduce a CIndex API for lexing the raw tokens within a given source
range. The token-annotation function does nothing, yet. llvm-svn: 94551
Diffstat (limited to 'clang/tools/CIndex/CXSourceLocation.h')
-rw-r--r--clang/tools/CIndex/CXSourceLocation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/CIndex/CXSourceLocation.h b/clang/tools/CIndex/CXSourceLocation.h
index 0eab273c35a..1f15f0832cc 100644
--- a/clang/tools/CIndex/CXSourceLocation.h
+++ b/clang/tools/CIndex/CXSourceLocation.h
@@ -38,8 +38,8 @@ static inline CXSourceLocation translateSourceLocation(ASTContext &Context,
static inline CXSourceRange translateSourceRange(ASTContext &Context,
SourceRange R) {
CXSourceRange Result = { &Context,
- R.getBegin().getRawEncoding(),
- R.getEnd().getRawEncoding() };
+ R.getBegin().getRawEncoding(),
+ R.getEnd().getRawEncoding() };
return Result;
}
OpenPOWER on IntegriCloud