[clang-tools-extra] 1014a93 - Fix unused variable warnings. NFCI.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 19 06:39:36 PDT 2020


Author: Simon Pilgrim
Date: 2020-08-19T14:34:32+01:00
New Revision: 1014a93a4e0203eccc20190c31169b26ec4b9058

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

LOG: Fix unused variable warnings. NFCI.

Added: 
    

Modified: 
    clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp b/clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
index 9f68e248197e..66d9c4c36b12 100644
--- a/clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
+++ b/clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
@@ -388,9 +388,9 @@ class DefineOutline : public Tweak {
 
     // Bail out if this is a function template or specialization, as their
     // definitions need to be visible in all including translation units.
-    if (auto *PT = Source->getDescribedFunctionTemplate())
+    if (Source->getDescribedFunctionTemplate())
       return false;
-    if (auto *TSI = Source->getTemplateSpecializationInfo())
+    if (Source->getTemplateSpecializationInfo())
       return false;
 
     // Bail out in templated classes, as it is hard to spell the class name, i.e


        


More information about the cfe-commits mailing list