[cfe-commits] r54328 - in /cfe/trunk: include/clang/AST/DeclBase.h include/clang/Parse/Action.h lib/AST/CFG.cpp lib/Parse/MinimalAction.cpp

Ted Kremenek kremenek at apple.com
Mon Aug 4 15:51:43 PDT 2008


Author: kremenek
Date: Mon Aug  4 17:51:42 2008
New Revision: 54328

URL: http://llvm.org/viewvc/llvm-project?rev=54328&view=rev
Log:
Nico Weber:

"the attached patch fixes some typos, 80 cols violations, etc. in comments."

Modified:
    cfe/trunk/include/clang/AST/DeclBase.h
    cfe/trunk/include/clang/Parse/Action.h
    cfe/trunk/lib/AST/CFG.cpp
    cfe/trunk/lib/Parse/MinimalAction.cpp

Modified: cfe/trunk/include/clang/AST/DeclBase.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclBase.h?rev=54328&r1=54327&r2=54328&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/DeclBase.h (original)
+++ cfe/trunk/include/clang/AST/DeclBase.h Mon Aug  4 17:51:42 2008
@@ -37,7 +37,7 @@
     // This lists the concrete classes of Decl in order of the inheritance
     // hierarchy.  This allows us to do efficient classof tests based on the
     // enums below.   The commented out names are abstract class names.
-    // [DeclContext] indicatea that the class also inherits from DeclContext.
+    // [DeclContext] indicates that the class also inherits from DeclContext.
     
     // Decl
          TranslationUnit,  // [DeclContext]

Modified: cfe/trunk/include/clang/Parse/Action.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Action.h?rev=54328&r1=54327&r2=54328&view=diff

==============================================================================
--- cfe/trunk/include/clang/Parse/Action.h (original)
+++ cfe/trunk/include/clang/Parse/Action.h Mon Aug  4 17:51:42 2008
@@ -118,7 +118,7 @@
   }
 
   /// AddInitializerToDecl - This action is called immediately after 
-  /// ParseDeclarator (when an initializer is present). The code is factored 
+  /// ActOnDeclarator (when an initializer is present). The code is factored 
   /// this way to make sure we are able to handle the following:
   ///   void func() { int xx = xx; }
   /// This allows ActOnDeclarator to register "xx" prior to parsing the

Modified: cfe/trunk/lib/AST/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CFG.cpp?rev=54328&r1=54327&r2=54328&view=diff

==============================================================================
--- cfe/trunk/lib/AST/CFG.cpp (original)
+++ cfe/trunk/lib/AST/CFG.cpp Mon Aug  4 17:51:42 2008
@@ -42,7 +42,7 @@
   T old_value;
 };
   
-/// CFGBuilder - This class is implements CFG construction from an AST.
+/// CFGBuilder - This class implements CFG construction from an AST.
 ///   The builder is stateful: an instance of the builder should be used to only
 ///   construct a single CFG.
 ///

Modified: cfe/trunk/lib/Parse/MinimalAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/MinimalAction.cpp?rev=54328&r1=54327&r2=54328&view=diff

==============================================================================
--- cfe/trunk/lib/Parse/MinimalAction.cpp (original)
+++ cfe/trunk/lib/Parse/MinimalAction.cpp Mon Aug  4 17:51:42 2008
@@ -74,7 +74,7 @@
     D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef;
 
   // this check avoids creating TypeNameInfo objects for the common case.
-  // It does need to handle the uncommon case of shadowing a typedef name with a 
+  // It does need to handle the uncommon case of shadowing a typedef name with a
   // non-typedef name. e.g. { typedef int a; a xx; { int a; } }
   if (weCurrentlyHaveTypeInfo || isTypeName) {
     TypeNameInfo *TI = new TypeNameInfo(isTypeName, weCurrentlyHaveTypeInfo);
@@ -121,8 +121,8 @@
   return 0;
 }
 
-/// ActOnPopScope - When a scope is popped, if any typedefs are now out-of-scope,
-/// they are removed from the IdentifierInfo::FETokenInfo field.
+/// ActOnPopScope - When a scope is popped, if any typedefs are now
+/// out-of-scope, they are removed from the IdentifierInfo::FETokenInfo field.
 void MinimalAction::ActOnPopScope(SourceLocation Loc, Scope *S) {
   for (Scope::decl_iterator I = S->decl_begin(), E = S->decl_end();
        I != E; ++I) {





More information about the cfe-commits mailing list