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.cpp56 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseObjCAtDirectives() local
79 return ParseObjCAtClassDeclaration(AtLoc); in ParseObjCAtDirectives()
81 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
84 return ParseObjCAtProtocolDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
86 return ParseObjCAtImplementationDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
88 return ParseObjCAtEndDeclaration(AtLoc); in ParseObjCAtDirectives()
90 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc); in ParseObjCAtDirectives()
93 SingleDecl = ParseObjCPropertySynthesize(AtLoc); in ParseObjCAtDirectives()
96 SingleDecl = ParseObjCPropertyDynamic(AtLoc); in ParseObjCAtDirectives()
101 SingleDecl = ParseModuleImport(AtLoc, IS); in ParseObjCAtDirectives()
[all …]
H A DParser.cpp1210 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseDeclOrFunctionDefInternal() local
1224 if (DS.SetTypeSpecType(DeclSpec::TST_unspecified, AtLoc, PrevSpec, DiagID, in ParseDeclOrFunctionDefInternal()
1226 Diag(AtLoc, DiagID) << PrevSpec; in ParseDeclOrFunctionDefInternal()
1229 return ParseObjCAtProtocolDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1232 return ParseObjCAtImplementationDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1235 ParseObjCAtInterfaceDeclaration(AtLoc, DS.getAttributes())); in ParseDeclOrFunctionDefInternal()
2558 Decl *Parser::ParseModuleImport(SourceLocation AtLoc, in ParseModuleImport() argument
2560 SourceLocation StartLoc = AtLoc.isInvalid() ? Tok.getLocation() : AtLoc; in ParseModuleImport()
2565 assert((AtLoc.isInvalid() ? Tok.isOneOf(tok::kw_import, tok::identifier) in ParseModuleImport()
2673 if (IsObjCAtImport && AtLoc.isValid()) { in ParseModuleImport()
[all …]
H A DParseStmt.cpp188 SourceLocation AtLoc; in ParseStatementOrDeclarationAfterAttributes() local
192 AtLoc = ConsumeToken(); // consume @ in ParseStatementOrDeclarationAfterAttributes()
193 return ParseObjCAtStatement(AtLoc, StmtCtx); in ParseStatementOrDeclarationAfterAttributes()
H A DParseExpr.cpp143 Parser::ParseExpressionWithLeadingAt(SourceLocation AtLoc) { in ParseExpressionWithLeadingAt() argument
144 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt()
1844 SourceLocation AtLoc = ConsumeToken(); in ParseCastExpression() local
1845 return ParseObjCAtExpression(AtLoc); in ParseCastExpression()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h63 StmtResult ActOnObjCAtCatchStmt(SourceLocation AtLoc, SourceLocation RParen,
66 StmtResult ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body);
68 StmtResult ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try,
71 StmtResult BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw);
72 StmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw,
76 StmtResult ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc, Expr *SynchExpr,
79 StmtResult ActOnObjCAutoreleasePoolStmt(SourceLocation AtLoc, Stmt *Body);
662 ExprResult BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S);
667 ExprResult BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number);
668 ExprResult ActOnObjCBoolLiteral(SourceLocation AtLoc, SourceLocation ValueLoc,
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaObjCProperty.cpp174 Decl *SemaObjC::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()
405 Scope *S, SourceLocation AtLoc, SourceLocation LParenLoc, in HandlePropertyInClassExtension() argument
434 Diag(AtLoc, diag::err_duplicate_property); in HandlePropertyInClassExtension()
455 Diag(AtLoc, diag) in HandlePropertyInClassExtension()
465 Diag(AtLoc, diag::warn_property_redecl_getter_mismatch) in HandlePropertyInClassExtension()
482 Diag(AtLoc, diag::warn_property_attr_mismatch); in HandlePropertyInClassExtension()
496 Diag(AtLoc, diag::warn_property_implicitly_mismatched); in HandlePropertyInClassExtension()
[all …]
H A DSemaObjC.cpp206 StmtResult SemaObjC::ActOnObjCAtCatchStmt(SourceLocation AtLoc, in ActOnObjCAtCatchStmt() argument
214 return new (Context) ObjCAtCatchStmt(AtLoc, RParen, Var, Body); in ActOnObjCAtCatchStmt()
217 StmtResult SemaObjC::ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body) { in ActOnObjCAtFinallyStmt() argument
219 return new (Context) ObjCAtFinallyStmt(AtLoc, Body); in ActOnObjCAtFinallyStmt()
222 StmtResult SemaObjC::ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, in ActOnObjCAtTryStmt() argument
227 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt()
232 Diag(AtLoc, diag::err_mixing_cxx_try_seh_try) << 1; in ActOnObjCAtTryStmt()
236 FSI->setHasObjCTry(AtLoc); in ActOnObjCAtTryStmt()
238 return ObjCAtTryStmt::Create(Context, AtLoc, Try, CatchStmts.data(), in ActOnObjCAtTryStmt()
242 StmtResult SemaObjC::BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw) { in BuildObjCAtThrowStmt() argument
[all …]
H A DSemaExprObjC.cpp85 ExprResult SemaObjC::BuildObjCStringLiteral(SourceLocation AtLoc, in BuildObjCStringLiteral() argument
108 NamedDecl *IF = SemaRef.LookupSingleName(SemaRef.TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
123 NamedDecl *IF = SemaRef.LookupSingleName(SemaRef.TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
148 return new (Context) ObjCStringLiteral(S, Ty, AtLoc); in BuildObjCStringLiteral()
322 ExprResult SemaObjC::BuildObjCNumericLiteral(SourceLocation AtLoc, in BuildObjCNumericLiteral() argument
353 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral()
370 Number, NSNumberPointer, Method, SourceRange(AtLoc, NR.getEnd()))); in BuildObjCNumericLiteral()
373 ExprResult SemaObjC::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral() argument
388 return BuildObjCNumericLiteral(AtLoc, Inner.get()); in ActOnObjCBoolLiteral()
1135 ExprResult SemaObjC::BuildObjCEncodeExpression(SourceLocation AtLoc, in BuildObjCEncodeExpression() argument
[all …]
H A DTreeTransform.h1610 StmtResult RebuildObjCAtTryStmt(SourceLocation AtLoc, in RebuildObjCAtTryStmt() argument
1614 return getSema().ObjC().ActOnObjCAtTryStmt(AtLoc, TryBody, CatchStmts, in RebuildObjCAtTryStmt()
1633 StmtResult RebuildObjCAtCatchStmt(SourceLocation AtLoc, in RebuildObjCAtCatchStmt() argument
1637 return getSema().ObjC().ActOnObjCAtCatchStmt(AtLoc, RParenLoc, Var, Body); in RebuildObjCAtCatchStmt()
1644 StmtResult RebuildObjCAtFinallyStmt(SourceLocation AtLoc, in RebuildObjCAtFinallyStmt() argument
1646 return getSema().ObjC().ActOnObjCAtFinallyStmt(AtLoc, Body); in RebuildObjCAtFinallyStmt()
1653 StmtResult RebuildObjCAtThrowStmt(SourceLocation AtLoc, in RebuildObjCAtThrowStmt() argument
1655 return getSema().ObjC().BuildObjCAtThrowStmt(AtLoc, Operand); in RebuildObjCAtThrowStmt()
2502 StmtResult RebuildObjCAtSynchronizedStmt(SourceLocation AtLoc, in RebuildObjCAtSynchronizedStmt() argument
2504 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/AST/
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.h739 SourceLocation AtLoc;
779 : NamedDecl(ObjCProperty, DC, L, Id), AtLoc(AtLocation), in ObjCPropertyDecl()
795 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
796 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
928 return SourceRange(AtLoc, getLocation()); in getSourceRange()
1245 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/Parse/
H A DParser.h1267 void CheckNestedObjCContexts(SourceLocation AtLoc);
1710 Decl *ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
1802 DeclGroupPtrTy ParseObjCAtImplementationDeclaration(SourceLocation AtLoc,
1868 ExprResult ParseExpressionWithLeadingAt(SourceLocation AtLoc);
2140 ExprResult ParseObjCStringLiteral(SourceLocation AtLoc);
2141 ExprResult ParseObjCCharacterLiteral(SourceLocation AtLoc);
2142 ExprResult ParseObjCNumericLiteral(SourceLocation AtLoc);
2143 ExprResult ParseObjCBooleanLiteral(SourceLocation AtLoc, bool ArgValue);
2144 ExprResult ParseObjCArrayLiteral(SourceLocation AtLoc);
2145 ExprResult ParseObjCDictionaryLiteral(SourceLocation AtLoc);
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp1564 const ASTContext &C, DeclContext *DC, SourceLocation AtLoc, in ObjCInterfaceDecl() argument
1567 : ObjCContainerDecl(ObjCInterface, DC, Id, CLoc, AtLoc), in ObjCInterfaceDecl()
2118 DeclContext *DC, SourceLocation AtLoc, SourceLocation ClassNameLoc, in ObjCCategoryDecl() argument
2122 : ObjCContainerDecl(ObjCCategory, DC, Id, ClassNameLoc, AtLoc), in ObjCCategoryDecl()
2129 ASTContext &C, DeclContext *DC, SourceLocation AtLoc, in Create() argument
2135 new (C, DC) ObjCCategoryDecl(DC, AtLoc, ClassNameLoc, CategoryNameLoc, Id, in Create()
2356 const IdentifierInfo *Id, SourceLocation AtLoc, in Create() argument
2359 return new (C, DC) ObjCPropertyDecl(DC, L, Id, AtLoc, LParenLoc, T, TSI, in Create()
2408 return SourceRange(AtLoc, EndLoc); in getSourceRange()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmParser.cpp1210 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
1213 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp1663 E->AtLoc = R.getBegin(); in VisitObjCAvailabilityCheckExpr()