summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/performance
diff options
context:
space:
mode:
authorKazuaki Ishizaki <ishizaki@jp.ibm.com>2020-01-04 10:28:41 -0500
committerAaron Ballman <aaron@aaronballman.com>2020-01-04 10:28:41 -0500
commitb7ecf1c1c373c53183ef6ef66efbe4237ff7b96d (patch)
tree02e12313b27fbae77d0097e26edbf030b0a2dbb2 /clang-tools-extra/clang-tidy/performance
parentca8b20ca3ba10288b61a083c4ce57fb011124935 (diff)
downloadbcm5719-llvm-b7ecf1c1c373c53183ef6ef66efbe4237ff7b96d.tar.gz
bcm5719-llvm-b7ecf1c1c373c53183ef6ef66efbe4237ff7b96d.zip
NFC: Fix trivial typos in comments
Diffstat (limited to 'clang-tools-extra/clang-tidy/performance')
-rw-r--r--clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.h2
-rw-r--r--clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.h b/clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.h
index b8a6d49e234..eba6207ed74 100644
--- a/clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.h
+++ b/clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.h
@@ -19,7 +19,7 @@ namespace performance {
///
/// Associative containers implements some of the algorithms as methods which
/// should be preferred to the algorithms in the algorithm header. The methods
-/// can take advanatage of the order of the elements.
+/// can take advantage of the order of the elements.
class InefficientAlgorithmCheck : public ClangTidyCheck {
public:
InefficientAlgorithmCheck(StringRef Name, ClangTidyContext *Context)
diff --git a/clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp b/clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
index e93ed7e3a33..e985fe80508 100644
--- a/clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
+++ b/clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
@@ -165,7 +165,7 @@ void InefficientVectorOperationCheck::registerMatchers(MatchFinder *Finder) {
// A method's name starts with "add_" might not mean it's an add field
// call; it could be the getter for a proto field of which the name starts
- // with "add_". So we exlude const methods.
+ // with "add_". So we exclude const methods.
const auto AddFieldMethodDecl =
cxxMethodDecl(matchesName("::add_"), unless(isConst()));
AddMatcher(ProtoDecl, ProtoVarDeclName, ProtoVarDeclStmtName,
OpenPOWER on IntegriCloud