llvm-project/clang-tools-extra/unittests
Alexander Kornienko 8f7e7f73ea [clang-tidy] Add check misc-braces-around-statements.
This check looks for if statements and loops: for, range-for, while and
do-while, and verifies that the inside statements are inside braces '{}'.
If not, proposes to add braces around them.

Example:

  if (condition)
    action();

becomes

  if (condition) {
    action();
  }

This check ought to be used with the -format option, so that the braces be
well-formatted.


Patch by Marek Kurdej!

http://reviews.llvm.org/D5395

llvm-svn: 218898
2014-10-02 19:09:56 +00:00
..
clang-apply-replacements Track clang r213171 2014-07-16 16:50:17 +00:00
clang-modernize Plug a unit test memory leak. 2014-09-04 15:15:27 +00:00
clang-query [CMake] Update libdeps. 2014-07-14 05:01:53 +00:00
clang-rename ClangRenameTests: Prune redundant libdeps. 2014-09-22 05:45:11 +00:00
clang-tidy [clang-tidy] Add check misc-braces-around-statements. 2014-10-02 19:09:56 +00:00
include/common Update for Clang API change. 2014-08-27 20:54:50 +00:00
CMakeLists.txt Revert rL215947: "[clang-rename] revert r215839" 2014-08-20 01:39:05 +00:00
Makefile Introduce clang-query tool. 2013-11-08 00:08:23 +00:00