[PATCH] D106431: [clang-tidy] Fix cppcoreguidelines-init-variables by removing the enum FixIt, and add support for initialization check of scoped enum.

gehry via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 28 23:36:21 PDT 2021


Sockke updated this revision to Diff 362651.
Sockke marked 2 inline comments as done.
Sockke added a comment.

Thank you for your reply! I generally understand what you mean, but there are three cases, namely, no diagnosis, providing diagnosis, and providing diagnosis & FixIt.  Only by judging whether "diagnosis" is null may fail to achieve the goal.  I have revised it a little bit, do you think that's alright? @aaron.ballman


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

https://reviews.llvm.org/D106431

Files:
  clang-tools-extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.cpp
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-init-variables.rst
  clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-init-variables.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106431.362651.patch
Type: text/x-patch
Size: 4419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210729/7a64f761/attachment-0001.bin>


More information about the cfe-commits mailing list