[PATCH] D131386: [clang-tidy] Added `ConstAlignment` option to `misc-const-correctness`

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 13 00:19:15 PST 2022


MyDeveloperDay added a comment.

> The reason for me to work on this feature is the fact that clang-format doesn't work reliable for changing the location of the const. After using clang-tidy and clang-format some consts were still one the right hand side

Its true we made the decision if clang-format couldn't work it out we'd bail out and NOT make the change. We felt it was better to be correct than change all the const's

but if you could show us the examples it might help us work through those cases.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131386/new/

https://reviews.llvm.org/D131386



More information about the cfe-commits mailing list