[PATCH] D120710: [clang-format] QualifierOrder does not reorder template arguments
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 1 12:01:17 PST 2022
HazardyKnusperkeks accepted this revision.
HazardyKnusperkeks added inline comments.
================
Comment at: clang/lib/Format/QualifierAlignmentFixer.cpp:480-482
+ if (Tok->TokenText.size() == 1)
+ return false;
return true;
----------------
Maybe?
================
Comment at: clang/unittests/Format/QualifierFixerTest.cpp:910
+ Style);
+ verifyFormat("TemplateType<T const> t;", "TemplateType<const T> t;", Style);
+}
----------------
As far as I understand stuff like `<const Container>` worked before? But maybe still add it as test case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120710/new/
https://reviews.llvm.org/D120710
More information about the cfe-commits
mailing list