summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/readability-implicit-bool-cast.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Another fix for failing buildbots regarding signedness of charPiotr Dziwinski2015-10-251-9/+9
| | | | | | | | | I totally forgot that char can be defined as unsigned on some platforms. Now I made explicit mention of signed type where necessary in tests. Also fixed '//RUN: ' header of cxx98 test to correct format. llvm-svn: 251244
* [clang-tidy] Fix for build bots not liking #include <cstddef>Piotr Dziwinski2015-10-251-1/+4
| | | | llvm-svn: 251239
* [clang-tidy] Add check readability-implicit-bool-castPiotr Dziwinski2015-10-251-0/+430
Summary: This is another check that I ported to clang-tidy from colobot-lint tool. As previously discussed on cfe-dev mailing list, this is one of those checks that I think is general and useful enough for contribution to clang-tidy. This patch contains implementation of check taken from colobot-lint, but it is extended a great deal, including FixIt hints for automated refactoring, exhaustive testcases, and user documentation. Reviewers: sbenza, aaron.ballman, alexfh Subscribers: Eugene.Zelenko Differential Revision: http://reviews.llvm.org/D13635 llvm-svn: 251235
OpenPOWER on IntegriCloud