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> 28 inline bool isConst(clang::QualType
const &qt) {
29 if (qt->isReferenceType()) {
31 return qt.getNonReferenceType().isConstQualified();
33 if (qt->isPointerType()) {
34 clang::PointerType
const *
pt = qt->getAs<clang::PointerType>();
35 return pt->getPointeeType().isConstQualified();
39 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)