MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / HandleType

Method HandleType

InsightsHelpers.cpp:458–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456 bool mTmplParamTypeRes{}; //!< When processing FunctionProtoType parameters we need to get the identifiers
457
458 bool HandleType(const TemplateTypeParmType* type)
459 {
460 if(const TemplateTypeParmDecl* decl = type->getDecl();
461 (nullptr == type->getIdentifier()) or
462 (decl and decl->isImplicit()) /* this fixes auto operator()(type_parameter_0_0 container) const */) {
463
464 AppendTemplateTypeParamName(mData, decl, true, type);
465
466 return true;
467
468 } else if(nullptr != type->getIdentifier()) {
469 mData.Append(type->getIdentifier()->getName());
470 }
471
472 return mTmplParamTypeRes;
473 }
474
475 bool HandleType(const LValueReferenceType* type)
476 {

Callers

nothing calls this directly

Calls 15

GetScopeFunction · 0.85
GetDeclContextFunction · 0.85
IsAnonymousStructOrUnionFunction · 0.85
GetNameFunction · 0.85
GetNestedNameFunction · 0.85
GetElaboratedTypeKeywordFunction · 0.85
GetSizeFunction · 0.85
AppendMethod · 0.80
getNameMethod · 0.80
clearMethod · 0.80

Tested by

no test coverage detected