CMS 3D CMS Logo

Functions

clangcms::support Namespace Reference

Functions

bool isCmsLocalFile (const char *file)
bool isConst (clang::QualType const &qt)

Function Documentation

bool clangcms::support::isCmsLocalFile ( const char *  file)
bool clangcms::support::isConst ( clang::QualType const &  qt) [inline]

Definition at line 28 of file CmsSupport.h.

{
        if ( qt->isReferenceType() )
        {
                // remove only the surounding reference type
                return qt.getNonReferenceType().isConstQualified();
        }
        if ( qt->isPointerType() )
        {
                clang::PointerType const* pt = qt->getAs<clang::PointerType>();
                return pt->getPointeeType().isConstQualified();
        }

        // regular type
        return qt.isConstQualified();
}