[PATCH] D69764: [clang-format] Add Left/Right Const fixer capability
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 21 02:33:24 PDT 2021
MyDeveloperDay updated this revision to Diff 373817.
MyDeveloperDay added a comment.
If we don't specify types in the QualifierOrder (say static or inline as in default Left/Right) then don't push const through them just because they can be a type of qualifier we support.
i.e. only push through what we specify, ultimately this helps reduce the number of changes (caused by inline/static) being in different orders (perhaps unintentional) but where you don't care (i.e. you haven't specified them)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69764/new/
https://reviews.llvm.org/D69764
Files:
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/docs/tools/dump_format_style.py
clang/include/clang/Format/Format.h
clang/lib/Format/CMakeLists.txt
clang/lib/Format/Format.cpp
clang/lib/Format/QualifierAlignmentFixer.cpp
clang/lib/Format/QualifierAlignmentFixer.h
clang/tools/clang-format/ClangFormat.cpp
clang/unittests/Format/CMakeLists.txt
clang/unittests/Format/FormatTest.cpp
clang/unittests/Format/QualifierFixerTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69764.373817.patch
Type: text/x-patch
Size: 76375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210921/d46e8164/attachment-0001.bin>
More information about the cfe-commits
mailing list