llvm-project/clang-tools-extra/clang-tidy/readability
Aaron Ballman f034a8c7d7 Reapply r260096.
Expand the simplify boolean expression check to handle implicit conversion of integral types to bool and improve the handling of implicit conversion of member pointers to bool.

Implicit conversion of member pointers are replaced with explicit comparisons to nullptr.

Implicit conversions of integral types are replaced with explicit comparisons to 0.

Patch by Richard Thomson.

llvm-svn: 260681
2016-02-12 15:09:05 +00:00
..
BracesAroundStatementsCheck.cpp [clang-tidy] Fix an assert failure in 'readability-braces-around-statements' check. 2016-02-11 09:57:55 +00:00
BracesAroundStatementsCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
CMakeLists.txt Add a new check, readability-redundant-control-flow, that check for some forms of redundant control flow statements. Currently checks for return statements at the end of a function with a void return type and continue statements at the end of looping statements. 2016-02-01 15:31:15 +00:00
ContainerSizeEmptyCheck.cpp [clang-tidy] Make readability-container-size-empty work with inline namespaces. Fix PR25812. 2016-02-09 10:20:48 +00:00
ContainerSizeEmptyCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
ElseAfterReturnCheck.cpp clang-tidy: [readability-else-after-return] Fix false positive. This 2015-04-27 22:42:20 +00:00
ElseAfterReturnCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
FunctionSizeCheck.cpp Refactors AST matching code to use the new AST matcher names. This patch correlates to r247885 which performs the AST matcher rename in Clang. 2015-09-17 13:31:25 +00:00
FunctionSizeCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
IdentifierNamingCheck.cpp Test commit. Fix typo in comment. 2016-01-26 18:55:55 +00:00
IdentifierNamingCheck.h [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck 2015-09-28 08:59:12 +00:00
ImplicitBoolCastCheck.cpp Drop dead return after llvm_unreachable. NFC. 2015-10-26 09:57:00 +00:00
ImplicitBoolCastCheck.h [clang-tidy] Add check readability-implicit-bool-cast 2015-10-25 15:31:25 +00:00
InconsistentDeclarationParameterNameCheck.cpp Test commit 2015-10-24 20:11:47 +00:00
InconsistentDeclarationParameterNameCheck.h [clang-tidy] Add inconsistent declaration parameter name check 2015-09-10 10:07:11 +00:00
NamedParameterCheck.cpp [clang-tidy] readability-named-parameter: don't complain about implicit parameters 2015-11-06 00:19:21 +00:00
NamedParameterCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
NamespaceCommentCheck.cpp [clang-tidy] google-readability-namespace-comments: ignore stray semicolons 2015-12-16 15:44:42 +00:00
NamespaceCommentCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
ReadabilityTidyModule.cpp Sort checks alphabetically in ReadabilityTidyModule.cpp. 2016-02-01 19:47:24 +00:00
RedundantControlFlowCheck.cpp Add a new check, readability-redundant-control-flow, that check for some forms of redundant control flow statements. Currently checks for return statements at the end of a function with a void return type and continue statements at the end of looping statements. 2016-02-01 15:31:15 +00:00
RedundantControlFlowCheck.h Add a new check, readability-redundant-control-flow, that check for some forms of redundant control flow statements. Currently checks for return statements at the end of a function with a void return type and continue statements at the end of looping statements. 2016-02-01 15:31:15 +00:00
RedundantSmartptrGetCheck.cpp [clang-tidy] Use proper capitalization and punctuation for diagnostic messages. 2016-01-08 15:21:40 +00:00
RedundantSmartptrGetCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
RedundantStringCStrCheck.cpp Refactors AST matching code to use the new AST matcher names. This patch correlates to r247885 which performs the AST matcher rename in Clang. 2015-09-17 13:31:25 +00:00
RedundantStringCStrCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
SimplifyBooleanExprCheck.cpp Reapply r260096. 2016-02-12 15:09:05 +00:00
SimplifyBooleanExprCheck.h Reapply r260096. 2016-02-12 15:09:05 +00:00
UniqueptrDeleteReleaseCheck.cpp Added check uniqueptr-delete-release to replace "delete x.release()" with "x = nullptr" 2015-10-19 21:49:51 +00:00
UniqueptrDeleteReleaseCheck.h Added check uniqueptr-delete-release to replace "delete x.release()" with "x = nullptr" 2015-10-19 21:49:51 +00:00