[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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matthias Gehre 2015-10-15 22:40:45 +00:00
Родитель 26123d013c
Коммит 722d8490b9
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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>(