mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-25 09:23:07 +00:00
[clang-tidy] Use range-for for check registration. NFC
Actually, just testing GitHub commit rights.
This commit is contained in:
parent
6fd4c42fa8
commit
aa0e92e1f7
@ -314,10 +314,8 @@ ClangTidyASTConsumerFactory::ClangTidyASTConsumerFactory(
|
||||
IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFS)
|
||||
: Context(Context), OverlayFS(OverlayFS),
|
||||
CheckFactories(new ClangTidyCheckFactories) {
|
||||
for (ClangTidyModuleRegistry::iterator I = ClangTidyModuleRegistry::begin(),
|
||||
E = ClangTidyModuleRegistry::end();
|
||||
I != E; ++I) {
|
||||
std::unique_ptr<ClangTidyModule> Module(I->instantiate());
|
||||
for (ClangTidyModuleRegistry::entry E : ClangTidyModuleRegistry::entries()) {
|
||||
std::unique_ptr<ClangTidyModule> Module = E.instantiate();
|
||||
Module->addCheckFactories(*CheckFactories);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user