diff options
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, |

