summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/readability-implicit-bool-cast-cxx98.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] 'implicit cast' -> 'implicit conversion'Alexander Kornienko2017-08-081-45/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch renames checks, check options and changes messages to use correct term "implicit conversion" instead of "implicit cast" (which has been in use in Clang AST since ~10 years, but it's still technically incorrect w.r.t. C++ standard). * performance-implicit-cast-in-loop -> performance-implicit-conversion-in-loop * readability-implicit-bool-cast -> readability-implicit-bool-conversion - readability-implicit-bool-cast.AllowConditionalIntegerCasts -> readability-implicit-bool-conversion.AllowIntegerConditions - readability-implicit-bool-cast.AllowConditionalPointerCasts -> readability-implicit-bool-conversion.AllowPointerConditions Reviewers: hokein, jdennett Reviewed By: hokein Subscribers: mgorny, JDevlieghere, xazax.hun, cfe-commits Differential Revision: https://reviews.llvm.org/D36456 llvm-svn: 310366
* [clang-tidy] Code cleanup, (almost) NFC (*).Alexander Kornienko2017-05-041-3/+3
| | | | | | | (*) Printed types of member pointers don't use elaborated type specifiers (`int struct S::*` -> `int S::*`). llvm-svn: 302160
* [clang-tidy] Another fix for failing buildbots regarding signedness of charPiotr Dziwinski2015-10-251-1/+1
| | | | | | | | | 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/+42
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