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

Function IsConstQualifiedType

CodeGenerator.cpp:2717–2728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2715//-----------------------------------------------------------------------------
2716
2717static bool IsConstQualifiedType(QualType type)
2718{
2719 if(not type.isNull()) {
2720 if(auto* typePtr = type.getTypePtrOrNull()) {
2721 if(auto pointee = typePtr->getPointeeType(); not pointee.isNull()) {
2722 return pointee.isConstQualified();
2723 }
2724 }
2725 }
2726
2727 return false;
2728}
2729//-----------------------------------------------------------------------------
2730
2731void CodeGenerator::InsertArg(const CStyleCastExpr* stmt)

Callers 1

InsertArgMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected