diff options
Diffstat (limited to 'include/clang/Sema/AttributeList.h')
| -rw-r--r-- | include/clang/Sema/AttributeList.h | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/include/clang/Sema/AttributeList.h b/include/clang/Sema/AttributeList.h index 7c1678086c2f..f3b042c9ce79 100644 --- a/include/clang/Sema/AttributeList.h +++ b/include/clang/Sema/AttributeList.h @@ -15,6 +15,7 @@  #ifndef LLVM_CLANG_SEMA_ATTRIBUTELIST_H  #define LLVM_CLANG_SEMA_ATTRIBUTELIST_H +#include "clang/Basic/AttrSubjectMatchRules.h"  #include "clang/Basic/SourceLocation.h"  #include "clang/Basic/TargetInfo.h"  #include "clang/Basic/VersionTuple.h" @@ -509,9 +510,14 @@ public:    unsigned getMaxArgs() const;    bool hasVariadicArg() const;    bool diagnoseAppertainsTo(class Sema &S, const Decl *D) const; +  bool appliesToDecl(const Decl *D, attr::SubjectMatchRule MatchRule) const; +  void getMatchRules(const LangOptions &LangOpts, +                     SmallVectorImpl<std::pair<attr::SubjectMatchRule, bool>> +                         &MatchRules) const;    bool diagnoseLangOpts(class Sema &S) const;    bool existsInTarget(const TargetInfo &Target) const;    bool isKnownToGCC() const; +  bool isSupportedByPragmaAttribute() const;    /// \brief If the parsed attribute has a semantic equivalent, and it would    /// have a semantic Spelling enumeration (due to having semantically-distinct @@ -774,6 +780,8 @@ public:    void clear() { list = nullptr; pool.clear(); }    AttributeList *getList() const { return list; } +  void clearListOnly() { list = nullptr; } +    /// Returns a reference to the attribute list.  Try not to introduce    /// dependencies on this method, it may not be long-lived.    AttributeList *&getListRef() { return list; } | 
