[PATCH] D69764: [clang-format] Add East/West Const fixer capability

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 27 02:39:59 PDT 2020


MyDeveloperDay updated this revision to Diff 266460.
MyDeveloperDay added a comment.

Fix crash whilst rechecking polly

  ../polly/lib/Analysis/ScopBuilder.cpp:74:8: warning: code should be clang-format
  ted [-Wclang-format-violations]
  static int const MaxDimensionsInAccessRange = 9;
         ^
  ../polly/lib/Analysis/ScopInfo.cpp:114:1: warning: code should be clang-formatte
  d [-Wclang-format-violations]
  int const polly::MaxDisjunctsInDomain = 20;
  ^
  ../polly/lib/Analysis/ScopInfo.cpp:119:8: warning: code should be clang-formatte
  d [-Wclang-format-violations]
  static int const MaxDisjunctsInContext = 4;
         ^
  ../polly/lib/Analysis/ScopInfo.cpp:2686:3: warning: code should be clang-formatt
  ed [-Wclang-format-violations]
    auto const &DL = F->getParent()->getDataLayout();
    ^
  ../polly/lib/Analysis/ScopInfo.cpp:2822:3: warning: code should be clang-formatt
  ed [-Wclang-format-violations]
    auto const &DL = F.getParent()->getDataLayout();
    ^
  ../../build_ninja/bin/clang-format -n ../polly/lib/CodeGen/*.cpp
  ../../build_ninja/bin/clang-format -n ../polly/lib/Plugin/*.cpp
  ../../build_ninja/bin/clang-format -n ../polly/lib/Transform/*.cpp
  ../polly/lib/Transform/Simplify.cpp:39:8: warning: code should be clang-formatte
  d [-Wclang-format-violations]
  static int const SimplifyMaxDisjuncts = 4;
         ^
  ../../build_ninja/bin/clang-format -n ../polly/lib/Support/*.cpp
  ../polly/lib/Support/SCEVAffinator.cpp:35:8: warning: code should be clang-forma
  tted [-Wclang-format-violations]
  static int const MaxDisjunctionsInPwAff = 100;
         ^
  ../polly/lib/Support/SCEVAffinator.cpp:39:8: warning: code should be clang-forma
  tted [-Wclang-format-violations]
  static unsigned const MaxSmallBitWidth = 7;
         ^


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/include/clang/Format/Format.h
  clang/lib/Format/CMakeLists.txt
  clang/lib/Format/EastWestConstFixer.cpp
  clang/lib/Format/EastWestConstFixer.h
  clang/lib/Format/Format.cpp
  clang/tools/clang-format/ClangFormat.cpp
  clang/unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69764.266460.patch
Type: text/x-patch
Size: 37274 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200527/bfd00d31/attachment-0001.bin>


More information about the cfe-commits mailing list