7 #ifndef LLVM_CLANG_STATICANALYZER_CMS_SUPPORT_H
8 #define LLVM_CLANG_STATICANALYZER_CMS_SUPPORT_H
10 #include <clang/AST/Type.h>
11 #include <clang/AST/Decl.h>
12 #include <clang/AST/DeclCXX.h>
29 inline bool isConst( clang::QualType
const& qt )
31 if ( qt->isReferenceType() )
34 return qt.getNonReferenceType().isConstQualified();
36 if ( qt->isPointerType() )
38 clang::PointerType
const*
pt = qt->getAs<clang::PointerType>();
39 return pt->getPointeeType().isConstQualified();
43 return qt.isConstQualified();
bool isKnownThrUnsafeFunc(const std::string &name)
bool isConst(clang::QualType const &qt)
bool isInterestingLocation(const std::string &d)
bool isSafeClassName(const std::string &d)
std::string getQualifiedName(const clang::NamedDecl &d)
void fixAnonNS(std::string &name, const char *fname)
bool isDataClass(const std::string &d)
bool isCmsLocalFile(const char *file)
void writeLog(const std::string &ostring, const std::string &tfstring)