]> granicus.if.org Git - clang/commitdiff
Fix typos, remove unused private members of CommonOptionsParser, NFC
authorJohannes Altmanninger <aclopte@gmail.com>
Wed, 23 Aug 2017 10:43:26 +0000 (10:43 +0000)
committerJohannes Altmanninger <aclopte@gmail.com>
Wed, 23 Aug 2017 10:43:26 +0000 (10:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311544 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/RecursiveASTVisitor.h
include/clang/AST/TypeNodes.def
include/clang/ASTMatchers/ASTMatchers.h
include/clang/Analysis/CloneDetection.h
include/clang/Tooling/CommonOptionsParser.h
include/clang/Tooling/CompilationDatabase.h
lib/Sema/SemaExpr.cpp

index d8609919071563656dd72c8ab59585f4b3b185f0..097ed212cf306d6601ebf51f2a1ff0a67b2d3d16 100644 (file)
@@ -83,7 +83,7 @@ namespace clang {
       return false;                                                            \
   } while (false)
 
-/// \brief A class that does preordor or postorder
+/// \brief A class that does preorder or postorder
 /// depth-first traversal on the entire Clang AST and visits each node.
 ///
 /// This class performs three distinct tasks:
index 9d1d09e2cc66153fafefbdfff9a78cfd3e97b732..3ee9202b52010b68fadd72fe4e8aaceb7dd543a9 100644 (file)
@@ -23,7 +23,7 @@
 //    NON_CANONICAL_TYPE(Class, Base) - A type that can show up
 //    anywhere in the AST but will never be a part of a canonical
 //    type. Clients that only need to deal with canonical types
-//    (ignoring, e.g., typedefs and other type alises used for
+//    (ignoring, e.g., typedefs and other type aliases used for
 //    pretty-printing) can ignore these types.
 //
 //    DEPENDENT_TYPE(Class, Base) - A type that will only show up
index c2d9976b778a301b04627859304be986932ef1f6..8c1b082fc8d1fd09e2ecbb42bbd67e56f319d6dd 100644 (file)
@@ -25,7 +25,7 @@
 //
 //  For example, when we're interested in child classes of a certain class, we
 //  would write:
-//    cxxRecordDecl(hasName("MyClass"), hasChild(id("child", recordDecl())))
+//    cxxRecordDecl(hasName("MyClass"), has(id("child", recordDecl())))
 //  When the match is found via the MatchFinder, a user provided callback will
 //  be called with a BoundNodes instance that contains a mapping from the
 //  strings that we provided for the id(...) calls to the nodes that were
index 0eb88dfedff1489d4e90e2bfed7ad12f3e22b8fd..78adac4f9eb8ccbd04204f122a27f643567a6a8b 100644 (file)
@@ -8,7 +8,7 @@
 //===----------------------------------------------------------------------===//
 ///
 /// \file
-/// This file defines classes for searching and anlyzing source code clones.
+/// This file defines classes for searching and analyzing source code clones.
 ///
 //===----------------------------------------------------------------------===//
 
index c535603d365dd36904e3d45a245a0f8117d311c6..70f5e80e1efb9b617402f553452f5b0b6c3c04da 100644 (file)
@@ -85,7 +85,7 @@ public:
   ///
   /// All options not belonging to \p Category become hidden.
   ///
-  /// I also allows calls to set the required number of positional parameters.
+  /// It also allows calls to set the required number of positional parameters.
   ///
   /// This constructor exits program in case of error.
   CommonOptionsParser(int &argc, const char **argv,
@@ -108,8 +108,6 @@ public:
 private:
   std::unique_ptr<CompilationDatabase> Compilations;
   std::vector<std::string> SourcePathList;
-  std::vector<std::string> ExtraArgsBefore;
-  std::vector<std::string> ExtraArgsAfter;
 };
 
 class ArgumentsAdjustingCompilations : public CompilationDatabase {
index e988b84b6eaead6696e9d753bcb361ed45c6f94d..28af33a407dcd9e596c7225bc6e49d962ff17506 100644 (file)
@@ -104,7 +104,7 @@ public:
   /// \brief Returns all compile commands in which the specified file was
   /// compiled.
   ///
-  /// This includes compile comamnds that span multiple source files.
+  /// This includes compile commands that span multiple source files.
   /// For example, consider a project with the following compilations:
   /// $ clang++ -o test a.cc b.cc t.cc
   /// $ clang++ -o production a.cc b.cc -DPRODUCTION
index 2a36a83daf6c2d90cced05533e05f2b1eb2b8be5..510c5214d48cf18c8058e049fab95f279f49e643 100644 (file)
@@ -14629,7 +14629,7 @@ static void MarkExprReferenced(Sema &SemaRef, SourceLocation Loc,
       ME->getBase(), SemaRef.getLangOpts().AppleKext);
   if (DM)
     SemaRef.MarkAnyDeclReferenced(Loc, DM, MightBeOdrUse);
-} 
+}
 
 /// \brief Perform reference-marking and odr-use handling for a DeclRefExpr.
 void Sema::MarkDeclRefReferenced(DeclRefExpr *E, const Expr *Base) {