@@ -48,7 +48,7 @@ static int getPrecedence(const BinaryOperator *BinOp) {
4848 return 0 ;
4949 }
5050}
51- static void addParantheses (const BinaryOperator *BinOp,
51+ static void addParentheses (const BinaryOperator *BinOp,
5252 const BinaryOperator *ParentBinOp,
5353 ClangTidyCheck *Check,
5454 const clang::SourceManager &SM,
@@ -81,9 +81,9 @@ static void addParantheses(const BinaryOperator *BinOp,
8181 }
8282 }
8383
84- addParantheses (dyn_cast<BinaryOperator>(BinOp->getLHS ()->IgnoreImpCasts ()),
84+ addParentheses (dyn_cast<BinaryOperator>(BinOp->getLHS ()->IgnoreImpCasts ()),
8585 BinOp, Check, SM, LangOpts);
86- addParantheses (dyn_cast<BinaryOperator>(BinOp->getRHS ()->IgnoreImpCasts ()),
86+ addParentheses (dyn_cast<BinaryOperator>(BinOp->getRHS ()->IgnoreImpCasts ()),
8787 BinOp, Check, SM, LangOpts);
8888}
8989
@@ -92,7 +92,7 @@ void MathMissingParenthesesCheck::check(
9292 const auto *BinOp = Result.Nodes .getNodeAs <BinaryOperator>(" binOp" );
9393 const SourceManager &SM = *Result.SourceManager ;
9494 const clang::LangOptions &LO = Result.Context ->getLangOpts ();
95- addParantheses (BinOp, nullptr , this , SM, LO);
95+ addParentheses (BinOp, nullptr , this , SM, LO);
9696}
9797
9898} // namespace clang::tidy::readability
0 commit comments