@@ -48,7 +48,7 @@ static int getPrecedence(const BinaryOperator *BinOp) {
48
48
return 0 ;
49
49
}
50
50
}
51
- static void addParantheses (const BinaryOperator *BinOp,
51
+ static void addParentheses (const BinaryOperator *BinOp,
52
52
const BinaryOperator *ParentBinOp,
53
53
ClangTidyCheck *Check,
54
54
const clang::SourceManager &SM,
@@ -81,9 +81,9 @@ static void addParantheses(const BinaryOperator *BinOp,
81
81
}
82
82
}
83
83
84
- addParantheses (dyn_cast<BinaryOperator>(BinOp->getLHS ()->IgnoreImpCasts ()),
84
+ addParentheses (dyn_cast<BinaryOperator>(BinOp->getLHS ()->IgnoreImpCasts ()),
85
85
BinOp, Check, SM, LangOpts);
86
- addParantheses (dyn_cast<BinaryOperator>(BinOp->getRHS ()->IgnoreImpCasts ()),
86
+ addParentheses (dyn_cast<BinaryOperator>(BinOp->getRHS ()->IgnoreImpCasts ()),
87
87
BinOp, Check, SM, LangOpts);
88
88
}
89
89
@@ -92,7 +92,7 @@ void MathMissingParenthesesCheck::check(
92
92
const auto *BinOp = Result.Nodes .getNodeAs <BinaryOperator>(" binOp" );
93
93
const SourceManager &SM = *Result.SourceManager ;
94
94
const clang::LangOptions &LO = Result.Context ->getLangOpts ();
95
- addParantheses (BinOp, nullptr , this , SM, LO);
95
+ addParentheses (BinOp, nullptr , this , SM, LO);
96
96
}
97
97
98
98
} // namespace clang::tidy::readability
0 commit comments