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

Function GetQualifiedName

InsightsHelpers.cpp:398–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396//-----------------------------------------------------------------------------
397
398static std::string GetQualifiedName(const NamedDecl& decl,
399 const RemoveCurrentScope removeCurrentScope = RemoveCurrentScope::Yes)
400{
401 std::string scope{GetDeclContext(decl.getDeclContext())};
402
403 scope += decl.getName();
404
405 if(RemoveCurrentScope::Yes == removeCurrentScope) {
406 return ScopeHandler::RemoveCurrentScope(scope);
407 }
408
409 return scope;
410}
411//-----------------------------------------------------------------------------
412
413static std::string GetScope(const DeclContext* declCtx,

Callers 2

GetScopeFunction · 0.85
GetNameFunction · 0.85

Calls 2

GetDeclContextFunction · 0.85
getNameMethod · 0.80

Tested by

no test coverage detected