[PATCH] D69764: [clang-format] Add East Const / West Const fixer
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 4 03:48:27 PST 2019
MyDeveloperDay added a comment.
An example of even how setting the style to be West will generate new changes on a previously formatted lib/Format
$ git diff .
diff --git a/clang/lib/Format/WhitespaceManager.cpp b/clang/lib/Format/WhitespaceManager.cpp
old mode 100644
new mode 100755
index 5a44500d355..0274d35bad7
--- a/clang/lib/Format/WhitespaceManager.cpp
+++ b/clang/lib/Format/WhitespaceManager.cpp
@@ -585,7 +585,7 @@ void WhitespaceManager::alignConsecutiveDeclarations() {
// SomeVeryLongType const& v3;
AlignTokens(
Style,
- [](Change const &C) {
+ [](const Change &C) {
// tok::kw_operator is necessary for aligning operator overload
// definitions.
if (C.Tok->isOneOf(TT_FunctionDeclarationName, tok::kw_operator))
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69764/new/
https://reviews.llvm.org/D69764
More information about the cfe-commits
mailing list