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

Method isSameFamily

lib/templatesimplifier.h:253–257  ·  view source on GitHub ↗

* Is declaration the same family (class, function or variable). * * @param decl declaration to compare to * @return true if same family, false if different family */

Source from the content-addressed store, hash-verified

251 * @return true if same family, false if different family
252 */
253 bool isSameFamily(const TemplateSimplifier::TokenAndName &decl) const {
254 // Make sure a family flag is set and matches.
255 // This works because at most only one flag will be set.
256 return ((mFlags & fFamilyMask) && (decl.mFlags & fFamilyMask));
257 }
258 };
259
260 /**

Callers 1

specMatchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected