[PATCH] D45679: [clang-tidy] Add a new check, readability-unmodified-non-const-variable, that finds declarations of non-const variables that never get modified.

Shuai Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 16 19:21:51 PDT 2018


shuaiwang updated this revision to Diff 142730.
shuaiwang added a comment.

Updated mostly `isModified()`.
I'd like to mostly demonstrate that `isModified()` works given that there's https://reviews.llvm.org/D45444 and we'd like to merge.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D45679

Files:
  clang-tidy/readability/CMakeLists.txt
  clang-tidy/readability/ReadabilityTidyModule.cpp
  clang-tidy/readability/UnmodifiedNonConstVariableCheck.cpp
  clang-tidy/readability/UnmodifiedNonConstVariableCheck.h
  clang-tidy/utils/ASTUtils.cpp
  clang-tidy/utils/ASTUtils.h
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/list.rst
  docs/clang-tidy/checks/readability-unmodified-non-const-variable.rst
  test/clang-tidy/readability-unmodified-non-const-variable.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45679.142730.patch
Type: text/x-patch
Size: 28095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180417/713e0a40/attachment-0001.bin>


More information about the cfe-commits mailing list