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

Function GetConst

InsightsHelpers.cpp:1604–1613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1602//-----------------------------------------------------------------------------
1603
1604const std::string_view GetConst(const FunctionDecl& decl)
1605{
1606 if(const auto* methodDecl = dyn_cast_or_null<CXXMethodDecl>(&decl)) {
1607 if(methodDecl->isConst()) {
1608 return kwSpaceConst;
1609 }
1610 }
1611
1612 return {};
1613}
1614//-----------------------------------------------------------------------------
1615
1616std::string GetElaboratedTypeKeyword(const ElaboratedTypeKeyword keyword)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected