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

Function AddField

CoroutinesCodeGenerator.cpp:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59//-----------------------------------------------------------------------------
60
61static FieldDecl* AddField(CoroutineASTData& astData, std::string_view name, QualType type)
62{
63 if(nullptr == astData.mFrameType) {
64 return nullptr;
65 }
66
67 auto* fieldDecl = mkFieldDecl(astData.mFrameType, name, type);
68
69 astData.mFrameType->addDecl(fieldDecl);
70
71 return fieldDecl;
72}
73//-----------------------------------------------------------------------------
74
75FieldDecl* CoroutinesCodeGenerator::AddField(std::string_view name, QualType type)

Callers 7

AddFieldMethod · 0.85
VisitDeclStmtMethod · 0.85
InsertCoroutineMethod · 0.85
InsertArgMethod · 0.85
CfrontVtableDataMethod · 0.85
ProcessFieldsFunction · 0.85

Calls 1

mkFieldDeclFunction · 0.85

Tested by

no test coverage detected