[clang-tools-extra] e6fcf34 - [clang-tidy] Remove unused variable (NFC)

Jie Fu via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 28 03:29:37 PDT 2024


Author: Jie Fu
Date: 2024-10-28T18:28:52+08:00
New Revision: e6fcf349eff5be326e1923567646edf99f69d297

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

LOG: [clang-tidy] Remove unused variable (NFC)

/llvm-project/clang-tools-extra/clang-tidy/bugprone/NondeterministicPointerIterationOrderCheck.cpp:60:29:
error: unused variable 'AlgoName' [-Werror,-Wunused-variable]
      const llvm::StringRef AlgoName = ClassTemplate->getName();
                            ^
1 error generated.

Added: 
    

Modified: 
    clang-tools-extra/clang-tidy/bugprone/NondeterministicPointerIterationOrderCheck.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/bugprone/NondeterministicPointerIterationOrderCheck.cpp b/clang-tools-extra/clang-tidy/bugprone/NondeterministicPointerIterationOrderCheck.cpp
index 0797376d0aa9ff..22ecd689614696 100644
--- a/clang-tools-extra/clang-tidy/bugprone/NondeterministicPointerIterationOrderCheck.cpp
+++ b/clang-tools-extra/clang-tidy/bugprone/NondeterministicPointerIterationOrderCheck.cpp
@@ -57,7 +57,6 @@ void NondeterministicPointerIterationOrderCheck::check(
                 "recorddecl")) {
       const TemplateArgumentList &TemplateArgs =
           ClassTemplate->getTemplateArgs();
-      const llvm::StringRef AlgoName = ClassTemplate->getName();
       const bool IsAlgoArgPointer =
           TemplateArgs[0].getAsType()->isPointerType();
 


        


More information about the cfe-commits mailing list