diff options
| author | Gabor Horvath <xazax.hun@gmail.com> | 2017-04-06 09:56:42 +0000 |
|---|---|---|
| committer | Gabor Horvath <xazax.hun@gmail.com> | 2017-04-06 09:56:42 +0000 |
| commit | b3856d65ea1f9210ca3ad3fa08b3584d5cbb3b05 (patch) | |
| tree | 697d6240ea8d366b00de9e8e572792e48d8e83e1 /clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp | |
| parent | 0b5293f6ae5ae0bfa51fc936334e831def373272 (diff) | |
| download | bcm5719-llvm-b3856d65ea1f9210ca3ad3fa08b3584d5cbb3b05.tar.gz bcm5719-llvm-b3856d65ea1f9210ca3ad3fa08b3584d5cbb3b05.zip | |
[clang-tidy] Check for forwarding reference overload in constructors.
Patch by AndrĂ¡s Leitereg!
Differential Revision: https://reviews.llvm.org/D30547
llvm-svn: 299638
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp b/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp index 755e2c7ad4a..43d09c75388 100644 --- a/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp @@ -17,6 +17,7 @@ #include "DefinitionsInHeadersCheck.h" #include "FoldInitTypeCheck.h" #include "ForwardDeclarationNamespaceCheck.h" +#include "ForwardingReferenceOverloadCheck.h" #include "InaccurateEraseCheck.h" #include "IncorrectRoundings.h" #include "InefficientAlgorithmCheck.h" @@ -65,6 +66,8 @@ public: CheckFactories.registerCheck<ArgumentCommentCheck>("misc-argument-comment"); CheckFactories.registerCheck<AssertSideEffectCheck>( "misc-assert-side-effect"); + CheckFactories.registerCheck<ForwardingReferenceOverloadCheck>( + "misc-forwarding-reference-overload"); CheckFactories.registerCheck<MisplacedConstCheck>("misc-misplaced-const"); CheckFactories.registerCheck<UnconventionalAssignOperatorCheck>( "misc-unconventional-assign-operator"); |

