Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/Parse/
H A DParseObjc.cpp54 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseObjCAtDirectives() local
77 return ParseObjCAtClassDeclaration(AtLoc); in ParseObjCAtDirectives()
79 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
82 return ParseObjCAtProtocolDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
84 return ParseObjCAtImplementationDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
86 return ParseObjCAtEndDeclaration(AtLoc); in ParseObjCAtDirectives()
88 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc); in ParseObjCAtDirectives()
91 SingleDecl = ParseObjCPropertySynthesize(AtLoc); in ParseObjCAtDirectives()
94 SingleDecl = ParseObjCPropertyDynamic(AtLoc); in ParseObjCAtDirectives()
99 SingleDecl = ParseModuleImport(AtLoc, IS); in ParseObjCAtDirectives()
[all …]
H A DParser.cpp1172 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseDeclOrFunctionDefInternal() local
1186 if (DS.SetTypeSpecType(DeclSpec::TST_unspecified, AtLoc, PrevSpec, DiagID, in ParseDeclOrFunctionDefInternal()
1188 Diag(AtLoc, DiagID) << PrevSpec; in ParseDeclOrFunctionDefInternal()
1191 return ParseObjCAtProtocolDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1194 return ParseObjCAtImplementationDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1197 ParseObjCAtInterfaceDeclaration(AtLoc, DS.getAttributes())); in ParseDeclOrFunctionDefInternal()
2484 Decl *Parser::ParseModuleImport(SourceLocation AtLoc, in ParseModuleImport() argument
2486 SourceLocation StartLoc = AtLoc.isInvalid() ? Tok.getLocation() : AtLoc; in ParseModuleImport()
2491 assert((AtLoc.isInvalid() ? Tok.isOneOf(tok::kw_import, tok::identifier) in ParseModuleImport()
2594 if (IsObjCAtImport && AtLoc.isValid()) { in ParseModuleImport()
[all …]
H A DParseStmt.cpp180 SourceLocation AtLoc; in ParseStatementOrDeclarationAfterAttributes() local
184 AtLoc = ConsumeToken(); // consume @ in ParseStatementOrDeclarationAfterAttributes()
185 return ParseObjCAtStatement(AtLoc, StmtCtx); in ParseStatementOrDeclarationAfterAttributes()
H A DParseExpr.cpp135 Parser::ParseExpressionWithLeadingAt(SourceLocation AtLoc) { in ParseExpressionWithLeadingAt() argument
136 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt()
1746 SourceLocation AtLoc = ConsumeToken(); in ParseCastExpression() local
1747 return ParseObjCAtExpression(AtLoc); in ParseCastExpression()
/openbsd-src/gnu/llvm/clang/lib/ARCMigrate/
H A DTransGCAttrs.cpp220 SourceLocation AtLoc, in checkAllAtProps() argument
265 MigrateCtx.AtPropsWeak.insert(AtLoc); in checkAllAtProps()
277 MigrateCtx.rewritePropertyAttribute("assign", toAttr, AtLoc); in checkAllAtProps()
279 MigrateCtx.addPropertyAttribute(toAttr, AtLoc); in checkAllAtProps()
289 TA.clearDiagnostic(diag::err_objc_property_attr_mutually_exclusive, AtLoc); in checkAllAtProps()
306 SourceLocation AtLoc = PD->getAtLoc(); in checkAllProps() local
307 if (AtLoc.isInvalid()) in checkAllProps()
309 AtProps[AtLoc].push_back(PD); in checkAllProps()
314 SourceLocation AtLoc = I->first; in checkAllProps() local
316 checkAllAtProps(MigrateCtx, AtLoc, IndProps); in checkAllProps()
/openbsd-src/gnu/llvm/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()
411 SourceLocation AtLoc, RParenLoc; variable
417 EncodedType(EncodedType), AtLoc(at), RParenLoc(rp) { in ObjCEncodeExpr()
423 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
424 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
436 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc()
[all …]
H A DStmtObjC.h394 SourceLocation AtLoc; variable
399 : Stmt(ObjCAutoreleasePoolStmtClass), AtLoc(atLoc), SubStmt(subStmt) {} in ObjCAutoreleasePoolStmt()
408 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc()
413 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
414 void setAtLoc(SourceLocation Loc) { AtLoc = Loc; } in setAtLoc()
H A DDeclObjC.h738 SourceLocation AtLoc;
775 : NamedDecl(ObjCProperty, DC, L, Id), AtLoc(AtLocation), in ObjCPropertyDecl()
789 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
790 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
922 return SourceRange(AtLoc, getLocation()); in getSourceRange()
1234 ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc,
2333 ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc,
2347 SourceLocation AtLoc,
2797 SourceLocation AtLoc; // location of \@synthesize or \@dynamic
2831 : Decl(ObjCPropertyImpl, DC, L), AtLoc(atLoc), in ObjCPropertyImplDecl()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaObjCProperty.cpp172 Decl *Sema::ActOnProperty(Scope *S, SourceLocation AtLoc, in ActOnProperty() argument
197 Res = HandlePropertyInClassExtension(S, AtLoc, LParenLoc, in ActOnProperty()
210 Res = CreatePropertyDecl(S, ClassDecl, AtLoc, LParenLoc, FD, in ActOnProperty()
220 CheckObjCPropertyAttributes(Res, AtLoc, Attributes, in ActOnProperty()
406 SourceLocation AtLoc, in HandlePropertyInClassExtension() argument
443 Diag(AtLoc, diag::err_duplicate_property); in HandlePropertyInClassExtension()
464 Diag(AtLoc, diag) in HandlePropertyInClassExtension()
474 Diag(AtLoc, diag::warn_property_redecl_getter_mismatch) in HandlePropertyInClassExtension()
491 Diag(AtLoc, diag::warn_property_attr_mismatch); in HandlePropertyInClassExtension()
505 Diag(AtLoc, diag::warn_property_implicitly_mismatched); in HandlePropertyInClassExtension()
[all …]
H A DSemaExprObjC.cpp82 ExprResult Sema::BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S){ in BuildObjCStringLiteral() argument
103 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
118 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
143 return new (Context) ObjCStringLiteral(S, Ty, AtLoc); in BuildObjCStringLiteral()
317 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) { in BuildObjCNumericLiteral() argument
346 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral()
365 SourceRange(AtLoc, NR.getEnd()))); in BuildObjCNumericLiteral()
368 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral() argument
382 return BuildObjCNumericLiteral(AtLoc, Inner.get()); in ActOnObjCBoolLiteral()
1128 ExprResult Sema::BuildObjCEncodeExpression(SourceLocation AtLoc, in BuildObjCEncodeExpression() argument
[all …]
H A DSemaStmt.cpp4196 Sema::ActOnObjCAtCatchStmt(SourceLocation AtLoc, in ActOnObjCAtCatchStmt() argument
4203 return new (Context) ObjCAtCatchStmt(AtLoc, RParen, Var, Body); in ActOnObjCAtCatchStmt()
4207 Sema::ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body) { in ActOnObjCAtFinallyStmt() argument
4208 return new (Context) ObjCAtFinallyStmt(AtLoc, Body); in ActOnObjCAtFinallyStmt()
4212 Sema::ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, in ActOnObjCAtTryStmt() argument
4215 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt()
4220 Diag(AtLoc, diag::err_mixing_cxx_try_seh_try) << 1; in ActOnObjCAtTryStmt()
4224 FSI->setHasObjCTry(AtLoc); in ActOnObjCAtTryStmt()
4226 return ObjCAtTryStmt::Create(Context, AtLoc, Try, CatchStmts.data(), in ActOnObjCAtTryStmt()
4230 StmtResult Sema::BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw) { in BuildObjCAtThrowStmt() argument
[all …]
H A DTreeTransform.h1564 StmtResult RebuildObjCAtTryStmt(SourceLocation AtLoc, in RebuildObjCAtTryStmt() argument
1568 return getSema().ActOnObjCAtTryStmt(AtLoc, TryBody, CatchStmts, in RebuildObjCAtTryStmt()
1588 StmtResult RebuildObjCAtCatchStmt(SourceLocation AtLoc, in RebuildObjCAtCatchStmt() argument
1592 return getSema().ActOnObjCAtCatchStmt(AtLoc, RParenLoc, in RebuildObjCAtCatchStmt()
1600 StmtResult RebuildObjCAtFinallyStmt(SourceLocation AtLoc, in RebuildObjCAtFinallyStmt() argument
1602 return getSema().ActOnObjCAtFinallyStmt(AtLoc, Body); in RebuildObjCAtFinallyStmt()
1609 StmtResult RebuildObjCAtThrowStmt(SourceLocation AtLoc, in RebuildObjCAtThrowStmt() argument
1611 return getSema().BuildObjCAtThrowStmt(AtLoc, Operand); in RebuildObjCAtThrowStmt()
2416 StmtResult RebuildObjCAtSynchronizedStmt(SourceLocation AtLoc, in RebuildObjCAtSynchronizedStmt() argument
2418 return getSema().ActOnObjCAtSynchronizedStmt(AtLoc, Object, Body); in RebuildObjCAtSynchronizedStmt()
[all …]
H A DSemaDeclObjC.cpp1145 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc, in ActOnCompatibilityAlias() argument
1185 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
H A DSemaExpr.cpp21148 llvm::ArrayRef<AvailabilitySpec> AvailSpecs, SourceLocation AtLoc, in ActOnObjCAvailabilityCheckExpr() argument
21178 ObjCAvailabilityCheckExpr(Version, AtLoc, RParen, Context.BoolTy); in ActOnObjCAvailabilityCheckExpr()
/openbsd-src/gnu/llvm/clang/include/clang/Parse/
H A DParser.h1211 void CheckNestedObjCContexts(SourceLocation AtLoc);
1639 Decl *ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
1731 DeclGroupPtrTy ParseObjCAtImplementationDeclaration(SourceLocation AtLoc,
1791 ExprResult ParseExpressionWithLeadingAt(SourceLocation AtLoc);
2057 ExprResult ParseObjCStringLiteral(SourceLocation AtLoc);
2058 ExprResult ParseObjCCharacterLiteral(SourceLocation AtLoc);
2059 ExprResult ParseObjCNumericLiteral(SourceLocation AtLoc);
2060 ExprResult ParseObjCBooleanLiteral(SourceLocation AtLoc, bool ArgValue);
2061 ExprResult ParseObjCArrayLiteral(SourceLocation AtLoc);
2062 ExprResult ParseObjCDictionaryLiteral(SourceLocation AtLoc);
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DDeclObjC.cpp1568 SourceLocation AtLoc, IdentifierInfo *Id, in ObjCInterfaceDecl() argument
1573 : ObjCContainerDecl(ObjCInterface, DC, Id, CLoc, AtLoc), in ObjCInterfaceDecl()
2123 ObjCCategoryDecl::ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc, in ObjCCategoryDecl() argument
2130 : ObjCContainerDecl(ObjCCategory, DC, Id, ClassNameLoc, AtLoc), in ObjCCategoryDecl()
2137 SourceLocation AtLoc, in Create() argument
2146 new (C, DC) ObjCCategoryDecl(DC, AtLoc, ClassNameLoc, CategoryNameLoc, Id, in Create()
2371 SourceLocation AtLoc, in Create() argument
2376 return new (C, DC) ObjCPropertyDecl(DC, L, Id, AtLoc, LParenLoc, T, TSI, in Create()
2425 return SourceRange(AtLoc, EndLoc); in getSourceRange()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSema.h4798 SourceLocation AtLoc,
4816 SourceLocation AtLoc,
5230 StmtResult ActOnObjCAtCatchStmt(SourceLocation AtLoc, SourceLocation RParen,
5233 StmtResult ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body);
5235 StmtResult ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try,
5238 StmtResult BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw);
5239 StmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw,
5243 StmtResult ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc,
5247 StmtResult ActOnObjCAutoreleasePoolStmt(SourceLocation AtLoc, Stmt *Body);
6691 SourceLocation AtLoc, SourceLocation RParen);
[all …]
/openbsd-src/gnu/llvm/llvm/lib/MC/MCParser/
H A DAsmParser.cpp1213 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
1216 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
H A DMasmParser.cpp1624 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
1627 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DASTReaderStmt.cpp1627 E->AtLoc = R.getBegin(); in VisitObjCAvailabilityCheckExpr()