From: Chandler Carruth Date: Thu, 14 Jul 2011 16:07:57 +0000 (+0000) Subject: Clean up two lingering comments that mention 'instantiation' w.r.t. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cea731a9cb7de3f473d60e5ea544e25621cebd76;p=clang Clean up two lingering comments that mention 'instantiation' w.r.t. macros in libclang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135148 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index c78584a3a7..756d570d91 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -2806,7 +2806,7 @@ void clang_getInstantiationLocation(CXSourceLocation location, *static_cast(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;