[cfe-commits] r135148 - /cfe/trunk/tools/libclang/CIndex.cpp

Chandler Carruth chandlerc at gmail.com
Thu Jul 14 09:07:57 PDT 2011


Author: chandlerc
Date: Thu Jul 14 11:07:57 2011
New Revision: 135148

URL: http://llvm.org/viewvc/llvm-project?rev=135148&view=rev
Log:
Clean up two lingering comments that mention 'instantiation' w.r.t.
macros in libclang.

Modified:
    cfe/trunk/tools/libclang/CIndex.cpp

Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=135148&r1=135147&r2=135148&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Thu Jul 14 11:07:57 2011
@@ -2806,7 +2806,7 @@
     *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 @@
   }
   
   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;





More information about the cfe-commits mailing list