Home
last modified time | relevance | path

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

/external/clang/lib/Parse/
DParseObjc.cpp33 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseObjCAtDirectives() local
44 return ParseObjCAtClassDeclaration(AtLoc); in ParseObjCAtDirectives()
47 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, attrs); in ParseObjCAtDirectives()
52 return ParseObjCAtProtocolDeclaration(AtLoc, attrs); in ParseObjCAtDirectives()
55 return ParseObjCAtImplementationDeclaration(AtLoc); in ParseObjCAtDirectives()
57 return ParseObjCAtEndDeclaration(AtLoc); in ParseObjCAtDirectives()
59 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc); in ParseObjCAtDirectives()
62 SingleDecl = ParseObjCPropertySynthesize(AtLoc); in ParseObjCAtDirectives()
65 SingleDecl = ParseObjCPropertyDynamic(AtLoc); in ParseObjCAtDirectives()
69 return ParseModuleImport(AtLoc); in ParseObjCAtDirectives()
[all …]
DParser.cpp850 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseDeclOrFunctionDefInternal() local
862 if (DS.SetTypeSpecType(DeclSpec::TST_unspecified, AtLoc, PrevSpec, DiagID)) in ParseDeclOrFunctionDefInternal()
863 Diag(AtLoc, DiagID) << PrevSpec; in ParseDeclOrFunctionDefInternal()
866 return ParseObjCAtProtocolDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
869 ParseObjCAtInterfaceDeclaration(AtLoc, DS.getAttributes())); in ParseDeclOrFunctionDefInternal()
1842 Parser::DeclGroupPtrTy Parser::ParseModuleImport(SourceLocation AtLoc) { in ParseModuleImport() argument
1876 DeclResult Import = Actions.ActOnModuleImport(AtLoc, ImportLoc, Path); in ParseModuleImport()
DParseExpr.cpp191 Parser::ParseExpressionWithLeadingAt(SourceLocation AtLoc) { in ParseExpressionWithLeadingAt() argument
192 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt()
1252 SourceLocation AtLoc = ConsumeToken(); in ParseCastExpression() local
1253 return ParseObjCAtExpression(AtLoc); in ParseCastExpression()
DParseStmt.cpp113 SourceLocation AtLoc; in ParseStatementOrDeclarationAfterAttributes() local
118 AtLoc = ConsumeToken(); // consume @ in ParseStatementOrDeclarationAfterAttributes()
119 return ParseObjCAtStatement(AtLoc); in ParseStatementOrDeclarationAfterAttributes()
/external/clang/lib/ARCMigrate/
DTransGCAttrs.cpp228 SourceLocation AtLoc, in checkAllAtProps() argument
273 MigrateCtx.AtPropsWeak.insert(AtLoc.getRawEncoding()); in checkAllAtProps()
285 MigrateCtx.rewritePropertyAttribute("assign", toAttr, AtLoc); in checkAllAtProps()
287 MigrateCtx.addPropertyAttribute(toAttr, AtLoc); in checkAllAtProps()
296 TA.clearDiagnostic(diag::err_objc_property_attr_mutually_exclusive, AtLoc); in checkAllAtProps()
313 SourceLocation AtLoc = PD->getAtLoc(); in checkAllProps() local
314 if (AtLoc.isInvalid()) in checkAllProps()
316 unsigned RawAt = AtLoc.getRawEncoding(); in checkAllProps()
323 SourceLocation AtLoc = SourceLocation::getFromRawEncoding(I->first); in checkAllProps() local
325 checkAllAtProps(MigrateCtx, AtLoc, IndProps); in checkAllProps()
/external/clang/include/clang/AST/
DExprObjC.h31 SourceLocation AtLoc; variable
36 String(SL), AtLoc(L) {} in ObjCStringLiteral()
44 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
45 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
48 return SourceRange(AtLoc, String->getLocEnd()); in getSourceRange()
342 SourceLocation AtLoc, RParenLoc; variable
351 EncodedType(EncodedType), AtLoc(at), RParenLoc(rp) {} in ObjCEncodeExpr()
356 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
357 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
369 return SourceRange(AtLoc, RParenLoc); in getSourceRange()
[all …]
DStmtObjC.h350 SourceLocation AtLoc; variable
355 SubStmt(subStmt), AtLoc(atLoc) {} in ObjCAutoreleasePoolStmt()
365 return SourceRange(AtLoc, SubStmt->getLocEnd()); in getSourceRange()
368 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
369 void setAtLoc(SourceLocation Loc) { AtLoc = Loc; } in setAtLoc()
DDeclObjC.h1326 ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc,
1331 : ObjCContainerDecl(ObjCCategory, DC, Id, ClassNameLoc, AtLoc), in ObjCContainerDecl() argument
1339 SourceLocation AtLoc,
1750 SourceLocation AtLoc; // location of \@property
1768 : NamedDecl(ObjCProperty, DC, L, Id), AtLoc(AtLocation), in ObjCPropertyDecl()
1786 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
1787 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
1883 return SourceRange(AtLoc, getLocation()); in getSourceRange()
1906 SourceLocation AtLoc; // location of \@synthesize or \@dynamic
1935 : Decl(ObjCPropertyImpl, DC, L), AtLoc(atLoc), in ObjCPropertyImplDecl()
[all …]
/external/clang/lib/Sema/
DSemaObjCProperty.cpp114 Decl *Sema::ActOnProperty(Scope *S, SourceLocation AtLoc, in ActOnProperty() argument
145 Decl *Res = HandlePropertyInClassExtension(S, AtLoc, LParenLoc, in ActOnProperty()
153 CheckObjCPropertyAttributes(Res, AtLoc, Attributes, false); in ActOnProperty()
161 ObjCPropertyDecl *Res = CreatePropertyDecl(S, ClassDecl, AtLoc, LParenLoc, FD, in ActOnProperty()
171 CheckObjCPropertyAttributes(Res, AtLoc, Attributes, in ActOnProperty()
255 SourceLocation AtLoc, in HandlePropertyInClassExtension() argument
280 Diag(AtLoc, diag::err_duplicate_property); in HandlePropertyInClassExtension()
291 PropertyId, AtLoc, LParenLoc, T); in HandlePropertyInClassExtension()
320 CreatePropertyDecl(S, CCPrimary, AtLoc, LParenLoc, in HandlePropertyInClassExtension()
349 Diag(AtLoc, in HandlePropertyInClassExtension()
[all …]
DSemaStmt.cpp2531 Sema::ActOnObjCAtCatchStmt(SourceLocation AtLoc, in ActOnObjCAtCatchStmt() argument
2538 return Owned(new (Context) ObjCAtCatchStmt(AtLoc, RParen, Var, Body)); in ActOnObjCAtCatchStmt()
2542 Sema::ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body) { in ActOnObjCAtFinallyStmt() argument
2543 return Owned(new (Context) ObjCAtFinallyStmt(AtLoc, Body)); in ActOnObjCAtFinallyStmt()
2547 Sema::ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, in ActOnObjCAtTryStmt() argument
2550 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt()
2554 return Owned(ObjCAtTryStmt::Create(Context, AtLoc, Try, in ActOnObjCAtTryStmt()
2560 StmtResult Sema::BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw) { in BuildObjCAtThrowStmt() argument
2573 return StmtError(Diag(AtLoc, diag::error_objc_throw_expects_object) in BuildObjCAtThrowStmt()
2578 return Owned(new (Context) ObjCAtThrowStmt(AtLoc, Throw)); in BuildObjCAtThrowStmt()
[all …]
DSemaExprObjC.cpp79 ExprResult Sema::BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S){ in BuildObjCStringLiteral() argument
100 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
115 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
140 return new (Context) ObjCStringLiteral(S, Ty, AtLoc); in BuildObjCStringLiteral()
257 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) { in BuildObjCNumericLiteral() argument
285 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral()
304 SourceRange(AtLoc, NR.getEnd()))); in BuildObjCNumericLiteral()
307 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral() argument
321 return BuildObjCNumericLiteral(AtLoc, Inner.get()); in ActOnObjCBoolLiteral()
920 ExprResult Sema::BuildObjCEncodeExpression(SourceLocation AtLoc, in BuildObjCEncodeExpression() argument
[all …]
DTreeTransform.h1189 StmtResult RebuildObjCAtTryStmt(SourceLocation AtLoc, in RebuildObjCAtTryStmt() argument
1193 return getSema().ActOnObjCAtTryStmt(AtLoc, TryBody, CatchStmts, in RebuildObjCAtTryStmt()
1213 StmtResult RebuildObjCAtCatchStmt(SourceLocation AtLoc, in RebuildObjCAtCatchStmt() argument
1217 return getSema().ActOnObjCAtCatchStmt(AtLoc, RParenLoc, in RebuildObjCAtCatchStmt()
1225 StmtResult RebuildObjCAtFinallyStmt(SourceLocation AtLoc, in RebuildObjCAtFinallyStmt() argument
1227 return getSema().ActOnObjCAtFinallyStmt(AtLoc, Body); in RebuildObjCAtFinallyStmt()
1234 StmtResult RebuildObjCAtThrowStmt(SourceLocation AtLoc, in RebuildObjCAtThrowStmt() argument
1236 return getSema().BuildObjCAtThrowStmt(AtLoc, Operand); in RebuildObjCAtThrowStmt()
1252 StmtResult RebuildObjCAtSynchronizedStmt(SourceLocation AtLoc, in RebuildObjCAtSynchronizedStmt() argument
1254 return getSema().ActOnObjCAtSynchronizedStmt(AtLoc, Object, Body); in RebuildObjCAtSynchronizedStmt()
[all …]
DSemaDeclObjC.cpp558 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc, in ActOnCompatibilityAlias() argument
598 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
DSemaDecl.cpp11021 DeclResult Sema::ActOnModuleImport(SourceLocation AtLoc, in ActOnModuleImport() argument
11044 AtLoc.isValid()? AtLoc : ImportLoc, in ActOnModuleImport()
/external/clang/include/clang/Parse/
DParser.h719 void CheckNestedObjCContexts(SourceLocation AtLoc);
1116 Decl *ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
1155 DeclGroupPtrTy ParseObjCAtImplementationDeclaration(SourceLocation AtLoc);
1199 ExprResult ParseExpressionWithLeadingAt(SourceLocation AtLoc);
1394 ExprResult ParseObjCStringLiteral(SourceLocation AtLoc);
1395 ExprResult ParseObjCCharacterLiteral(SourceLocation AtLoc);
1396 ExprResult ParseObjCNumericLiteral(SourceLocation AtLoc);
1397 ExprResult ParseObjCBooleanLiteral(SourceLocation AtLoc, bool ArgValue);
1398 ExprResult ParseObjCArrayLiteral(SourceLocation AtLoc);
1399 ExprResult ParseObjCDictionaryLiteral(SourceLocation AtLoc);
[all …]
/external/clang/lib/AST/
DDeclObjC.cpp1091 SourceLocation AtLoc, in Create() argument
1098 ObjCCategoryDecl *CatDecl = new (C) ObjCCategoryDecl(DC, AtLoc, ClassNameLoc, in Create()
1302 SourceLocation AtLoc, in Create() argument
1306 return new (C) ObjCPropertyDecl(DC, L, Id, AtLoc, LParenLoc, T); in Create()
1345 return SourceRange(AtLoc, EndLoc); in getSourceRange()
/external/clang/include/clang/Sema/
DSema.h1367 DeclResult ActOnModuleImport(SourceLocation AtLoc, SourceLocation ImportLoc,
2301 SourceLocation AtLoc,
2318 SourceLocation AtLoc,
2589 StmtResult ActOnObjCAtCatchStmt(SourceLocation AtLoc, SourceLocation RParen,
2592 StmtResult ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body);
2594 StmtResult ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try,
2597 StmtResult BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw);
2598 StmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw,
2602 StmtResult ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc,
2606 StmtResult ActOnObjCAutoreleasePoolStmt(SourceLocation AtLoc, Stmt *Body);
[all …]