Skip to content

Commit 8c583d5

Browse files
committedAug 1, 2019
Apply code format patch
1 parent 63724b0 commit 8c583d5

File tree

1 file changed

+45
-26
lines changed

1 file changed

+45
-26
lines changed
 

‎Utilities/StaticAnalyzers/src/ClangCmsCheckerPluginRegister.cpp

+45-26
Original file line numberDiff line numberDiff line change
@@ -31,46 +31,65 @@
3131
extern "C" void clang_registerCheckers(clang::ento::CheckerRegistry &registry) {
3232
registry.addChecker<clangcms::ConstCastAwayChecker>(
3333
"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");
3536
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");
3740
registry.addChecker<clangcms::TrunCastChecker>(
3841
"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");
4044
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");
4248
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");
4452
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");
4756
registry.addChecker<clangcms::ClassDumperCT>("optional.ClassDumperCT",
4857
"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");
5566
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");
5971
registry.addChecker<clangcms::edmChecker>(
6072
"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");
6275
registry.addChecker<clangcms::getByChecker>(
6376
"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");
7289
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");
7493
}
7594

7695
extern "C" const char clang_analyzerAPIVersionString[] = CLANG_ANALYZER_API_VERSION_STRING;

0 commit comments

Comments
 (0)
Please sign in to comment.