[clang] [clang-format] Don't swap `(const override)` with QAS_Right (PR #167191)

via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 9 15:24:36 PST 2025


================
@@ -177,13 +177,16 @@ static bool isQualifier(const FormatToken *const Tok) {
 
 const FormatToken *LeftRightQualifierAlignmentFixer::analyzeRight(
     const SourceManager &SourceMgr, const AdditionalKeywords &Keywords,
-    tooling::Replacements &Fixes, const FormatToken *const Tok,
+    tooling::Replacements &Fixes, const FormatToken *Tok,
----------------
owenca wrote:

That's superfluous. It's similar to the `const` in `void f(const int);`.

https://github.com/llvm/llvm-project/pull/167191


More information about the cfe-commits mailing list