clang  15.0.0git
AttrSubjectMatchRules.h
Go to the documentation of this file.
1 //===-- AttrSubjectMatchRules.h - Attribute subject match rules -*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_CLANG_BASIC_ATTRSUBJECTMATCHRULES_H
10 #define LLVM_CLANG_BASIC_ATTRSUBJECTMATCHRULES_H
11 
13 #include "llvm/ADT/DenseMap.h"
14 
15 namespace clang {
16 namespace attr {
17 
18 /// A list of all the recognized kinds of attributes.
20 #define ATTR_MATCH_RULE(X, Spelling, IsAbstract) X,
21 #include "clang/Basic/AttrSubMatchRulesList.inc"
23 #define ATTR_MATCH_RULE(X, Spelling, IsAbstract) +1
24 #include "clang/Basic/AttrSubMatchRulesList.inc"
25 };
26 
28 
29 using ParsedSubjectMatchRuleSet = llvm::DenseMap<int, SourceRange>;
30 
31 } // end namespace attr
32 } // end namespace clang
33 
34 #endif
clang::attr::SubjectMatchRule
SubjectMatchRule
A list of all the recognized kinds of attributes.
Definition: AttrSubjectMatchRules.h:19
clang::ast_matchers::attr
const internal::VariadicAllOfMatcher< Attr > attr
Matches attributes.
Definition: ASTMatchersInternal.cpp:1031
clang::attr::getSubjectMatchRuleSpelling
const char * getSubjectMatchRuleSpelling(SubjectMatchRule Rule)
Definition: Attributes.cpp:36
SourceLocation.h
clang::attr::SubjectMatchRule_Last
@ SubjectMatchRule_Last
Definition: AttrSubjectMatchRules.h:22
clang::attr::ParsedSubjectMatchRuleSet
llvm::DenseMap< int, SourceRange > ParsedSubjectMatchRuleSet
Definition: AttrSubjectMatchRules.h:29
clang
Definition: CalledOnceCheck.h:17