|
31 | 31 | extern "C" void clang_registerCheckers(clang::ento::CheckerRegistry ®istry) {
|
32 | 32 | registry.addChecker<clangcms::ConstCastAwayChecker>(
|
33 | 33 | "threadsafety.ConstCastAway",
|
34 |
| - "Checks for casts which remove const qualifier and might result in thread-unsafe code","no docs"); |
| 34 | + "Checks for casts which remove const qualifier and might result in thread-unsafe code", |
| 35 | + "no docs"); |
35 | 36 | registry.addChecker<clangcms::ConstCastChecker>(
|
36 |
| - "threadsafety.ConstCast", "Checks for casts which remove const qualifier and might result in thread-unsafe code", "no docs"); |
| 37 | + "threadsafety.ConstCast", |
| 38 | + "Checks for casts which remove const qualifier and might result in thread-unsafe code", |
| 39 | + "no docs"); |
37 | 40 | registry.addChecker<clangcms::TrunCastChecker>(
|
38 | 41 | "optional.TruncatingCast",
|
39 |
| - "Checks for implicit casts where ToType is smaller than FromType which might result in truncation", "no docs"); |
| 42 | + "Checks for implicit casts where ToType is smaller than FromType which might result in truncation", |
| 43 | + "no docs"); |
40 | 44 | registry.addChecker<clangcms::StaticLocalChecker>(
|
41 |
| - "threadsafety.StaticLocal", "Checks for non-const method local statics which might not be thread-safe", "no docs"); |
| 45 | + "threadsafety.StaticLocal", |
| 46 | + "Checks for non-const method local statics which might not be thread-safe", |
| 47 | + "no docs"); |
42 | 48 | registry.addChecker<clangcms::MutableMemberChecker>(
|
43 |
| - "threadsafety.MutableMember", "Checks for members with the mutable keyword which might not be thread-safe", "no docs"); |
| 49 | + "threadsafety.MutableMember", |
| 50 | + "Checks for members with the mutable keyword which might not be thread-safe", |
| 51 | + "no docs"); |
44 | 52 | registry.addChecker<clangcms::GlobalStaticChecker>(
|
45 |
| - "threadsafety.GlobalStatic", "Checks for global non-const statics which might not be thread-safe", "no docs"); |
46 |
| - registry.addChecker<clangcms::ClassChecker>("optional.ClassChecker", "Checks data classes for thread safety issues", "no docs"); |
| 53 | + "threadsafety.GlobalStatic", "Checks for global non-const statics which might not be thread-safe", "no docs"); |
| 54 | + registry.addChecker<clangcms::ClassChecker>( |
| 55 | + "optional.ClassChecker", "Checks data classes for thread safety issues", "no docs"); |
47 | 56 | registry.addChecker<clangcms::ClassDumperCT>("optional.ClassDumperCT",
|
48 | 57 | "dumps template edm::Wrapper,edm::RunCache,edm::LuminosityBlockCache, "
|
49 |
| - "and edm::GlobalCache types which define data classes ", "no docs"); |
50 |
| - registry.addChecker<clangcms::ClassDumperFT>("optional.ClassDumperFT", |
51 |
| - "dumps macro TYPELOOKUP_DATA_REG types which define data classes", "no docs"); |
52 |
| - registry.addChecker<clangcms::ClassDumperInherit>("optional.ClassDumperInherit", |
53 |
| - "Dumps classes inheriting from data classes", "no docs"); |
54 |
| - registry.addChecker<clangcms::ClassDumper>("optional.ClassDumper", "Dumps class memmbers and base classes ", "no docs"); |
| 58 | + "and edm::GlobalCache types which define data classes ", |
| 59 | + "no docs"); |
| 60 | + registry.addChecker<clangcms::ClassDumperFT>( |
| 61 | + "optional.ClassDumperFT", "dumps macro TYPELOOKUP_DATA_REG types which define data classes", "no docs"); |
| 62 | + registry.addChecker<clangcms::ClassDumperInherit>( |
| 63 | + "optional.ClassDumperInherit", "Dumps classes inheriting from data classes", "no docs"); |
| 64 | + registry.addChecker<clangcms::ClassDumper>( |
| 65 | + "optional.ClassDumper", "Dumps class memmbers and base classes ", "no docs"); |
55 | 66 | registry.addChecker<clangcms::FiniteMathChecker>("cms.NonFiniteMath", "Reports usage of isnan and isinf.", "no docs");
|
56 |
| - registry.addChecker<clangcms::UsingNamespace>("cms.CodeRules.UsingNamespace", |
57 |
| - "Checks for 'using namespace' or 'using std::' in header files", "no docs"); |
58 |
| - registry.addChecker<clangcms::CatchAll>("cms.CodeRules.CatchAll", "Checks for 'catch(...)' in source files", "no docs"); |
| 67 | + registry.addChecker<clangcms::UsingNamespace>( |
| 68 | + "cms.CodeRules.UsingNamespace", "Checks for 'using namespace' or 'using std::' in header files", "no docs"); |
| 69 | + registry.addChecker<clangcms::CatchAll>( |
| 70 | + "cms.CodeRules.CatchAll", "Checks for 'catch(...)' in source files", "no docs"); |
59 | 71 | registry.addChecker<clangcms::edmChecker>(
|
60 | 72 | "cms.edmChecker",
|
61 |
| - "Flags classes inheriting from edm::EDProducer,edm::EDFilter,edm::Analyzer or edm::OutputModule", "no docs"); |
| 73 | + "Flags classes inheriting from edm::EDProducer,edm::EDFilter,edm::Analyzer or edm::OutputModule", |
| 74 | + "no docs"); |
62 | 75 | registry.addChecker<clangcms::getByChecker>(
|
63 | 76 | "optional.getByChecker",
|
64 |
| - "Checks for calls to edm::getByLabel or edm::getManyByType and reports edm::Handle type passed", "no docs"); |
65 |
| - registry.addChecker<clangcms::ArgSizeChecker>("optional.ArgSize", "Reports args passed by value with size>4k.", "no docs"); |
66 |
| - registry.addChecker<clangcms::FunctionChecker>("cms.FunctionChecker", |
67 |
| - "Reports functions which access non-const statics", "no docs"); |
68 |
| - registry.addChecker<clangcms::FunctionDumper>("cms.FunctionDumper", "Reports function calls and overrides", "no docs"); |
69 |
| - registry.addChecker<clangcms::EDMPluginDumper>("optional.EDMPluginDumper", "Dumps macro DEFINE_EDM_PLUGIN types", "no docs"); |
70 |
| - registry.addChecker<clangcms::ThrUnsafeFCallChecker>("cms.ThrUnsafeFCallChecker", |
71 |
| - "Reports calls of known thread unsafe functions", "no docs"); |
| 77 | + "Checks for calls to edm::getByLabel or edm::getManyByType and reports edm::Handle type passed", |
| 78 | + "no docs"); |
| 79 | + registry.addChecker<clangcms::ArgSizeChecker>( |
| 80 | + "optional.ArgSize", "Reports args passed by value with size>4k.", "no docs"); |
| 81 | + registry.addChecker<clangcms::FunctionChecker>( |
| 82 | + "cms.FunctionChecker", "Reports functions which access non-const statics", "no docs"); |
| 83 | + registry.addChecker<clangcms::FunctionDumper>( |
| 84 | + "cms.FunctionDumper", "Reports function calls and overrides", "no docs"); |
| 85 | + registry.addChecker<clangcms::EDMPluginDumper>( |
| 86 | + "optional.EDMPluginDumper", "Dumps macro DEFINE_EDM_PLUGIN types", "no docs"); |
| 87 | + registry.addChecker<clangcms::ThrUnsafeFCallChecker>( |
| 88 | + "cms.ThrUnsafeFCallChecker", "Reports calls of known thread unsafe functions", "no docs"); |
72 | 89 | registry.addChecker<clangcms::getParamDumper>(
|
73 |
| - "optional.getParamDumper", "Dumps out calls to edm::ParamaterSet:: getParameter and getUntrackedParameter", "no docs"); |
| 90 | + "optional.getParamDumper", |
| 91 | + "Dumps out calls to edm::ParamaterSet:: getParameter and getUntrackedParameter", |
| 92 | + "no docs"); |
74 | 93 | }
|
75 | 94 |
|
76 | 95 | extern "C" const char clang_analyzerAPIVersionString[] = CLANG_ANALYZER_API_VERSION_STRING;
|
0 commit comments