[clang-tools-extra] r324389 - [clangd] Make the premble tremble.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 6 12:08:23 PST 2018


Author: d0k
Date: Tue Feb  6 12:08:23 2018
New Revision: 324389

URL: http://llvm.org/viewvc/llvm-project?rev=324389&view=rev
Log:
[clangd] Make the premble tremble.

No functionality change.

Modified:
    clang-tools-extra/trunk/clangd/ClangdUnit.cpp

Modified: clang-tools-extra/trunk/clangd/ClangdUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdUnit.cpp?rev=324389&r1=324388&r2=324389&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ClangdUnit.cpp (original)
+++ clang-tools-extra/trunk/clangd/ClangdUnit.cpp Tue Feb  6 12:08:23 2018
@@ -547,7 +547,7 @@ CppFile::deferRebuild(ParseInputs &&Inpu
         log("Reusing preamble for file " + Twine(That->FileName));
         return OldPreamble;
       }
-      log("Premble for file " + Twine(That->FileName) +
+      log("Preamble for file " + Twine(That->FileName) +
           " cannot be reused. Attempting to rebuild it.");
       // We won't need the OldPreamble anymore, release it so it can be
       // deleted (if there are no other references to it).
@@ -628,7 +628,7 @@ CppFile::deferRebuild(ParseInputs &&Inpu
       if (That->ASTCallback)
         That->ASTCallback(That->FileName, NewAST.getPointer());
     } else {
-      // Don't report even Preamble diagnostics if we coulnd't build AST.
+      // Don't report even Preamble diagnostics if we couldn't build AST.
       Diagnostics.clear();
     }
 
@@ -739,7 +739,7 @@ SourceLocation clangd::getBeginningOfIde
   // after the end of a token. In theory we could just use GetBeginningOfToken
   // to find the start of the token at the input position, but this doesn't
   // work when right after the end, i.e. foo|.
-  // So try to go back by one and see if we're still inside the an identifier
+  // So try to go back by one and see if we're still inside an identifier
   // token. If so, Take the beginning of this token.
   // (It should be the same identifier because you can't have two adjacent
   // identifiers without another token in between.)




More information about the cfe-commits mailing list