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

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 02:38:34 PDT 2022


njames93 created this revision.
njames93 added reviewers: aaron.ballman, JonasToth.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a project: All.
njames93 requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

Adds an option to specify where the `const` should be placed when emitting fixes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131386

Files:
  clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp
  clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.h
  clang-tools-extra/docs/clang-tidy/checks/misc/const-correctness.rst
  clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-alignment.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131386.450741.patch
Type: text/x-patch
Size: 7058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220808/cdf00fe8/attachment.bin>


More information about the cfe-commits mailing list