MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / enable

Method enable

lib/settings.h:76–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 return (mFlags & (1U << static_cast<uint32_t>(flag))) != 0;
75 }
76 void enable(T flag) {
77 mFlags |= (1U << static_cast<uint32_t>(flag));
78 }
79 void enable(SimpleEnableGroup<T> group) {
80 mFlags |= group.intValue();
81 }

Callers 15

parseEnabledMethod · 0.80
applyEnabledMethod · 0.80
parseFromArgsMethod · 0.80
inline_suppressionsMethod · 0.80
testMissingIncludeMethod · 0.80
testMissingInclude2Method · 0.80
testMissingInclude3Method · 0.80
testMissingInclude4Method · 0.80
testMissingInclude5Method · 0.80
testMissingInclude6Method · 0.80

Calls 1

intValueMethod · 0.80

Tested by 15

inline_suppressionsMethod · 0.64
testMissingIncludeMethod · 0.64
testMissingInclude2Method · 0.64
testMissingInclude3Method · 0.64
testMissingInclude4Method · 0.64
testMissingInclude5Method · 0.64
testMissingInclude6Method · 0.64