diff options
author | Alexander Kornienko <alexfh@google.com> | 2014-10-02 19:09:56 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2014-10-02 19:09:56 +0000 |
commit | 8f7e7f73ea54414d86acaf1cf37ea8a1c3d28cec (patch) | |
tree | 3b9ebac2f3f0ded6171c7dd52aefacd9862414d5 /llvm/lib/Object/COFFObjectFile.cpp | |
parent | 325111bcc6ee751e16faeeca405ed4b103b2ffce (diff) | |
download | llvm-8f7e7f73ea54414d86acaf1cf37ea8a1c3d28cec.zip llvm-8f7e7f73ea54414d86acaf1cf37ea8a1c3d28cec.tar.gz llvm-8f7e7f73ea54414d86acaf1cf37ea8a1c3d28cec.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions