Skip to content

Commit 1d04939

Browse files
committed
Fix bugprone-macro-parentheses and disable cppcoreguidelines-macro-usage
1 parent 62adc94 commit 1d04939

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

PWGEM/PhotonMeson/Core/EmMlResponsePCM.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@
3535
// matches the entry in EnumInputFeatures associated to this FEATURE
3636
// if so, the inputFeatures vector is filled with the FEATURE's value
3737
// by calling the corresponding GETTER from OBJECT
38+
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
3839
#define CHECK_AND_FILL_VEC_PCM_FULL(OBJECT, FEATURE, GETTER) \
3940
case static_cast<uint8_t>(InputFeaturesPCM::FEATURE): { \
40-
inputFeatures.emplace_back(OBJECT.GETTER()); \
41+
inputFeatures.emplace_back((OBJECT).GETTER()); \
4142
break; \
4243
}
4344

4445
// Specific case of CHECK_AND_FILL_VEC_PCM_FULL(OBJECT, FEATURE, GETTER)
4546
// where OBJECT is named candidate and FEATURE = GETTER
47+
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
4648
#define CHECK_AND_FILL_VEC_PCM(GETTER) \
4749
case static_cast<uint8_t>(InputFeaturesPCM::GETTER): { \
4850
inputFeatures.emplace_back(candidate.GETTER()); \

0 commit comments

Comments
 (0)