diff options
| author | Kazuaki Ishizaki <ishizaki@jp.ibm.com> | 2020-01-04 10:28:41 -0500 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2020-01-04 10:28:41 -0500 |
| commit | b7ecf1c1c373c53183ef6ef66efbe4237ff7b96d (patch) | |
| tree | 02e12313b27fbae77d0097e26edbf030b0a2dbb2 /clang-tools-extra/clang-tidy/performance | |
| parent | ca8b20ca3ba10288b61a083c4ce57fb011124935 (diff) | |
| download | bcm5719-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.h | 2 | ||||
| -rw-r--r-- | clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp | 2 |
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, |

