summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-14 16:07:57 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-14 16:07:57 +0000
commit65c9c9bd6923450ed30e1b06e2fb668f913d0727 (patch)
tree12bd70ecb6461febfd40844b661afc42ab4e7821 /clang
parent2df6485d51bf516d3d916ee0c9cadf2e8c4ce22a (diff)
downloadbcm5719-llvm-65c9c9bd6923450ed30e1b06e2fb668f913d0727.tar.gz
bcm5719-llvm-65c9c9bd6923450ed30e1b06e2fb668f913d0727.zip
Clean up two lingering comments that mention 'instantiation' w.r.t.
macros in libclang. llvm-svn: 135148
Diffstat (limited to 'clang')
-rw-r--r--clang/tools/libclang/CIndex.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index c78584a3a72..756d570d911 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -2806,7 +2806,7 @@ void clang_getInstantiationLocation(CXSourceLocation location,
*static_cast<const SourceManager*>(location.ptr_data[0]);
SourceLocation InstLoc = SM.getInstantiationLoc(Loc);
- // Check that the FileID is invalid on the instantiation location.
+ // Check that the FileID is invalid on the expansion location.
// This can manifest in invalid code.
FileID fileID = SM.getFileID(InstLoc);
bool Invalid = false;
@@ -4541,8 +4541,8 @@ AnnotateTokensWorker::Visit(CXCursor cursor, CXCursor parent) {
}
if (clang_isPreprocessing(cursor.kind)) {
- // For macro instantiations, just note where the beginning of the macro
- // instantiation occurs.
+ // For macro expansions, just note where the beginning of the macro
+ // expansion occurs.
if (cursor.kind == CXCursor_MacroExpansion) {
Annotated[Loc.int_data] = cursor;
return CXChildVisit_Recurse;
OpenPOWER on IntegriCloud