diff options
Diffstat (limited to 'clang-tidy/ClangTidyModule.cpp')
-rw-r--r-- | clang-tidy/ClangTidyModule.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang-tidy/ClangTidyModule.cpp b/clang-tidy/ClangTidyModule.cpp index dc3a11d0..87ab2be3 100644 --- a/clang-tidy/ClangTidyModule.cpp +++ b/clang-tidy/ClangTidyModule.cpp @@ -32,8 +32,11 @@ void ClangTidyCheckFactories::createChecks( ChecksFilter &Filter, SmallVectorImpl<ClangTidyCheck *> &Checks) { for (FactoryMap::iterator I = Factories.begin(), E = Factories.end(); I != E; ++I) { - if (Filter.IsCheckEnabled(I->first)) - Checks.push_back(I->second->createCheck()); + if (Filter.IsCheckEnabled(I->first)) { + ClangTidyCheck *Check = I->second->createCheck(); + Check->setName(I->first); + Checks.push_back(Check); + } } } |