7 #ifndef LLVM_CLANG_STATICANALYZER_CMS_SUPPORT_H
8 #define LLVM_CLANG_STATICANALYZER_CMS_SUPPORT_H
10 #include <llvm/Support/Regex.h>
12 #include <clang/AST/Type.h>
13 #include <clang/AST/Decl.h>
14 #include <clang/AST/DeclCXX.h>
30 inline bool isConst( clang::QualType
const& qt )
32 if ( qt->isReferenceType() )
35 return qt.getNonReferenceType().isConstQualified();
37 if ( qt->isPointerType() )
39 clang::PointerType
const*
pt = qt->getAs<clang::PointerType>();
40 return pt->getPointeeType().isConstQualified();
44 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)
bool isDataClass(const std::string &d)
bool isCmsLocalFile(const char *file)
void writeLog(const std::string &ostring, const std::string &tfstring)