[PATCH] D53974: [clang-tidy] new check: bugprone-too-small-loop-variable
    Tamás Zolnai via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Fri Nov  2 13:24:05 PDT 2018
    
    
  
ztamas updated this revision to Diff 172422.
ztamas added a comment.
Update code based on reviewer comments:
- Remove const qualifier
- Fix some comments
- Use isInstantiationDependent() method
- Do not ignore macros
- Mark code-constructs in docs
- Handle the use case when both operands of the binary operator is constant inside the condition expression.
Repository:
  rCTE Clang Tools Extra
https://reviews.llvm.org/D53974
Files:
  clang-tidy/bugprone/BugproneTidyModule.cpp
  clang-tidy/bugprone/CMakeLists.txt
  clang-tidy/bugprone/TooSmallLoopVariableCheck.cpp
  clang-tidy/bugprone/TooSmallLoopVariableCheck.h
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/bugprone-too-small-loop-variable.rst
  docs/clang-tidy/checks/list.rst
  test/clang-tidy/bugprone-too-small-loop-variable.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53974.172422.patch
Type: text/x-patch
Size: 17564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181102/04db5c04/attachment-0001.bin>
    
    
More information about the cfe-commits
mailing list