[clang] 5fcde57 - [clang-format] NFC ensure Penality variable is passed back with Fixes
via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 23 14:05:54 PDT 2021
Author: mydeveloperday
Date: 2021-09-23T22:05:20+01:00
New Revision: 5fcde57b73fbc068c51f55a80894a6ef208d4afd
URL: https://github.com/llvm/llvm-project/commit/5fcde57b73fbc068c51f55a80894a6ef208d4afd
DIFF: https://github.com/llvm/llvm-project/commit/5fcde57b73fbc068c51f55a80894a6ef208d4afd.diff
LOG: [clang-format] NFC ensure Penality variable is passed back with Fixes
Fix set but not used warning
Added:
Modified:
clang/lib/Format/QualifierAlignmentFixer.cpp
Removed:
################################################################################
diff --git a/clang/lib/Format/QualifierAlignmentFixer.cpp b/clang/lib/Format/QualifierAlignmentFixer.cpp
index 69d0b447299fb..6e2b53b711f26 100644
--- a/clang/lib/Format/QualifierAlignmentFixer.cpp
+++ b/clang/lib/Format/QualifierAlignmentFixer.cpp
@@ -84,7 +84,7 @@ std::pair<tooling::Replacements, unsigned> QualifierAlignmentFixer::analyze(
}
}
}
- return {Fixes, 0};
+ return {Fixes, Penalty};
}
static void replaceToken(const SourceManager &SourceMgr,
More information about the cfe-commits
mailing list