diff options
author | Gabor Horvath <xazax.hun@gmail.com> | 2017-02-17 08:52:51 +0000 |
---|---|---|
committer | Gabor Horvath <xazax.hun@gmail.com> | 2017-02-17 08:52:51 +0000 |
commit | e2fa53030e1457060e5b88d4168be9c5b121054c (patch) | |
tree | afe0e4ab990a5a8dbf4815147ae8e9629caee85a /clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp | |
parent | 3c35491f02f79e71688ca4d2ca63c243e3e5b18c (diff) | |
download | bcm5719-llvm-e2fa53030e1457060e5b88d4168be9c5b121054c.tar.gz bcm5719-llvm-e2fa53030e1457060e5b88d4168be9c5b121054c.zip |
[clang-tidy] Add cert-dcl58-cpp (do not modify the 'std' namespace) check.
Differential Revision: https://reviews.llvm.org/D23421
llvm-svn: 295435
Diffstat (limited to 'clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp b/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp index d28f013aadf..1f1f7d7a753 100644 --- a/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp @@ -17,6 +17,7 @@ #include "../misc/StaticAssertCheck.h" #include "../misc/ThrowByValueCatchByReferenceCheck.h" #include "CommandProcessorCheck.h" +#include "DontModifyStdNamespaceCheck.h" #include "FloatLoopCounter.h" #include "LimitedRandomnessCheck.h" #include "SetLongJmpCheck.h" @@ -37,6 +38,8 @@ public: CheckFactories.registerCheck<VariadicFunctionDefCheck>("cert-dcl50-cpp"); CheckFactories.registerCheck<misc::NewDeleteOverloadsCheck>( "cert-dcl54-cpp"); + CheckFactories.registerCheck<DontModifyStdNamespaceCheck>( + "cert-dcl58-cpp"); CheckFactories.registerCheck<google::build::UnnamedNamespaceInHeaderCheck>( "cert-dcl59-cpp"); // OOP |