aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp
diff options
context:
space:
mode:
authorSalman Javed <mail@salmanjaved.org>2021-11-02 20:14:25 +1300
committerSalman Javed <mail@salmanjaved.org>2021-11-02 20:14:25 +1300
commitade0662c51b571ea7e80fcb53516485086032d7f (patch)
tree4581a16c019160e151a57775e03ed5752675e865 /clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp
parent869989dd713df68ed0f31b4c80262aed9c5cdc66 (diff)
downloadllvm-ade0662c51b571ea7e80fcb53516485086032d7f.zip
llvm-ade0662c51b571ea7e80fcb53516485086032d7f.tar.gz
llvm-ade0662c51b571ea7e80fcb53516485086032d7f.tar.bz2
[clang-tidy] Fix lint warnings in clang-tidy source code (NFC)
Run clang-tidy on all source files under `clang-tools-extra/clang-tidy` with `-header-filter=clang-tidy.*` and make suggested corrections. Differential Revision: https://reviews.llvm.org/D112864
Diffstat (limited to 'clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp b/clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp
index 38122d5..2df0461 100644
--- a/clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp
+++ b/clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp
@@ -48,7 +48,7 @@ constReferenceDeclRefExprs(const VarDecl &VarDecl, const Stmt &Stmt,
declRefExpr(to(varDecl(equalsNode(&VarDecl)))).bind("declRef");
auto ConstMethodCallee = callee(cxxMethodDecl(isConst()));
// Match method call expressions where the variable is referenced as the this
- // implicit object argument and opertor call expression for member operators
+ // implicit object argument and operator call expression for member operators
// where the variable is the 0-th argument.
auto Matches = match(
findAll(expr(anyOf(cxxMemberCallExpr(ConstMethodCallee, on(DeclRefToVar)),