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();