summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-03-29 20:03:16 +0000
committerFangrui Song <maskray@google.com>2018-03-29 20:03:16 +0000
commit943e12e1c54c06458a31ae88974ed7b0d0babb14 (patch)
tree8882f7481d4e13b64f239eee2b7d509b00653d9a
parent6c041a3cabccb598b1a3fbb90b8cd2340640c663 (diff)
downloadbcm5719-llvm-943e12e1c54c06458a31ae88974ed7b0d0babb14.tar.gz
bcm5719-llvm-943e12e1c54c06458a31ae88974ed7b0d0babb14.zip
[clangd] Fix repeated word typo. NFC
llvm-svn: 328819
-rw-r--r--clang-tools-extra/clangd/JSONExpr.cpp2
-rw-r--r--clang-tools-extra/clangd/index/SymbolCollector.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/JSONExpr.cpp b/clang-tools-extra/clangd/JSONExpr.cpp
index a6e6a555515..3f87c286f1d 100644
--- a/clang-tools-extra/clangd/JSONExpr.cpp
+++ b/clang-tools-extra/clangd/JSONExpr.cpp
@@ -113,7 +113,7 @@ private:
++P;
}
- // On invalid syntax, parseX() functions return false and and set Err.
+ // On invalid syntax, parseX() functions return false and set Err.
bool parseNumber(char First, double &Out);
bool parseString(std::string &Out);
bool parseUnicode(std::string &Out);
diff --git a/clang-tools-extra/clangd/index/SymbolCollector.cpp b/clang-tools-extra/clangd/index/SymbolCollector.cpp
index b27ace5f3ff..c595e568757 100644
--- a/clang-tools-extra/clangd/index/SymbolCollector.cpp
+++ b/clang-tools-extra/clangd/index/SymbolCollector.cpp
@@ -202,7 +202,7 @@ llvm::Optional<SymbolLocation> getSymbolLocation(
// in a header file, in which case clangd would prefer to use ND as a canonical
// declaration.
// FIXME: handle symbol types that are not TagDecl (e.g. functions), if using
-// the the first seen declaration as canonical declaration is not a good enough
+// the first seen declaration as canonical declaration is not a good enough
// heuristic.
bool isPreferredDeclaration(const NamedDecl &ND, index::SymbolRoleSet Roles) {
using namespace clang::ast_matchers;
OpenPOWER on IntegriCloud