Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:36:48

0001 //===-- AttrSubjectMatchRules.h - Attribute subject match rules -*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_CLANG_BASIC_ATTRSUBJECTMATCHRULES_H
0010 #define LLVM_CLANG_BASIC_ATTRSUBJECTMATCHRULES_H
0011 
0012 #include "llvm/ADT/DenseMap.h"
0013 
0014 namespace clang {
0015 
0016 class SourceRange;
0017 
0018 namespace attr {
0019 
0020 /// A list of all the recognized kinds of attributes.
0021 enum SubjectMatchRule {
0022 #define ATTR_MATCH_RULE(X, Spelling, IsAbstract) X,
0023 #include "clang/Basic/AttrSubMatchRulesList.inc"
0024   SubjectMatchRule_Last = -1
0025 #define ATTR_MATCH_RULE(X, Spelling, IsAbstract) +1
0026 #include "clang/Basic/AttrSubMatchRulesList.inc"
0027 };
0028 
0029 const char *getSubjectMatchRuleSpelling(SubjectMatchRule Rule);
0030 
0031 using ParsedSubjectMatchRuleSet = llvm::DenseMap<int, SourceRange>;
0032 
0033 } // end namespace attr
0034 } // end namespace clang
0035 
0036 #endif