]> granicus.if.org Git - clang/commitdiff
Nico Weber:
authorTed Kremenek <kremenek@apple.com>
Mon, 4 Aug 2008 22:51:42 +0000 (22:51 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 4 Aug 2008 22:51:42 +0000 (22:51 +0000)
"the attached patch fixes some typos, 80 cols violations, etc. in comments."

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54328 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclBase.h
include/clang/Parse/Action.h
lib/AST/CFG.cpp
lib/Parse/MinimalAction.cpp

index 1560aa585dda68e8002d5f6871511cd3d98c49af..ef92b42424f5a4a3e6d31cf7c135bdb54d841a39 100644 (file)
@@ -37,7 +37,7 @@ public:
     // 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]
index b329306518c2892ab9e02ce804443d8e201c54db..2b6f713441c5be4696ba3fe44e86e76e026b9591 100644 (file)
@@ -118,7 +118,7 @@ public:
   }
 
   /// 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
index ba6a6c8552c48e085d3faf122faa5ca46fe7b253..9f87dc6adfde47747397c7a5d0f6fb1fbde607f9 100644 (file)
@@ -42,7 +42,7 @@ struct VISIBILITY_HIDDEN SaveAndRestore {
   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.
 ///
index d895ccf22a078431e8c3b5211da86b4e964aa8a1..cb130c3d268aa77334ba5a17b98d6e5f47d4049c 100644 (file)
@@ -74,7 +74,7 @@ MinimalAction::ActOnDeclarator(Scope *S, Declarator &D, DeclTy *LastInGroup) {
     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 @@ MinimalAction::ActOnForwardClassDeclaration(SourceLocation AtClassLoc,
   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) {