-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathReportingTidyModule.cpp
More file actions
40 lines (32 loc) · 1.28 KB
/
ReportingTidyModule.cpp
File metadata and controls
40 lines (32 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//===--- AliceO2TidyModule.cpp - clang-tidy ----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "../ClangTidy.h"
#include "../ClangTidyModule.h"
#include "../ClangTidyModuleRegistry.h"
#include "InterfaceLister.h"
#include "VirtFuncLister.h"
namespace clang {
namespace tidy {
namespace reporting {
class ReportingModule : public ClangTidyModule {
public:
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override {
CheckFactories.registerCheck<InterfaceLister>("Reporting-interfaces-used");
CheckFactories.registerCheck<VirtFuncLister>("Reporting-unusedvirtfunc");
}
};
} // namespace Reporting
// Register the ReportingTidyModule using this statically initialized variable.
static ClangTidyModuleRegistry::Add<reporting::ReportingModule>
X("Reporting-module", "Adds Reporting tools (for simple analytics)");
// This anchor is used to force the linker to link in the generated object file
// and thus register the ReportingModule.
volatile int ReportingModuleAnchorSource = 0;
} // namespace tidy
} // namespace clang