[llvm-branch-commits] [clang-tools-extra-branch] r196039 - Merging r196038:

Bill Wendling isanbard at gmail.com
Sat Nov 30 21:51:07 PST 2013


Author: void
Date: Sat Nov 30 23:51:07 2013
New Revision: 196039

URL: http://llvm.org/viewvc/llvm-project?rev=196039&view=rev
Log:
Merging r196038:
------------------------------------------------------------------------
r196038 | alp | 2013-11-30 21:08:12 -0800 (Sat, 30 Nov 2013) | 1 line

Fix a variety of user-visible and comment typos
------------------------------------------------------------------------

Modified:
    clang-tools-extra/branches/release_34/   (props changed)
    clang-tools-extra/branches/release_34/clang-modernize/Core/IncludeDirectives.h
    clang-tools-extra/branches/release_34/clang-modernize/Core/IncludeExcludeInfo.h
    clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/LoopActions.cpp
    clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/LoopMatchers.cpp
    clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/StmtAncestor.h
    clang-tools-extra/branches/release_34/clang-modernize/PassByValue/PassByValueActions.cpp
    clang-tools-extra/branches/release_34/clang-modernize/tool/ClangModernize.cpp
    clang-tools-extra/branches/release_34/clang-tidy/ClangTidy.cpp
    clang-tools-extra/branches/release_34/docs/pp-trace.rst
    clang-tools-extra/branches/release_34/modularize/Modularize.cpp
    clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/compilation_inc.cpp
    clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/compilation_not_inc.cpp
    clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/detect_from_path.cpp

Propchange: clang-tools-extra/branches/release_34/
------------------------------------------------------------------------------
    svn:mergeinfo = /clang-tools-extra/trunk:196038

Modified: clang-tools-extra/branches/release_34/clang-modernize/Core/IncludeDirectives.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/clang-modernize/Core/IncludeDirectives.h?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/clang-modernize/Core/IncludeDirectives.h (original)
+++ clang-tools-extra/branches/release_34/clang-modernize/Core/IncludeDirectives.h Sat Nov 30 23:51:07 2013
@@ -114,7 +114,7 @@ private:
   /// NewLineFlags).
   ///
   /// Source files often contain a file header (copyright, license, explanation
-  /// of the file content). An \#include should preferrably be put after this.
+  /// of the file content). An \#include should preferably be put after this.
   std::pair<unsigned, unsigned>
   findFileHeaderEndOffset(clang::FileID FID) const;
 

Modified: clang-tools-extra/branches/release_34/clang-modernize/Core/IncludeExcludeInfo.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/clang-modernize/Core/IncludeExcludeInfo.h?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/clang-modernize/Core/IncludeExcludeInfo.h (original)
+++ clang-tools-extra/branches/release_34/clang-modernize/Core/IncludeExcludeInfo.h Sat Nov 30 23:51:07 2013
@@ -24,7 +24,7 @@
 /// provided by the user through command line options.
 class IncludeExcludeInfo {
 public:
-  /// \brief Read and parse a comma-seperated lists of paths from
+  /// \brief Read and parse a comma-separated lists of paths from
   /// \a IncludeString and \a ExcludeString.
   ///
   /// Returns error_code::success() on successful parse of the strings or

Modified: clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/LoopActions.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/LoopActions.cpp?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/LoopActions.cpp (original)
+++ clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/LoopActions.cpp Sat Nov 30 23:51:07 2013
@@ -1113,8 +1113,8 @@ void LoopFixer::run(const MatchFinder::M
           DerefByConstRef = InitPointeeType.isConstQualified();
       }
     } else {
-      // If the de-referece operator return by value then test for the canonical
-      // const qualification of the init variable type.
+      // If the dereference operator returns by value then test for the
+      // canonical const qualification of the init variable type.
       DerefByConstRef = CanonicalInitVarType.isConstQualified();
     }
   } else if (FixerKind == LFK_PseudoArray) {

Modified: clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/LoopMatchers.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/LoopMatchers.cpp?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/LoopMatchers.cpp (original)
+++ clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/LoopMatchers.cpp Sat Nov 30 23:51:07 2013
@@ -54,7 +54,7 @@ static const StatementMatcher IncrementV
 /// \code
 ///   for (int i = 0; j < 3 + 2; ++k) { ... }
 /// \endcode
-/// The following string identifers are bound to the parts of the AST:
+/// The following string identifiers are bound to these parts of the AST:
 ///   ConditionVarName: 'j' (as a VarDecl)
 ///   ConditionBoundName: '3 + 2' (as an Expr)
 ///   InitVarName: 'i' (as a VarDecl)
@@ -262,7 +262,7 @@ StatementMatcher makePseudoArrayLoopMatc
   // Test that the incoming type has a record declaration that has methods
   // called 'begin' and 'end'. If the incoming type is const, then make sure
   // these methods are also marked const.
-  // 
+  //
   // FIXME: To be completely thorough this matcher should also ensure the
   // return type of begin/end is an iterator that dereferences to the same as
   // what operator[] or at() returns. Such a test isn't likely to fail except

Modified: clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/StmtAncestor.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/StmtAncestor.h?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/StmtAncestor.h (original)
+++ clang-tools-extra/branches/release_34/clang-modernize/LoopConvert/StmtAncestor.h Sat Nov 30 23:51:07 2013
@@ -187,8 +187,8 @@ public:
 
 private:
   std::string Name;
-  /// GeneratedDecls keeps track of ForStmts which have been tranformed, mapping
-  /// each modified ForStmt to the variable generated in the loop.
+  /// GeneratedDecls keeps track of ForStmts which have been transformed,
+  /// mapping each modified ForStmt to the variable generated in the loop.
   const StmtGeneratedVarNameMap *GeneratedDecls;
   bool Found;
 

Modified: clang-tools-extra/branches/release_34/clang-modernize/PassByValue/PassByValueActions.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/clang-modernize/PassByValue/PassByValueActions.cpp?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/clang-modernize/PassByValue/PassByValueActions.cpp (original)
+++ clang-tools-extra/branches/release_34/clang-modernize/PassByValue/PassByValueActions.cpp Sat Nov 30 23:51:07 2013
@@ -74,7 +74,7 @@ static bool paramReferredExactlyOnce(con
   return Visitor.hasExactlyOneUsageIn(Ctor);
 }
 
-/// \brief Find all references to \p ParamDecl accross all of the
+/// \brief Find all references to \p ParamDecl across all of the
 /// redeclarations of \p Ctor.
 static void
 collectParamDecls(const CXXConstructorDecl *Ctor, const ParmVarDecl *ParamDecl,
@@ -98,7 +98,7 @@ void ConstructorParamReplacer::run(const
       Result.Nodes.getNodeAs<CXXCtorInitializer>(PassByValueInitializerId);
   assert(Ctor && ParamDecl && Initializer && "Bad Callback, missing node.");
 
-  // Check this now to avoid unecessary work. The param locations are checked
+  // Check this now to avoid unnecessary work. The param locations are checked
   // later.
   if (!Owner.isFileModifiable(SM, Initializer->getSourceLocation()))
     return;

Modified: clang-tools-extra/branches/release_34/clang-modernize/tool/ClangModernize.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/clang-modernize/tool/ClangModernize.cpp?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/clang-modernize/tool/ClangModernize.cpp (original)
+++ clang-tools-extra/branches/release_34/clang-modernize/tool/ClangModernize.cpp Sat Nov 30 23:51:07 2013
@@ -116,7 +116,7 @@ cl::opt<std::string> SupportedCompilers(
     "for-compilers", cl::value_desc("string"),
     cl::desc("Select transforms targeting the intersection of\n"
              "language features supported by the given compilers.\n"
-             "Takes a comma-seperated list of <compiler>-<version>.\n"
+             "Takes a comma-separated list of <compiler>-<version>.\n"
              "\t<compiler> can be any of: clang, gcc, icc, msvc\n"
              "\t<version> is <major>[.<minor>]\n"),
     cl::cat(GeneralCategory));
@@ -149,12 +149,12 @@ static cl::opt<std::string> FormatStyleC
 /// Include/Exclude Options
 static cl::opt<std::string>
 IncludePaths("include",
-             cl::desc("Comma seperated list of paths to consider to be "
+             cl::desc("Comma-separated list of paths to consider to be "
                       "transformed"),
              cl::cat(IncludeExcludeCategory));
 
 static cl::opt<std::string>
-ExcludePaths("exclude", cl::desc("Comma seperated list of paths that can not "
+ExcludePaths("exclude", cl::desc("Comma-separated list of paths that can not "
                                  "be transformed"),
              cl::cat(IncludeExcludeCategory));
 
@@ -167,7 +167,7 @@ IncludeFromFile("include-from", cl::valu
 static cl::opt<std::string>
 ExcludeFromFile("exclude-from", cl::value_desc("filename"),
                 cl::desc("File containing a list of paths that can not be "
-                         "transforms"),
+                         "transformed"),
                 cl::cat(IncludeExcludeCategory));
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: clang-tools-extra/branches/release_34/clang-tidy/ClangTidy.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/clang-tidy/ClangTidy.cpp?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/clang-tidy/ClangTidy.cpp (original)
+++ clang-tools-extra/branches/release_34/clang-tidy/ClangTidy.cpp Sat Nov 30 23:51:07 2013
@@ -83,7 +83,7 @@ private:
 /// FIXME: Note that this inherits from \c AnalysisAction as this is the only
 /// way we can currently get to AnalysisAction::CreateASTConsumer. Ideally
 /// we'd want to build a more generic way to use \c FrontendAction based
-/// checkers in clang-tidy, but that needs some preperation work first.
+/// checkers in clang-tidy, but that needs some preparation work first.
 class ClangTidyAction : public ento::AnalysisAction {
 public:
   ClangTidyAction(StringRef CheckRegexString,

Modified: clang-tools-extra/branches/release_34/docs/pp-trace.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/docs/pp-trace.rst?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/docs/pp-trace.rst (original)
+++ clang-tools-extra/branches/release_34/docs/pp-trace.rst Sat Nov 30 23:51:07 2013
@@ -42,7 +42,7 @@ Command Line Options
 
 .. option:: -ignore <callback-name-list>
 
-  This option specifies a comma-seperated list of names of callbacks
+  This option specifies a comma-separated list of names of callbacks
   that shouldn't be traced.  It can be used to eliminate unwanted
   trace output.  The callback names are the name of the actual
   callback function names in the PPCallbacks class:

Modified: clang-tools-extra/branches/release_34/modularize/Modularize.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/modularize/Modularize.cpp?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/modularize/Modularize.cpp (original)
+++ clang-tools-extra/branches/release_34/modularize/Modularize.cpp Sat Nov 30 23:51:07 2013
@@ -753,7 +753,7 @@ int main(int Argc, const char **Argv) {
   // Check for the same entity being defined in multiple places.
   for (EntityMap::iterator E = Entities.begin(), EEnd = Entities.end();
        E != EEnd; ++E) {
-    // If only one occurance, exit early.
+    // If only one occurrence, exit early.
     if (E->second.size() == 1)
       continue;
     // Clear entity locations.
@@ -771,7 +771,7 @@ int main(int Argc, const char **Argv) {
     for (EntryBinArray::iterator DI = EntryBins.begin(), DE = EntryBins.end();
          DI != DE; ++DI, ++KindIndex) {
       int ECount = DI->size();
-      // If only 1 occurance, skip;
+      // If only 1 occurrence, skip;
       if (ECount <= 1)
         continue;
       LocationArray::iterator FI = DI->begin();

Modified: clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/compilation_inc.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/compilation_inc.cpp?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/compilation_inc.cpp (original)
+++ clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/compilation_inc.cpp Sat Nov 30 23:51:07 2013
@@ -13,7 +13,7 @@
 // This test uses a compilation database
 // RUN: sed -e 's#$(path)#%/T/CompilationInc#g' %S/Inputs/compile_commands.json > %T/CompilationInc/compile_commands.json
 
-// Check that files are tranformed when -p and -include are specified.
+// Check that files are transformed when -p and -include are specified.
 // RUN: cp %S/Inputs/compilations.cpp %T/CompilationInc/a1
 // RUN: cp %S/Inputs/compilations.cpp %T/CompilationInc/a2
 // RUN: cp %S/Inputs/compilations.cpp %T/CompilationInc/a3

Modified: clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/compilation_not_inc.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/compilation_not_inc.cpp?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/compilation_not_inc.cpp (original)
+++ clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/compilation_not_inc.cpp Sat Nov 30 23:51:07 2013
@@ -13,7 +13,7 @@
 // This test uses a compilation database
 // RUN: sed -e 's#$(path)#%/T/CompilationNotInc#g' %S/Inputs/compile_commands.json > %T/CompilationNotInc/compile_commands.json
 
-// Check that no files are tranformed when -p is specified but not -include.
+// Check that no files are transformed when -p is specified but not -include.
 // RUN: cp %S/Inputs/compilations.cpp %T/CompilationNotInc/a1
 // RUN: cp %S/Inputs/compilations.cpp %T/CompilationNotInc/a2
 // RUN: cp %S/Inputs/compilations.cpp %T/CompilationNotInc/a3

Modified: clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/detect_from_path.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/detect_from_path.cpp?rev=196039&r1=196038&r2=196039&view=diff
==============================================================================
--- clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/detect_from_path.cpp (original)
+++ clang-tools-extra/branches/release_34/test/clang-modernize/Compilations/detect_from_path.cpp Sat Nov 30 23:51:07 2013
@@ -13,7 +13,7 @@
 // This test uses a compilation database
 // RUN: sed -e 's#$(path)#%/T/DetectFromPath#g' %S/Inputs/compile_commands.json > %T/DetectFromPath/compile_commands.json
 
-// Check that files are tranformed when -p is provided and files are specified. 
+// Check that files are transformed when -p is provided and files are specified.
 // RUN: cp %S/Inputs/compilations.cpp %T/DetectFromPath/a1
 // RUN: cp %S/Inputs/compilations.cpp %T/DetectFromPath/a2
 // RUN: cp %S/Inputs/compilations.cpp %T/DetectFromPath/a3





More information about the llvm-branch-commits mailing list