[clang-tools-extra] 0780811 - [include-cleaner] Remove an unused local variable, NFC.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 24 02:06:28 PST 2022


Author: Haojian Wu
Date: 2022-11-24T11:05:34+01:00
New Revision: 078081171c4e916926e14e6204713f131f9ffb28

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

LOG: [include-cleaner] Remove an unused local variable, NFC.

Added: 
    

Modified: 
    clang-tools-extra/include-cleaner/unittests/RecordTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/include-cleaner/unittests/RecordTest.cpp b/clang-tools-extra/include-cleaner/unittests/RecordTest.cpp
index 37eabb9dbfb28..efe8e405102bc 100644
--- a/clang-tools-extra/include-cleaner/unittests/RecordTest.cpp
+++ b/clang-tools-extra/include-cleaner/unittests/RecordTest.cpp
@@ -199,7 +199,6 @@ TEST_F(RecordPPTest, CapturesMacroRefs) {
 
   std::vector<unsigned> RefOffsets;
   std::vector<unsigned> ExpOffsets; // Expansion locs of refs in macro locs.
-  std::vector<SourceLocation> RefMacroLocs;
   for (const auto &Ref : Recorded.MacroReferences) {
     if (Ref.Target == OrigX) {
       auto [FID, Off] = SM.getDecomposedLoc(Ref.RefLocation);


        


More information about the cfe-commits mailing list