clang 22.0.0git
|
#include "clang/AST/ASTContext.h"
#include "clang/AST/EvaluatedExprVisitor.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Sema/DelayedDiagnostic.h"
#include "clang/Sema/ParsedAttr.h"
#include "clang/Sema/ScopeInfo.h"
#include <optional>
#include "clang/Sema/AttrParsedAttrImpl.inc"
Go to the source code of this file.
Macros | |
#define | WANT_STMT_MERGE_LOGIC |
#define WANT_STMT_MERGE_LOGIC |
Definition at line 443 of file SemaStmtAttr.cpp.
|
static |
Definition at line 396 of file SemaStmtAttr.cpp.
References clang::cast(), clang::SemaBase::Diag(), and clang::isa().
Referenced by clang::Sema::CheckRebuiltStmtAttributes(), and clang::Sema::ProcessStmtAttributes().
|
static |
Definition at line 448 of file SemaStmtAttr.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), and clang::ASTContext::getLangOpts().
Referenced by clang::Sema::ProcessStmtAttributes().
|
static |
Definition at line 245 of file SemaStmtAttr.cpp.
References clang::SemaBase::Diag(), and clang::Stmt::getBeginLoc().
Referenced by clang::Sema::CheckAlwaysInlineAttr(), and clang::Sema::CheckNoInlineAttr().
|
static |
Definition at line 312 of file SemaStmtAttr.cpp.
References clang::Sema::CheckAlwaysInlineAttr(), clang::Sema::Context, clang::SemaBase::Diag(), and clang::Stmt::getBeginLoc().
|
static |
Definition at line 630 of file SemaStmtAttr.cpp.
References clang::AANT_ArgumentIdentifier, clang::ParsedAttr::checkAtLeastNumArgs(), clang::Sema::Context, clang::SemaBase::Diag(), clang::ParsedAttr::getArgAsExpr(), clang::ParsedAttr::getArgAsIdent(), clang::Stmt::getBeginLoc(), clang::IdentifierLoc::getIdentifierInfo(), clang::IdentifierLoc::getLoc(), clang::IdentifierInfo::getName(), clang::ParsedAttr::getNumArgs(), and clang::ParsedAttr::isArgIdent().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 387 of file SemaStmtAttr.cpp.
References clang::Sema::BuildCodeAlignAttr(), and clang::ParsedAttr::getArgAsExpr().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 327 of file SemaStmtAttr.cpp.
References clang::Sema::ActOnCXXAssumeAttr(), clang::Sema::Context, clang::ActionResult< PtrTy, Compress >::get(), and clang::ActionResult< PtrTy, Compress >::isUsable().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 24 of file SemaStmtAttr.cpp.
References clang::Sema::Context, clang::FixItHint::CreateInsertion(), clang::SemaBase::Diag(), clang::SourceRange::getBegin(), clang::Stmt::getBeginLoc(), clang::Sema::getCurFunction(), clang::Sema::getLangOpts(), clang::AttributeCommonInfo::getLoc(), clang::Sema::getLocForEndOfToken(), clang::AttributeCommonInfo::getRange(), clang::AttributeCommonInfo::getScopeName(), clang::isa(), and clang::AttributeCommonInfo::isCXX11Attribute().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 624 of file SemaStmtAttr.cpp.
References clang::Sema::Context.
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 598 of file SemaStmtAttr.cpp.
References clang::ParsedAttr::checkAtMostNumArgs(), clang::Sema::CheckLoopHintExpr(), clang::Sema::Context, clang::ParsedAttr::getArgAsExpr(), clang::Stmt::getBeginLoc(), clang::Expr::getIntegerConstantExpr(), clang::ParsedAttr::getNumArgs(), and clang::ParsedAttr::getSemanticSpelling().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 342 of file SemaStmtAttr.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), clang::Sema::getLangOpts(), clang::AttributeCommonInfo::getLoc(), clang::AttributeCommonInfo::getScopeName(), and clang::AttributeCommonInfo::isCXX11Attribute().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 74 of file SemaStmtAttr.cpp.
References clang::Sema::CheckLoopHintExpr(), clang::Sema::Context, clang::SemaBase::Diag(), clang::Expr::EvaluateKnownConstInt(), clang::ParsedAttr::getArgAsExpr(), clang::ParsedAttr::getArgAsIdent(), clang::Sema::getASTContext(), clang::Stmt::getBeginLoc(), clang::IdentifierLoc::getIdentifierInfo(), clang::IdentifierInfo::getName(), clang::isa(), clang::IdentifierInfo::isStr(), and clang::Expr::isValueDependent().
Referenced by ProcessStmtAttribute().
|
static |
|
static |
Definition at line 336 of file SemaStmtAttr.cpp.
References clang::Sema::Context.
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 231 of file SemaStmtAttr.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), and clang::Stmt::getBeginLoc().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 297 of file SemaStmtAttr.cpp.
References clang::Sema::CheckNoInlineAttr(), clang::Sema::Context, clang::SemaBase::Diag(), and clang::Stmt::getBeginLoc().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 218 of file SemaStmtAttr.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), and clang::Stmt::getBeginLoc().
|
static |
Definition at line 567 of file SemaStmtAttr.cpp.
References clang::AANT_ArgumentIntegerConstant, clang::Sema::Context, clang::SemaBase::Diag(), clang::ParsedAttr::getArgAsExpr(), clang::SourceRange::getBegin(), clang::Expr::getIntegerConstantExpr(), clang::AttributeCommonInfo::getLoc(), clang::ParsedAttr::getNumArgs(), clang::AttributeCommonInfo::getRange(), and clang::Stmt::getSourceRange().
Referenced by ProcessStmtAttribute().
|
static |
|
static |
Definition at line 351 of file SemaStmtAttr.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), clang::Sema::getLangOpts(), clang::AttributeCommonInfo::getLoc(), clang::AttributeCommonInfo::getScopeName(), and clang::AttributeCommonInfo::isCXX11Attribute().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 662 of file SemaStmtAttr.cpp.
References clang::Sema::checkCommonAttributeFeatures(), clang::Sema::Context, clang::Sema::CreateAnnotationAttr(), clang::SemaBase::Diag(), clang::Sema::DiagnoseUnknownAttribute(), clang::ParsedAttr::existsInTarget(), clang::ASTContext::getAuxTargetInfo(), clang::SourceRange::getBegin(), clang::Stmt::getBeginLoc(), clang::ParsedAttr::getInfo(), clang::ParsedAttr::getKind(), clang::ASTContext::getLangOpts(), clang::AttributeCommonInfo::getLoc(), clang::AttributeCommonInfo::getRange(), clang::ASTContext::getTargetInfo(), handleAlwaysInlineAttr(), handleAtomicAttr(), handleCodeAlignAttr(), handleCXXAssumeAttr(), handleFallThroughAttr(), handleHLSLControlFlowHint(), handleHLSLLoopHintAttr(), handleLikely(), handleLoopHintAttr(), handleMSConstexprAttr(), handleMustTailAttr(), handleNoConvergentAttr(), handleNoInlineAttr(), handleNoMergeAttr(), handleOpenCLUnrollHint(), handleSuppressAttr(), handleUnlikely(), clang::AttributeCommonInfo::IgnoredAttribute, clang::AttributeCommonInfo::isDeclspecAttribute(), clang::ParsedAttr::isInvalid(), clang::AttributeCommonInfo::isRegularKeywordAttribute(), clang::ParsedAttrInfo::NotHandled, and clang::AttributeCommonInfo::UnknownAttribute.
Referenced by clang::Sema::ProcessStmtAttributes().