clang 20.0.0git
|
#include "clang/AST/ASTContext.h"
#include "clang/AST/EvaluatedExprVisitor.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Sema/DelayedDiagnostic.h"
#include "clang/Sema/Lookup.h"
#include "clang/Sema/ParsedAttr.h"
#include "clang/Sema/ScopeInfo.h"
#include "clang/Sema/SemaInternal.h"
#include "llvm/ADT/StringExtras.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 445 of file SemaStmtAttr.cpp.
|
static |
Definition at line 397 of file SemaStmtAttr.cpp.
References clang::SemaBase::Diag().
|
static |
Definition at line 450 of file SemaStmtAttr.cpp.
References Category, clang::Sema::Context, clang::SemaBase::Diag(), and clang::ASTContext::getLangOpts().
Referenced by clang::Sema::ProcessStmtAttributes().
|
static |
Definition at line 246 of file SemaStmtAttr.cpp.
References clang::SemaBase::Diag(), and clang::Stmt::getBeginLoc().
|
static |
Definition at line 313 of file SemaStmtAttr.cpp.
References clang::Sema::CheckAlwaysInlineAttr(), clang::Sema::Context, clang::SemaBase::Diag(), and clang::Stmt::getBeginLoc().
|
static |
Definition at line 388 of file SemaStmtAttr.cpp.
References clang::Sema::BuildCodeAlignAttr(), E, and clang::ParsedAttr::getArgAsExpr().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 328 of file SemaStmtAttr.cpp.
References clang::Sema::ActOnCXXAssumeAttr(), clang::Sema::Context, clang::ActionResult< PtrTy, Compress >::get(), clang::ActionResult< PtrTy, Compress >::isUsable(), and Range.
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 28 of file SemaStmtAttr.cpp.
References clang::Sema::Context, clang::FixItHint::CreateInsertion(), clang::SemaBase::Diag(), clang::SourceRange::getBegin(), clang::Stmt::getBeginLoc(), clang::Sema::getCurFunction(), clang::SourceRange::getEnd(), clang::Sema::getLangOpts(), clang::AttributeCommonInfo::getLoc(), clang::Sema::getLocForEndOfToken(), clang::AttributeCommonInfo::getRange(), clang::AttributeCommonInfo::getScopeName(), clang::AttributeCommonInfo::isCXX11Attribute(), and Range.
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 600 of file SemaStmtAttr.cpp.
References clang::ParsedAttr::checkAtMostNumArgs(), clang::Sema::CheckLoopHintExpr(), clang::Sema::Context, E, clang::ParsedAttr::getArgAsExpr(), clang::Stmt::getBeginLoc(), clang::Expr::getIntegerConstantExpr(), clang::ParsedAttr::getNumArgs(), and clang::ParsedAttr::getSemanticSpelling().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 343 of file SemaStmtAttr.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), clang::Sema::getLangOpts(), clang::AttributeCommonInfo::getLoc(), clang::AttributeCommonInfo::getScopeName(), clang::AttributeCommonInfo::isCXX11Attribute(), and Range.
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 78 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::IdentifierInfo::getName(), clang::IdentifierLoc::Ident, clang::IdentifierInfo::isStr(), and clang::Expr::isValueDependent().
Referenced by ProcessStmtAttribute().
|
static |
|
static |
Definition at line 337 of file SemaStmtAttr.cpp.
References clang::Sema::Context.
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 232 of file SemaStmtAttr.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), and clang::Stmt::getBeginLoc().
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 298 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 219 of file SemaStmtAttr.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), and clang::Stmt::getBeginLoc().
|
static |
Definition at line 569 of file SemaStmtAttr.cpp.
References clang::AANT_ArgumentIntegerConstant, clang::Sema::Context, clang::SemaBase::Diag(), E, 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 352 of file SemaStmtAttr.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), clang::Sema::getLangOpts(), clang::AttributeCommonInfo::getLoc(), clang::AttributeCommonInfo::getScopeName(), clang::AttributeCommonInfo::isCXX11Attribute(), and Range.
Referenced by ProcessStmtAttribute().
|
static |
Definition at line 626 of file SemaStmtAttr.cpp.
References clang::Sema::checkCommonAttributeFeatures(), clang::Sema::Context, clang::SemaBase::Diag(), clang::ParsedAttr::existsInTarget(), clang::ASTContext::getAuxTargetInfo(), clang::SourceRange::getBegin(), clang::Stmt::getBeginLoc(), clang::ParsedAttr::getKind(), clang::ASTContext::getLangOpts(), clang::AttributeCommonInfo::getLoc(), clang::AttributeCommonInfo::getRange(), clang::ASTContext::getTargetInfo(), handleAlwaysInlineAttr(), handleCodeAlignAttr(), handleCXXAssumeAttr(), handleFallThroughAttr(), handleHLSLLoopHintAttr(), handleLikely(), handleLoopHintAttr(), handleMSConstexprAttr(), handleMustTailAttr(), handleNoConvergentAttr(), handleNoInlineAttr(), handleNoMergeAttr(), handleOpenCLUnrollHint(), handleSuppressAttr(), handleUnlikely(), clang::AttributeCommonInfo::IgnoredAttribute, clang::AttributeCommonInfo::isDeclspecAttribute(), clang::ParsedAttr::isInvalid(), clang::AttributeCommonInfo::isRegularKeywordAttribute(), Range, and clang::AttributeCommonInfo::UnknownAttribute.
Referenced by clang::Sema::ProcessStmtAttributes().