Home
last modified time | relevance | path

Searched refs:AtLoc (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseObjc.cpp48 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseObjCAtDirectives() local
71 return ParseObjCAtClassDeclaration(AtLoc); in ParseObjCAtDirectives()
73 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
76 return ParseObjCAtProtocolDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
78 return ParseObjCAtImplementationDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
80 return ParseObjCAtEndDeclaration(AtLoc); in ParseObjCAtDirectives()
82 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc); in ParseObjCAtDirectives()
85 SingleDecl = ParseObjCPropertySynthesize(AtLoc); in ParseObjCAtDirectives()
88 SingleDecl = ParseObjCPropertyDynamic(AtLoc); in ParseObjCAtDirectives()
93 SingleDecl = ParseModuleImport(AtLoc, IS); in ParseObjCAtDirectives()
[all …]
H A DParser.cpp1148 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseDeclOrFunctionDefInternal() local
1162 if (DS.SetTypeSpecType(DeclSpec::TST_unspecified, AtLoc, PrevSpec, DiagID, in ParseDeclOrFunctionDefInternal()
1164 Diag(AtLoc, DiagID) << PrevSpec; in ParseDeclOrFunctionDefInternal()
1167 return ParseObjCAtProtocolDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1170 return ParseObjCAtImplementationDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1173 ParseObjCAtInterfaceDeclaration(AtLoc, DS.getAttributes())); in ParseDeclOrFunctionDefInternal()
2426 Decl *Parser::ParseModuleImport(SourceLocation AtLoc, in ParseModuleImport() argument
2428 SourceLocation StartLoc = AtLoc.isInvalid() ? Tok.getLocation() : AtLoc; in ParseModuleImport()
2433 assert((AtLoc.isInvalid() ? Tok.isOneOf(tok::kw_import, tok::identifier) in ParseModuleImport()
2540 if (IsObjCAtImport && AtLoc.isValid()) { in ParseModuleImport()
[all …]
H A DParseStmt.cpp143 SourceLocation AtLoc; in ParseStatementOrDeclarationAfterAttributes() local
147 AtLoc = ConsumeToken(); // consume @ in ParseStatementOrDeclarationAfterAttributes()
148 return ParseObjCAtStatement(AtLoc, StmtCtx); in ParseStatementOrDeclarationAfterAttributes()
H A DParseExpr.cpp53 Parser::ParseExpressionWithLeadingAt(SourceLocation AtLoc) { in ParseExpressionWithLeadingAt() argument
54 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt()
1521 SourceLocation AtLoc = ConsumeToken(); in ParseCastExpression() local
1522 return ParseObjCAtExpression(AtLoc); in ParseCastExpression()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExprObjC.h53 SourceLocation AtLoc; variable
58 AtLoc(L) { in ObjCStringLiteral()
68 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
69 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
71 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc()
410 SourceLocation AtLoc, RParenLoc; variable
416 EncodedType(EncodedType), AtLoc(at), RParenLoc(rp) { in ObjCEncodeExpr()
422 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
423 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
435 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc()
[all …]
H A DStmtObjC.h395 SourceLocation AtLoc; variable
400 : Stmt(ObjCAutoreleasePoolStmtClass), AtLoc(atLoc), SubStmt(subStmt) {} in ObjCAutoreleasePoolStmt()
409 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc()
414 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
415 void setAtLoc(SourceLocation Loc) { AtLoc = Loc; } in setAtLoc()
H A DDeclObjC.h737 SourceLocation AtLoc;
777 : NamedDecl(ObjCProperty, DC, L, Id), AtLoc(AtLocation), in ObjCPropertyDecl()
793 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
794 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
926 return SourceRange(AtLoc, getLocation()); in getSourceRange()
1243 ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc,
2347 ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc,
2361 Create(ASTContext &C, DeclContext *DC, SourceLocation AtLoc,
2810 SourceLocation AtLoc; // location of \@synthesize or \@dynamic
2844 : Decl(ObjCPropertyImpl, DC, L), AtLoc(atLoc), in ObjCPropertyImplDecl()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h65 StmtResult ActOnObjCAtCatchStmt(SourceLocation AtLoc, SourceLocation RParen,
68 StmtResult ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body);
70 StmtResult ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try,
73 StmtResult BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw);
74 StmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw,
78 StmtResult ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc, Expr *SynchExpr,
81 StmtResult ActOnObjCAutoreleasePoolStmt(SourceLocation AtLoc, Stmt *Body);
654 ExprResult BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S);
659 ExprResult BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number);
660 ExprResult ActOnObjCBoolLiteral(SourceLocation AtLoc, SourceLocation ValueLoc,
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaObjCProperty.cpp172 Decl *SemaObjC::ActOnProperty(Scope *S, SourceLocation AtLoc, in ActOnProperty() argument
184 Diag(AtLoc, diag::err_ptrauth_qualifier_invalid) << T << 2; in ActOnProperty()
198 Res = HandlePropertyInClassExtension(S, AtLoc, LParenLoc, in ActOnProperty()
211 Res = CreatePropertyDecl(S, ClassDecl, AtLoc, LParenLoc, FD, in ActOnProperty()
221 CheckObjCPropertyAttributes(Res, AtLoc, Attributes, in ActOnProperty()
406 Scope *S, SourceLocation AtLoc, SourceLocation LParenLoc, in HandlePropertyInClassExtension() argument
435 Diag(AtLoc, diag::err_duplicate_property); in HandlePropertyInClassExtension()
456 Diag(AtLoc, diag) in HandlePropertyInClassExtension()
466 Diag(AtLoc, diag::warn_property_redecl_getter_mismatch) in HandlePropertyInClassExtension()
483 Diag(AtLoc, diag::warn_property_attr_mismatch); in HandlePropertyInClassExtension()
[all …]
H A DSemaObjC.cpp202 StmtResult SemaObjC::ActOnObjCAtCatchStmt(SourceLocation AtLoc, in ActOnObjCAtCatchStmt() argument
210 return new (Context) ObjCAtCatchStmt(AtLoc, RParen, Var, Body); in ActOnObjCAtCatchStmt()
213 StmtResult SemaObjC::ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body) { in ActOnObjCAtFinallyStmt() argument
215 return new (Context) ObjCAtFinallyStmt(AtLoc, Body); in ActOnObjCAtFinallyStmt()
218 StmtResult SemaObjC::ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, in ActOnObjCAtTryStmt() argument
223 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt()
228 Diag(AtLoc, diag::err_mixing_cxx_try_seh_try) << 1; in ActOnObjCAtTryStmt()
232 FSI->setHasObjCTry(AtLoc); in ActOnObjCAtTryStmt()
234 return ObjCAtTryStmt::Create(Context, AtLoc, Try, CatchStmts.data(), in ActOnObjCAtTryStmt()
238 StmtResult SemaObjC::BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw) { in BuildObjCAtThrowStmt() argument
[all …]
H A DSemaExprObjC.cpp83 ExprResult SemaObjC::BuildObjCStringLiteral(SourceLocation AtLoc, in BuildObjCStringLiteral() argument
106 NamedDecl *IF = SemaRef.LookupSingleName(SemaRef.TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
121 NamedDecl *IF = SemaRef.LookupSingleName(SemaRef.TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
146 return new (Context) ObjCStringLiteral(S, Ty, AtLoc); in BuildObjCStringLiteral()
320 ExprResult SemaObjC::BuildObjCNumericLiteral(SourceLocation AtLoc, in BuildObjCNumericLiteral() argument
351 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral()
368 Number, NSNumberPointer, Method, SourceRange(AtLoc, NR.getEnd()))); in BuildObjCNumericLiteral()
371 ExprResult SemaObjC::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral() argument
386 return BuildObjCNumericLiteral(AtLoc, Inner.get()); in ActOnObjCBoolLiteral()
1130 ExprResult SemaObjC::BuildObjCEncodeExpression(SourceLocation AtLoc, in BuildObjCEncodeExpression() argument
[all …]
H A DTreeTransform.h1604 StmtResult RebuildObjCAtTryStmt(SourceLocation AtLoc, in RebuildObjCAtTryStmt() argument
1608 return getSema().ObjC().ActOnObjCAtTryStmt(AtLoc, TryBody, CatchStmts, in RebuildObjCAtTryStmt()
1627 StmtResult RebuildObjCAtCatchStmt(SourceLocation AtLoc, in RebuildObjCAtCatchStmt() argument
1631 return getSema().ObjC().ActOnObjCAtCatchStmt(AtLoc, RParenLoc, Var, Body); in RebuildObjCAtCatchStmt()
1638 StmtResult RebuildObjCAtFinallyStmt(SourceLocation AtLoc, in RebuildObjCAtFinallyStmt() argument
1640 return getSema().ObjC().ActOnObjCAtFinallyStmt(AtLoc, Body); in RebuildObjCAtFinallyStmt()
1647 StmtResult RebuildObjCAtThrowStmt(SourceLocation AtLoc, in RebuildObjCAtThrowStmt() argument
1649 return getSema().ObjC().BuildObjCAtThrowStmt(AtLoc, Operand); in RebuildObjCAtThrowStmt()
2535 StmtResult RebuildObjCAtSynchronizedStmt(SourceLocation AtLoc, in RebuildObjCAtSynchronizedStmt() argument
2537 return getSema().ObjC().ActOnObjCAtSynchronizedStmt(AtLoc, Object, Body); in RebuildObjCAtSynchronizedStmt()
[all …]
H A DSemaDeclObjC.cpp1142 Decl *SemaObjC::ActOnCompatibilityAlias(SourceLocation AtLoc, in ActOnCompatibilityAlias() argument
1183 Context, SemaRef.CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h1055 Decl *ParseModuleImport(SourceLocation AtLoc,
3835 ExprResult ParseExpressionWithLeadingAt(SourceLocation AtLoc);
5389 void CheckNestedObjCContexts(SourceLocation AtLoc);
5454 Decl *ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
5649 DeclGroupPtrTy ParseObjCAtImplementationDeclaration(SourceLocation AtLoc,
5805 ExprResult ParseObjCStringLiteral(SourceLocation AtLoc);
5812 ExprResult ParseObjCCharacterLiteral(SourceLocation AtLoc);
5821 ExprResult ParseObjCNumericLiteral(SourceLocation AtLoc);
5830 ExprResult ParseObjCBooleanLiteral(SourceLocation AtLoc, bool ArgValue);
5832 ExprResult ParseObjCArrayLiteral(SourceLocation AtLoc);
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp1561 const ASTContext &C, DeclContext *DC, SourceLocation AtLoc, in ObjCInterfaceDecl() argument
1564 : ObjCContainerDecl(ObjCInterface, DC, Id, CLoc, AtLoc), in ObjCInterfaceDecl()
2115 DeclContext *DC, SourceLocation AtLoc, SourceLocation ClassNameLoc, in ObjCCategoryDecl() argument
2119 : ObjCContainerDecl(ObjCCategory, DC, Id, ClassNameLoc, AtLoc), in ObjCCategoryDecl()
2126 ASTContext &C, DeclContext *DC, SourceLocation AtLoc, in Create() argument
2132 new (C, DC) ObjCCategoryDecl(DC, AtLoc, ClassNameLoc, CategoryNameLoc, Id, in Create()
2353 const IdentifierInfo *Id, SourceLocation AtLoc, in Create() argument
2356 return new (C, DC) ObjCPropertyDecl(DC, L, Id, AtLoc, LParenLoc, T, TSI, in Create()
2405 return SourceRange(AtLoc, EndLoc); in getSourceRange()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmParser.cpp1184 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
1187 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp1682 E->AtLoc = R.getBegin(); in VisitObjCAvailabilityCheckExpr()