forked from OSchip/llvm-project
[clang-tidy] add cert's VariadicFunctionDefCheck as cppcoreguidelines-pro-type-vararg-def
Summary: Import the cert check for variadic function definitions into cppcoreguidelines module to check part of https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-type8-avoid-reading-from-varargs-or-passing-vararg-arguments-prefer-variadic-template-parameters-instead Reviewers: alexfh, sbenza, bkramer, aaron.ballman Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13785 llvm-svn: 250468
This commit is contained in:
parent
6ecdbc87e6
commit
0f629153af
|
@ -13,6 +13,7 @@ add_clang_library(clangTidyCppCoreGuidelinesModule
|
|||
clangBasic
|
||||
clangLex
|
||||
clangTidy
|
||||
clangTidyCERTModule
|
||||
clangTidyMiscModule
|
||||
clangTidyUtils
|
||||
clangTooling
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "../ClangTidy.h"
|
||||
#include "../ClangTidyModule.h"
|
||||
#include "../ClangTidyModuleRegistry.h"
|
||||
#include "../cert/VariadicFunctionDefCheck.h"
|
||||
#include "../misc/AssignOperatorSignatureCheck.h"
|
||||
#include "ProBoundsPointerArithmeticCheck.h"
|
||||
#include "ProTypeConstCastCheck.h"
|
||||
|
@ -28,6 +29,8 @@ public:
|
|||
"cppcoreguidelines-pro-bounds-pointer-arithmetic");
|
||||
CheckFactories.registerCheck<ProTypeConstCastCheck>(
|
||||
"cppcoreguidelines-pro-type-const-cast");
|
||||
CheckFactories.registerCheck<VariadicFunctionDefCheck>(
|
||||
"cppcoreguidelines-pro-type-vararg-def");
|
||||
CheckFactories.registerCheck<ProTypeReinterpretCastCheck>(
|
||||
"cppcoreguidelines-pro-type-reinterpret-cast");
|
||||
CheckFactories.registerCheck<ProTypeStaticCastDowncastCheck>(
|
||||
|
|
Loading…
Reference in New Issue