From ab3e1bdb99f6360ad9e3b1496e575493714669d0 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 6 Feb 2018 20:08:23 +0000 Subject: [clangd] Make the premble tremble. No functionality change. --- clang-tools-extra/clangd/ClangdUnit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang-tools-extra/clangd/ClangdUnit.cpp') diff --git a/clang-tools-extra/clangd/ClangdUnit.cpp b/clang-tools-extra/clangd/ClangdUnit.cpp index 256f2b3699b..1da2e8f282d 100644 --- a/clang-tools-extra/clangd/ClangdUnit.cpp +++ b/clang-tools-extra/clangd/ClangdUnit.cpp @@ -547,7 +547,7 @@ CppFile::deferRebuild(ParseInputs &&Inputs) { 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 &&Inputs) { 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::getBeginningOfIdentifier(ParsedAST &Unit, // 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.) -- cgit v1.2.3