summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/readability-implicit-bool-cast-allow-conditional-casts.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] 'implicit cast' -> 'implicit conversion'Alexander Kornienko2017-08-081-66/+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
* Revert 303872/303877 since the patch that caused these issues Erich Keane2017-05-251-1/+1
| | | | | | is also being reverted. llvm-svn: 303881
* Disable MSVC-Compat mode for two tests that use C++Operator NamesErich Keane2017-05-251-1/+1
| | | | | | | | MSVC doesn't support C++ operator names (using 'or' instead of ||, 'not' instead of '!', etc), so this was disabled in MSVC mode in r303798. This fixes the regression noticed on the buildbots. llvm-svn: 303872
* [clang-tidy] Fix readability-implicit-bool-cast false positivesAlexander Kornienko2017-05-081-0/+8
| | | | | | | | The patch makes the check treat binary conditional operator (`x ?: y`), `while` and regular `for` loops as conditional statements for the purpose of AllowConditional*Cast options. llvm-svn: 302431
* [clang-tidy] Code cleanup, (almost) NFC (*).Alexander Kornienko2017-05-041-1/+1
| | | | | | | (*) Printed types of member pointers don't use elaborated type specifiers (`int struct S::*` -> `int S::*`). llvm-svn: 302160
* [clang-tidy] Expand AllowConditional*Casts to binary logical operatorsAlexander Kornienko2017-04-291-1/+4
| | | | llvm-svn: 301743
* [clang-tidy] Add check readability-implicit-bool-castPiotr Dziwinski2015-10-251-0/+55
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