[PATCH] D96607: [clang-tidy] Add check 'readability-pointer-type-star-placement'.

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 12 07:20:58 PST 2021


balazske created this revision.
Herald added subscribers: martong, gamesh411, Szelethus, dkrupp, xazax.hun, whisperity, mgorny.
balazske requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This check should warn if '*' character at pointer declarations is not aligned to right side.
I know that clang-format can do these changes but if the goal is not to reformat the whole code
this check can be useful.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96607

Files:
  clang-tools-extra/clang-tidy/readability/CMakeLists.txt
  clang-tools-extra/clang-tidy/readability/PointerTypeStarPlacementCheck.cpp
  clang-tools-extra/clang-tidy/readability/PointerTypeStarPlacementCheck.h
  clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/list.rst
  clang-tools-extra/docs/clang-tidy/checks/readability-pointer-type-star-placement.rst
  clang-tools-extra/test/clang-tidy/checkers/readability-pointer-type-star-placement.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96607.323329.patch
Type: text/x-patch
Size: 15839 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210212/dbad0a29/attachment-0001.bin>


More information about the cfe-commits mailing list