clang-tools-extra/clang-tidy/readability
Samuel Benzaquen b318041e71 Speed up check by using a recursive visitor.
Summary:
Use a recursive visitor instead of forEachDescendant() matcher.
The latter requires several layers of virtual function calls for each node and
it is more expensive than the visitor.
Benchmark results show improvement of ~6% walltime in clang-tidy.

Reviewers: alexfh

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D20597

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@270714 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-25 16:19:23 +00:00
..
AvoidConstParamsInDecls.cpp [clang-tidy] fix readability-avoid-const-params-in-decls creating invalid code in fix-its 2016-04-12 05:45:13 +00:00
AvoidConstParamsInDecls.h [clang-tidy] Fix MSVC build. 2016-03-30 12:35:05 +00:00
BracesAroundStatementsCheck.cpp [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check. 2016-02-16 10:31:33 +00:00
BracesAroundStatementsCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
CMakeLists.txt clangTidyReadabilityModule: Add clangTidyUtils in libdeps, corresponding to r267003. 2016-04-22 00:33:39 +00:00
ContainerSizeEmptyCheck.cpp [clang-tidy] Cleanup some ast-matchers and lift some to utils. 2016-04-21 16:57:56 +00:00
ContainerSizeEmptyCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
DeletedDefaultCheck.cpp [clang-tidy] Add a readability-deleted-default clang-tidy check. 2016-04-13 11:33:40 +00:00
DeletedDefaultCheck.h [clang-tidy] Add a readability-deleted-default clang-tidy check. 2016-04-13 11:33:40 +00:00
ElseAfterReturnCheck.cpp [clang-tidy] Refactoring of FixHintUtils 2016-05-11 17:38:22 +00:00
ElseAfterReturnCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
FunctionSizeCheck.cpp Speed up check by using a recursive visitor. 2016-05-25 16:19:23 +00:00
FunctionSizeCheck.h Speed up check by using a recursive visitor. 2016-05-25 16:19:23 +00:00
IdentifierNamingCheck.cpp IdentifierNamingCheck.cpp: try to fix MSVC build 2016-02-29 21:17:39 +00:00
IdentifierNamingCheck.h [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck 2015-09-28 08:59:12 +00:00
ImplicitBoolCastCheck.cpp [clang-tidy] Lift common matchers to utils namespace 2016-05-17 19:36:09 +00:00
ImplicitBoolCastCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
InconsistentDeclarationParameterNameCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +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 links to Google Code Style in docs 2016-02-25 14:31:10 +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 links to Google Code Style in docs 2016-02-25 14:31:10 +00:00
ReadabilityTidyModule.cpp [clang-tidy] Add a readability-deleted-default clang-tidy check. 2016-04-13 11:33:40 +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] Match the type against the get() method we are calling, 2016-02-17 16:13:14 +00:00
RedundantSmartptrGetCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
RedundantStringCStrCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
RedundantStringCStrCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
RedundantStringInitCheck.cpp [clang-tidy] Lift common matchers to utils namespace 2016-05-17 19:36:09 +00:00
RedundantStringInitCheck.h Add a new check, readability-redundant-string-init, that checks unnecessary string initializations. 2016-02-25 23:57:23 +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
StaticDefinitionInAnonymousNamespaceCheck.cpp [clang-tidy] Add a check to detect static definitions in anonymous namespace. 2016-04-05 11:42:08 +00:00
StaticDefinitionInAnonymousNamespaceCheck.h [clang-tidy] Add a check to detect static definitions in anonymous namespace. 2016-04-05 11:42:08 +00:00
UniqueptrDeleteReleaseCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
UniqueptrDeleteReleaseCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00