diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-12-13 08:04:11 +0000 |
---|---|---|
committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-12-13 08:04:11 +0000 |
commit | e7be4a004b8a0c26841e3726f201e132187db1fe (patch) | |
tree | fca6bd8ed728a1d9275709a4fa9aa9a56a514101 /clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp | |
parent | ac75bca1eb169c2d13b88e33440dec3df589f964 (diff) | |
download | llvm-e7be4a004b8a0c26841e3726f201e132187db1fe.zip llvm-e7be4a004b8a0c26841e3726f201e132187db1fe.tar.gz llvm-e7be4a004b8a0c26841e3726f201e132187db1fe.tar.bz2 |
[clang-tidy] Add check for redundant function pointer dereferences
Reviewers: alexfh, aaron.ballman, hokein
Subscribers: mgorny, JDevlieghere, cfe-commits
Differential Revision: https://reviews.llvm.org/D27520
llvm-svn: 289524
Diffstat (limited to 'clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp b/clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp index 285826b..57e3de5 100644 --- a/clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp @@ -24,6 +24,7 @@ #include "NonConstParameterCheck.h" #include "RedundantControlFlowCheck.h" #include "RedundantDeclarationCheck.h" +#include "RedundantFunctionPtrDereferenceCheck.h" #include "RedundantMemberInitCheck.h" #include "RedundantSmartptrGetCheck.h" #include "RedundantStringCStrCheck.h" @@ -59,6 +60,8 @@ public: "readability-inconsistent-declaration-parameter-name"); CheckFactories.registerCheck<MisplacedArrayIndexCheck>( "readability-misplaced-array-index"); + CheckFactories.registerCheck<RedundantFunctionPtrDereferenceCheck>( + "readability-redundant-function-ptr-dereference"); CheckFactories.registerCheck<RedundantMemberInitCheck>( "readability-redundant-member-init"); CheckFactories.registerCheck<StaticDefinitionInAnonymousNamespaceCheck>( |