CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
clangcms::support Namespace Reference

Functions

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

std::string clangcms::support::getQualifiedName ( const clang::NamedDecl &  d)
bool clangcms::support::isCmsLocalFile ( const char *  file)
bool clangcms::support::isConst ( clang::QualType const &  qt)
inline

Definition at line 30 of file CmsSupport.h.

References RecoTauCleanerPlugins::pt.

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