[PATCH] [clang-tidy] Add check misc-braces-around-statements.

Marek Kurdej curdeius at gmail.com
Tue Sep 30 04:30:13 PDT 2014


Add heuristics for treating comments at end of statements.
  - [clang-tidy] BracesAroundStatementsCheck: add EndLocHint (before 'else' in if-else stmt and 'while' in do-while loop).
  - [clang-tidy] BracesAroundStatementsCheck: refactoring.
  - [clang-tidy] BracesAroundStatementsCheck: heuristics for treating comments.

http://reviews.llvm.org/D5395

Files:
  clang-tidy/misc/BracesAroundStatementsCheck.cpp
  clang-tidy/misc/BracesAroundStatementsCheck.h
  clang-tidy/misc/CMakeLists.txt
  clang-tidy/misc/MiscTidyModule.cpp
  test/clang-tidy/misc-braces-around-statements.cpp
  unittests/clang-tidy/MiscModuleTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5395.14208.patch
Type: text/x-patch
Size: 33342 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140930/da2dc9da/attachment.bin>


More information about the cfe-commits mailing list