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

Argyrios Kyrtzidis akyrtzi at gmail.com
Mon Oct 31 00:19:54 PDT 2011


Author: akirtzidis
Date: Mon Oct 31 02:19:54 2011
New Revision: 143337

URL: http://llvm.org/viewvc/llvm-project?rev=143337&view=rev
Log:
[libclang] Rename VisitIncludedPreprocessingEntries -> VisitIncludedEntities

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=143337&r1=143336&r2=143337&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Mon Oct 31 02:19:54 2011
@@ -193,9 +193,9 @@
   /// after visiting other declarations.
   bool VisitPreprocessorLast;
 
-  /// \brief Whether we should visit the preprocessing record entries that are
-  /// #included inside the \arg RegionOfInterest.
-  bool VisitIncludedPreprocessingEntries;
+  /// \brief Whether we should visit declarations or preprocessing record
+  /// entries that are #included inside the \arg RegionOfInterest.
+  bool VisitIncludedEntities;
   
   /// \brief When valid, a source range to which the cursor should restrict
   /// its search.
@@ -249,7 +249,7 @@
     : TU(TU), AU(static_cast<ASTUnit*>(TU->TUData)),
       Visitor(Visitor), ClientData(ClientData),
       VisitPreprocessorLast(VisitPreprocessorLast),
-      VisitIncludedPreprocessingEntries(VisitIncludedPreprocessingEntries),
+      VisitIncludedEntities(VisitIncludedPreprocessingEntries),
       RegionOfInterest(RegionOfInterest), DI_current(0)
   {
     Parent.kind = CXCursor_NoDeclFound;
@@ -274,8 +274,8 @@
   
   bool visitPreprocessedEntitiesInRegion();
 
-  bool shouldVisitIncludedPreprocessingEntries() const {
-    return VisitIncludedPreprocessingEntries;
+  bool shouldVisitIncludedEntities() const {
+    return VisitIncludedEntities;
   }
 
   template<typename InputIterator>
@@ -417,7 +417,7 @@
   SourceManager &SM = Visitor.getASTUnit()->getSourceManager();
   FileID FID;
   
-  if (!Visitor.shouldVisitIncludedPreprocessingEntries()) {
+  if (!Visitor.shouldVisitIncludedEntities()) {
     // If the begin/end of the range lie in the same FileID, do the optimization
     // where we skip preprocessed entities that do not come from the same FileID.
     FID = SM.getFileID(R.getBegin());
@@ -3974,7 +3974,7 @@
     CXCursor Parent = clang_getTranslationUnitCursor(TU);
     CursorVisitor CursorVis(TU, GetCursorVisitor, &ResultData,
                             /*VisitPreprocessorLast=*/true, 
-                            /*VisitIncludedPreprocessingEntries=*/false,
+                            /*VisitIncludedEntities=*/false,
                             SourceLocation(SLoc));
     CursorVis.VisitChildren(Parent);
   }
@@ -4804,7 +4804,7 @@
       AnnotateVis(tu,
                   AnnotateTokensVisitor, this,
                   /*VisitPreprocessorLast=*/true,
-                  /*VisitIncludedPreprocessingEntries=*/false,
+                  /*VisitIncludedEntities=*/false,
                   RegionOfInterest),
       SrcMgr(static_cast<ASTUnit*>(tu->TUData)->getSourceManager()),
       HasContextSensitiveKeywords(false) { }
@@ -5281,7 +5281,7 @@
     CursorVisitor MacroArgMarker(TU,
                                  MarkMacroArgTokensVisitorDelegate, &Visitor,
                                  /*VisitPreprocessorLast=*/true,
-                                 /*VisitIncludedPreprocessingEntries=*/false,
+                                 /*VisitIncludedEntities=*/false,
                                  RegionOfInterest);
     MacroArgMarker.visitPreprocessedEntitiesInRegion();
   }





More information about the cfe-commits mailing list