|
clang 23.0.0git
|
#include "clang/AST/ASTConsumer.h"#include "clang/AST/Attr.h"#include "clang/AST/DeclCXX.h"#include "clang/AST/Expr.h"#include "clang/Analysis/Analyses/LifetimeSafety/LifetimeAnnotations.h"#include "clang/Basic/TargetInfo.h"#include "clang/Lex/Preprocessor.h"#include "clang/Sema/Lookup.h"#include <optional>#include "clang/Basic/AttrSubMatchRulesList.inc"Go to the source code of this file.
Macros | |
| #define | ATTR_MATCH_RULE(Value, Spelling, IsAbstract) |
| #define | ATTR_MATCH_SUB_RULE(Value, Spelling, IsAbstract, Parent, IsNegated) |
| #define | ATTR_MATCH_RULE(Value, Spelling, IsAbstract) |
| #define | ATTR_MATCH_SUB_RULE(Value, Spelling, IsAbstract, Parent, IsNegated) |
Typedefs | |
| typedef std::vector< std::pair< unsigned, SourceLocation > > | VisStack |
Enumerations | |
| enum | : unsigned { NoVisibility = ~0U } |
Functions | |
| template<typename Attribute> | |
| static void | addGslOwnerPointerAttributeIfNotExisting (ASTContext &Context, CXXRecordDecl *Record) |
| static const CXXNewExpr * | findCXXNewExpr (const Stmt *S) |
| static void | PushPragmaVisibility (Sema &S, unsigned type, SourceLocation loc) |
| template<typename Ty> | |
| static bool | checkCommonAttributeFeatures (Sema &S, const Ty *Node, const ParsedAttr &A, bool SkipArgCountCheck) |
| #define ATTR_MATCH_RULE | ( | Value, | |
| Spelling, | |||
| IsAbstract ) |
| #define ATTR_MATCH_RULE | ( | Value, | |
| Spelling, | |||
| IsAbstract ) |
| #define ATTR_MATCH_SUB_RULE | ( | Value, | |
| Spelling, | |||
| IsAbstract, | |||
| Parent, | |||
| IsNegated ) |
| #define ATTR_MATCH_SUB_RULE | ( | Value, | |
| Spelling, | |||
| IsAbstract, | |||
| Parent, | |||
| IsNegated ) |
| typedef std::vector<std::pair<unsigned, SourceLocation> > VisStack |
Definition at line 1433 of file SemaAttr.cpp.
| anonymous enum : unsigned |
| Enumerator | |
|---|---|
| NoVisibility | |
Definition at line 1434 of file SemaAttr.cpp.
|
static |
Definition at line 103 of file SemaAttr.cpp.
Referenced by clang::Sema::inferGslOwnerPointerAttribute(), and clang::Sema::inferGslPointerAttribute().
|
static |
Definition at line 1626 of file SemaAttr.cpp.
References clang::ParsedAttr::checkAtLeastNumArgs(), clang::ParsedAttr::checkAtMostNumArgs(), clang::Sema::CheckAttrTarget(), clang::ParsedAttr::checkExactlyNumArgs(), clang::ParsedAttr::diagnoseAppertainsTo(), clang::ParsedAttr::diagnoseLangOpts(), clang::ParsedAttr::diagnoseMutualExclusion(), clang::ParsedAttr::getKind(), clang::ParsedAttr::getMaxArgs(), clang::ParsedAttr::getMinArgs(), clang::ParsedAttr::hasCustomParsing(), clang::ParsedAttr::hasVariadicArg(), and clang::AttributeCommonInfo::UnknownAttribute.
|
static |
Definition at line 227 of file SemaAttr.cpp.
References clang::Stmt::children(), and findCXXNewExpr().
Referenced by findCXXNewExpr(), and clang::Sema::inferLifetimeBoundAttribute().
|
static |
Definition at line 1460 of file SemaAttr.cpp.
References clang::ast_matchers::type, and clang::Sema::VisContext.
Referenced by clang::Sema::ActOnPragmaVisibility(), and clang::Sema::PushNamespaceVisibilityAttr().