1 //===-- AttrSubjectMatchRules.h - Attribute subject match rules -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_CLANG_BASIC_ATTR_SUBJECT_MATCH_RULES_H
11 #define LLVM_CLANG_BASIC_ATTR_SUBJECT_MATCH_RULES_H
13 #include "clang/Basic/SourceLocation.h"
14 #include "llvm/ADT/DenseMap.h"
19 /// \brief A list of all the recognized kinds of attributes.
20 enum SubjectMatchRule {
21 #define ATTR_MATCH_RULE(X, Spelling, IsAbstract) X,
22 #include "clang/Basic/AttrSubMatchRulesList.inc"
25 const char *getSubjectMatchRuleSpelling(SubjectMatchRule Rule);
27 using ParsedSubjectMatchRuleSet = llvm::DenseMap<int, SourceRange>;
29 } // end namespace attr
30 } // end namespace clang