Author: Victor Chernyakin
Date: 2025-09-09T18:56:05-07:00
New Revision: a5660446f006a51fe41cccaa986d0d4011507678

URL: 
https://github.com/llvm/llvm-project/commit/a5660446f006a51fe41cccaa986d0d4011507678
DIFF: 
https://github.com/llvm/llvm-project/commit/a5660446f006a51fe41cccaa986d0d4011507678.diff

LOG: [clang-tidy][NFC] Fix typoed function name

Added: 
    

Modified: 
    clang-tools-extra/clang-tidy/readability/MathMissingParenthesesCheck.cpp

Removed: 
    


################################################################################
diff  --git 
a/clang-tools-extra/clang-tidy/readability/MathMissingParenthesesCheck.cpp 
b/clang-tools-extra/clang-tidy/readability/MathMissingParenthesesCheck.cpp
index 1d5c6cca5a82d..e0640f27f4e35 100644
--- a/clang-tools-extra/clang-tidy/readability/MathMissingParenthesesCheck.cpp
+++ b/clang-tools-extra/clang-tidy/readability/MathMissingParenthesesCheck.cpp
@@ -48,7 +48,7 @@ static int getPrecedence(const BinaryOperator *BinOp) {
     return 0;
   }
 }
-static void addParantheses(const BinaryOperator *BinOp,
+static void addParentheses(const BinaryOperator *BinOp,
                            const BinaryOperator *ParentBinOp,
                            ClangTidyCheck *Check,
                            const clang::SourceManager &SM,
@@ -81,9 +81,9 @@ static void addParantheses(const BinaryOperator *BinOp,
     }
   }
 
-  addParantheses(dyn_cast<BinaryOperator>(BinOp->getLHS()->IgnoreImpCasts()),
+  addParentheses(dyn_cast<BinaryOperator>(BinOp->getLHS()->IgnoreImpCasts()),
                  BinOp, Check, SM, LangOpts);
-  addParantheses(dyn_cast<BinaryOperator>(BinOp->getRHS()->IgnoreImpCasts()),
+  addParentheses(dyn_cast<BinaryOperator>(BinOp->getRHS()->IgnoreImpCasts()),
                  BinOp, Check, SM, LangOpts);
 }
 
@@ -92,7 +92,7 @@ void MathMissingParenthesesCheck::check(
   const auto *BinOp = Result.Nodes.getNodeAs<BinaryOperator>("binOp");
   const SourceManager &SM = *Result.SourceManager;
   const clang::LangOptions &LO = Result.Context->getLangOpts();
-  addParantheses(BinOp, nullptr, this, SM, LO);
+  addParentheses(BinOp, nullptr, this, SM, LO);
 }
 
 } // namespace clang::tidy::readability


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to