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

Function HasDtor

CfrontCodeGenerator.cpp:192–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190//-----------------------------------------------------------------------------
191
192static bool HasDtor(QualType t)
193{
194 if(auto* cxxRecordDecl = t->getAsCXXRecordDecl(); cxxRecordDecl and not cxxRecordDecl->hasTrivialDestructor()) {
195 return true;
196 }
197
198 return false;
199}
200//-----------------------------------------------------------------------------
201
202static auto* CallVecDeleteOrDtor(Expr* objectParam, QualType allocatedType, std::string_view name, uint64_t size)

Callers 3

InsertArgMethod · 0.85
CallVecNewOrCtorFunction · 0.85
InsertCXXMethodDeclMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected