RecoHGCal/TICL: coding-rules compliance #51346
Conversation
…ysis) Findings from cmsCodeRulesChecker, clang-format, scram b code-checks and the LLVM static analyzer (scram b checker) on the package. Include guards (TCR-1): three headers shared the guard RecoHGCal_TICL_PatternRecognitionAlgoBase_H__ (PatternRecognitionAlgoBase.h, TICLInterpretationAlgoBase.h, TracksterLinkingAlgoBase.h) -- a real bug, since a translation unit including two of them silently dropped the second body. Other guards used reserved double-underscore forms (..._H__, leading __...), wrong package casing (RecoHGCAL_/RECOHGCAL_), or a foreign-package guard (TICLGraph.h used DataFormats_HGCalReco_TICLGraph_h). Normalised all 41 to the canonical RecoHGCal_TICL_<File>_h; guards are now unique and free of reserved __. Static analyzer: - TiclDebugger: make the static-local lookup table fully const (static const char* const particle_kind[]) -- threadsafety.StaticLocal. - TracksterLinksProducer::dumpTrackster: remove the dead store of e_over_h (computed but only read by a compiled-out LogDebug) by inlining the expression.
|
cms-bot internal usage |
|
@cmsbuild please test |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-51346/49980
|
|
A new Pull Request was created by @felicepantaleo for master. It involves the following packages:
@Moanwar, @jfernan2, @mandrenguyen, @srimanob can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
|
type bugfix |
|
+1 Size: This PR adds an extra 52KB to repository Comparison SummarySummary:
|
|
type ngt |
Findings from cmsCodeRulesChecker, clang-format, scram b code-checks and the LLVM static analyzer (scram b checker) on the package.
Include guards (TCR-1): three headers shared the guard RecoHGCal_TICL_PatternRecognitionAlgoBase_H__ (PatternRecognitionAlgoBase.h, TICLInterpretationAlgoBase.h, TracksterLinkingAlgoBase.h) -- a real bug, since a translation unit including two of them silently dropped the second body. Other guards used reserved double-underscore forms (...H_, leading ...), wrong package casing (RecoHGCAL/RECOHGCAL), or a foreign-package guard (TICLGraph.h used DataFormats_HGCalReco_TICLGraph_h). Normalised all 41 to the canonical RecoHGCal_TICL__h; guards are now unique and free of reserved __.