Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/
H A DParseObjc.cpp50 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseObjCAtDirectives() local
61 return ParseObjCAtClassDeclaration(AtLoc); in ParseObjCAtDirectives()
63 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, Attrs); in ParseObjCAtDirectives()
66 return ParseObjCAtProtocolDeclaration(AtLoc, Attrs); in ParseObjCAtDirectives()
68 return ParseObjCAtImplementationDeclaration(AtLoc, Attrs); in ParseObjCAtDirectives()
70 return ParseObjCAtEndDeclaration(AtLoc); in ParseObjCAtDirectives()
72 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc); in ParseObjCAtDirectives()
75 SingleDecl = ParseObjCPropertySynthesize(AtLoc); in ParseObjCAtDirectives()
78 SingleDecl = ParseObjCPropertyDynamic(AtLoc); in ParseObjCAtDirectives()
82 SingleDecl = ParseModuleImport(AtLoc); in ParseObjCAtDirectives()
[all …]
H A DParser.cpp1097 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseDeclOrFunctionDefInternal() local
1110 if (DS.SetTypeSpecType(DeclSpec::TST_unspecified, AtLoc, PrevSpec, DiagID, in ParseDeclOrFunctionDefInternal()
1112 Diag(AtLoc, DiagID) << PrevSpec; in ParseDeclOrFunctionDefInternal()
1115 return ParseObjCAtProtocolDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1118 return ParseObjCAtImplementationDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1121 ParseObjCAtInterfaceDeclaration(AtLoc, DS.getAttributes())); in ParseDeclOrFunctionDefInternal()
2378 Decl *Parser::ParseModuleImport(SourceLocation AtLoc) { in ParseModuleImport() argument
2379 SourceLocation StartLoc = AtLoc.isInvalid() ? Tok.getLocation() : AtLoc; in ParseModuleImport()
2384 assert((AtLoc.isInvalid() ? Tok.isOneOf(tok::kw_import, tok::identifier) in ParseModuleImport()
2439 if (IsObjCAtImport && AtLoc.isValid()) { in ParseModuleImport()
[all …]
H A DParseStmt.cpp171 SourceLocation AtLoc; in ParseStatementOrDeclarationAfterAttributes() local
175 AtLoc = ConsumeToken(); // consume @ in ParseStatementOrDeclarationAfterAttributes()
176 return ParseObjCAtStatement(AtLoc, StmtCtx); in ParseStatementOrDeclarationAfterAttributes()
H A DParseExpr.cpp134 Parser::ParseExpressionWithLeadingAt(SourceLocation AtLoc) { in ParseExpressionWithLeadingAt() argument
135 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt()
1720 SourceLocation AtLoc = ConsumeToken(); in ParseCastExpression() local
1721 return ParseObjCAtExpression(AtLoc); in ParseCastExpression()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DExprObjC.h54 SourceLocation AtLoc; variable
59 AtLoc(L) { in ObjCStringLiteral()
69 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
70 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
72 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.h369 SourceLocation AtLoc; variable
374 : Stmt(ObjCAutoreleasePoolStmtClass), AtLoc(atLoc), SubStmt(subStmt) {} in ObjCAutoreleasePoolStmt()
383 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc()
388 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
389 void setAtLoc(SourceLocation Loc) { AtLoc = Loc; } in setAtLoc()
H A DDeclObjC.h738 SourceLocation AtLoc;
775 : 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()
1229 ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc,
2285 ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc,
2299 SourceLocation AtLoc,
2749 SourceLocation AtLoc; // location of \@synthesize or \@dynamic
2783 : Decl(ObjCPropertyImpl, DC, L), AtLoc(atLoc), in ObjCPropertyImplDecl()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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.cpp81 ExprResult Sema::BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S){ in BuildObjCStringLiteral() argument
102 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
117 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
142 return new (Context) ObjCStringLiteral(S, Ty, AtLoc); in BuildObjCStringLiteral()
316 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) { in BuildObjCNumericLiteral() argument
345 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral()
364 SourceRange(AtLoc, NR.getEnd()))); in BuildObjCNumericLiteral()
367 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral() argument
381 return BuildObjCNumericLiteral(AtLoc, Inner.get()); in ActOnObjCBoolLiteral()
1130 ExprResult Sema::BuildObjCEncodeExpression(SourceLocation AtLoc, in BuildObjCEncodeExpression() argument
[all …]
H A DSemaStmt.cpp4191 Sema::ActOnObjCAtCatchStmt(SourceLocation AtLoc, in ActOnObjCAtCatchStmt() argument
4198 return new (Context) ObjCAtCatchStmt(AtLoc, RParen, Var, Body); in ActOnObjCAtCatchStmt()
4202 Sema::ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body) { in ActOnObjCAtFinallyStmt() argument
4203 return new (Context) ObjCAtFinallyStmt(AtLoc, Body); in ActOnObjCAtFinallyStmt()
4207 Sema::ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, in ActOnObjCAtTryStmt() argument
4210 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt()
4214 return ObjCAtTryStmt::Create(Context, AtLoc, Try, CatchStmts.data(), in ActOnObjCAtTryStmt()
4218 StmtResult Sema::BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw) { in BuildObjCAtThrowStmt() argument
4235 return StmtError(Diag(AtLoc, diag::err_objc_throw_expects_object) in BuildObjCAtThrowStmt()
4240 return new (Context) ObjCAtThrowStmt(AtLoc, Throw); in BuildObjCAtThrowStmt()
[all …]
H A DTreeTransform.h1499 StmtResult RebuildObjCAtTryStmt(SourceLocation AtLoc, in RebuildObjCAtTryStmt() argument
1503 return getSema().ActOnObjCAtTryStmt(AtLoc, TryBody, CatchStmts, in RebuildObjCAtTryStmt()
1523 StmtResult RebuildObjCAtCatchStmt(SourceLocation AtLoc, in RebuildObjCAtCatchStmt() argument
1527 return getSema().ActOnObjCAtCatchStmt(AtLoc, RParenLoc, in RebuildObjCAtCatchStmt()
1535 StmtResult RebuildObjCAtFinallyStmt(SourceLocation AtLoc, in RebuildObjCAtFinallyStmt() argument
1537 return getSema().ActOnObjCAtFinallyStmt(AtLoc, Body); in RebuildObjCAtFinallyStmt()
1544 StmtResult RebuildObjCAtThrowStmt(SourceLocation AtLoc, in RebuildObjCAtThrowStmt() argument
1546 return getSema().BuildObjCAtThrowStmt(AtLoc, Operand); in RebuildObjCAtThrowStmt()
2258 StmtResult RebuildObjCAtSynchronizedStmt(SourceLocation AtLoc, in RebuildObjCAtSynchronizedStmt() argument
2260 return getSema().ActOnObjCAtSynchronizedStmt(AtLoc, Object, Body); in RebuildObjCAtSynchronizedStmt()
[all …]
H A DSemaDeclObjC.cpp1136 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc, in ActOnCompatibilityAlias() argument
1176 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
H A DSemaExpr.cpp19640 llvm::ArrayRef<AvailabilitySpec> AvailSpecs, SourceLocation AtLoc, in ActOnObjCAvailabilityCheckExpr() argument
19661 ObjCAvailabilityCheckExpr(Version, AtLoc, RParen, Context.BoolTy); in ActOnObjCAvailabilityCheckExpr()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Parse/
H A DParser.h1176 void CheckNestedObjCContexts(SourceLocation AtLoc);
1603 Decl *ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
1694 DeclGroupPtrTy ParseObjCAtImplementationDeclaration(SourceLocation AtLoc,
1754 ExprResult ParseExpressionWithLeadingAt(SourceLocation AtLoc);
2018 ExprResult ParseObjCStringLiteral(SourceLocation AtLoc);
2019 ExprResult ParseObjCCharacterLiteral(SourceLocation AtLoc);
2020 ExprResult ParseObjCNumericLiteral(SourceLocation AtLoc);
2021 ExprResult ParseObjCBooleanLiteral(SourceLocation AtLoc, bool ArgValue);
2022 ExprResult ParseObjCArrayLiteral(SourceLocation AtLoc);
2023 ExprResult ParseObjCDictionaryLiteral(SourceLocation AtLoc);
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DDeclObjC.cpp1517 SourceLocation AtLoc, IdentifierInfo *Id, in ObjCInterfaceDecl() argument
1522 : ObjCContainerDecl(ObjCInterface, DC, Id, CLoc, AtLoc), in ObjCInterfaceDecl()
2030 ObjCCategoryDecl::ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc, in ObjCCategoryDecl() argument
2037 : ObjCContainerDecl(ObjCCategory, DC, Id, ClassNameLoc, AtLoc), in ObjCCategoryDecl()
2044 SourceLocation AtLoc, in Create() argument
2053 new (C, DC) ObjCCategoryDecl(DC, AtLoc, ClassNameLoc, CategoryNameLoc, Id, in Create()
2278 SourceLocation AtLoc, in Create() argument
2283 return new (C, DC) ObjCPropertyDecl(DC, L, Id, AtLoc, LParenLoc, T, TSI, in Create()
2332 return SourceRange(AtLoc, EndLoc); in getSourceRange()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DSema.h4383 SourceLocation AtLoc,
4401 SourceLocation AtLoc,
4808 StmtResult ActOnObjCAtCatchStmt(SourceLocation AtLoc, SourceLocation RParen,
4811 StmtResult ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body);
4813 StmtResult ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try,
4816 StmtResult BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw);
4817 StmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw,
4821 StmtResult ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc,
4825 StmtResult ActOnObjCAutoreleasePoolStmt(SourceLocation AtLoc, Stmt *Body);
6179 SourceLocation AtLoc, SourceLocation RParen);
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/MC/MCParser/
H A DAsmParser.cpp1187 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
1190 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
H A DMasmParser.cpp1489 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
1492 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Serialization/
H A DASTReaderStmt.cpp1626 E->AtLoc = R.getBegin(); in VisitObjCAvailabilityCheckExpr()