CMS 3D CMS Logo

Functions
clangcms::support Namespace Reference

Functions

void fixAnonNS (std::string &name, const char *fname)
 
std::string getQualifiedName (const clang::NamedDecl &d)
 
bool isCmsLocalFile (const char *file)
 
bool isConst (clang::QualType const &qt)
 
bool isDataClass (const std::string &d)
 
bool isInterestingLocation (const std::string &d)
 
bool isKnownThrUnsafeFunc (const std::string &name)
 
bool isSafeClassName (const std::string &d)
 
void writeLog (const std::string &ostring, const std::string &tfstring)
 

Function Documentation

void clangcms::support::fixAnonNS ( std::string &  name,
const char *  fname 
)

Referenced by isConst().

std::string clangcms::support::getQualifiedName ( const clang::NamedDecl &  d)

Referenced by isConst().

bool clangcms::support::isCmsLocalFile ( const char *  file)

Referenced by isConst().

bool clangcms::support::isConst ( clang::QualType const &  qt)
inline

Definition at line 29 of file CmsSupport.h.

References edmIntegrityCheck::d, FrontierConditions_GlobalTag_cff::file, fixAnonNS(), alignmentValidation::fname, getQualifiedName(), isCmsLocalFile(), isDataClass(), isInterestingLocation(), isKnownThrUnsafeFunc(), isSafeClassName(), dataset::name, EnergyCorrector::pt, AlCaHLTBitMon_QueryRunRegistry::string, and writeLog().

30 {
31  if ( qt->isReferenceType() )
32  {
33  // remove only the surounding reference type
34  return qt.getNonReferenceType().isConstQualified();
35  }
36  if ( qt->isPointerType() )
37  {
38  clang::PointerType const* pt = qt->getAs<clang::PointerType>();
39  return pt->getPointeeType().isConstQualified();
40  }
41 
42  // regular type
43  return qt.isConstQualified();
44 }
bool clangcms::support::isDataClass ( const std::string &  d)

Referenced by isConst().

bool clangcms::support::isInterestingLocation ( const std::string &  d)

Referenced by isConst().

bool clangcms::support::isKnownThrUnsafeFunc ( const std::string &  name)

Referenced by isConst().

bool clangcms::support::isSafeClassName ( const std::string &  d)

Referenced by isConst().

void clangcms::support::writeLog ( const std::string &  ostring,
const std::string &  tfstring 
)