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

Function setFlag

lib/token.h:1538–1540  ·  view source on GitHub ↗

* Set specified flag state. * @param flag_ flag to set state * @param state_ new state of flag */

Source from the content-addressed store, hash-verified

1536 * @param state_ new state of flag
1537 */
1538 void setFlag(uint64_t flag_, bool state_) {
1539 mFlags = state_ ? mFlags | flag_ : mFlags & ~flag_;
1540 }
1541
1542 /** Updates internal property cache like _isName or _isBoolean.
1543 Called after any mStr() modification.

Callers 15

tokTypeFunction · 0.70
isUnsignedFunction · 0.70
isSignedFunction · 0.70
isPointerCompareFunction · 0.70
isLongFunction · 0.70
isStandardTypeFunction · 0.70
isCastFunction · 0.70
isAttributeConstructorFunction · 0.70
isAttributeDestructorFunction · 0.70
isAttributeUnusedFunction · 0.70
isAttributeUsedFunction · 0.70
isAttributePureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected