/external/clang/lib/Parse/ |
D | ParseObjc.cpp | 47 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseObjCAtDirectives() local 58 return ParseObjCAtClassDeclaration(AtLoc); in ParseObjCAtDirectives() 61 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, attrs); in ParseObjCAtDirectives() 66 return ParseObjCAtProtocolDeclaration(AtLoc, attrs); in ParseObjCAtDirectives() 69 return ParseObjCAtImplementationDeclaration(AtLoc); in ParseObjCAtDirectives() 71 return ParseObjCAtEndDeclaration(AtLoc); in ParseObjCAtDirectives() 73 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc); in ParseObjCAtDirectives() 76 SingleDecl = ParseObjCPropertySynthesize(AtLoc); in ParseObjCAtDirectives() 79 SingleDecl = ParseObjCPropertyDynamic(AtLoc); in ParseObjCAtDirectives() 83 return ParseModuleImport(AtLoc); in ParseObjCAtDirectives() [all …]
|
D | Parser.cpp | 860 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseDeclOrFunctionDefInternal() local 872 if (DS.SetTypeSpecType(DeclSpec::TST_unspecified, AtLoc, PrevSpec, DiagID, in ParseDeclOrFunctionDefInternal() 874 Diag(AtLoc, DiagID) << PrevSpec; in ParseDeclOrFunctionDefInternal() 877 return ParseObjCAtProtocolDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal() 880 ParseObjCAtInterfaceDeclaration(AtLoc, DS.getAttributes())); in ParseDeclOrFunctionDefInternal() 1871 Parser::DeclGroupPtrTy Parser::ParseModuleImport(SourceLocation AtLoc) { in ParseModuleImport() argument 1910 DeclResult Import = Actions.ActOnModuleImport(AtLoc, ImportLoc, Path); in ParseModuleImport()
|
D | ParseExpr.cpp | 131 Parser::ParseExpressionWithLeadingAt(SourceLocation AtLoc) { in ParseExpressionWithLeadingAt() argument 132 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt() 1259 SourceLocation AtLoc = ConsumeToken(); in ParseCastExpression() local 1260 return ParseObjCAtExpression(AtLoc); in ParseCastExpression()
|
D | ParseStmt.cpp | 162 SourceLocation AtLoc; in ParseStatementOrDeclarationAfterAttributes() local 167 AtLoc = ConsumeToken(); // consume @ in ParseStatementOrDeclarationAfterAttributes() 168 return ParseObjCAtStatement(AtLoc); in ParseStatementOrDeclarationAfterAttributes()
|
/external/clang/lib/ARCMigrate/ |
D | TransGCAttrs.cpp | 225 SourceLocation AtLoc, in checkAllAtProps() argument 271 MigrateCtx.AtPropsWeak.insert(AtLoc.getRawEncoding()); in checkAllAtProps() 283 MigrateCtx.rewritePropertyAttribute("assign", toAttr, AtLoc); in checkAllAtProps() 285 MigrateCtx.addPropertyAttribute(toAttr, AtLoc); in checkAllAtProps() 294 TA.clearDiagnostic(diag::err_objc_property_attr_mutually_exclusive, AtLoc); in checkAllAtProps() 311 SourceLocation AtLoc = PD->getAtLoc(); in checkAllProps() local 312 if (AtLoc.isInvalid()) in checkAllProps() 314 unsigned RawAt = AtLoc.getRawEncoding(); in checkAllProps() 321 SourceLocation AtLoc = SourceLocation::getFromRawEncoding(I->first); in checkAllProps() local 323 checkAllAtProps(MigrateCtx, AtLoc, IndProps); in checkAllProps()
|
/external/clang/include/clang/AST/ |
D | ExprObjC.h | 31 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() 47 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; } in getLocStart() 358 SourceLocation AtLoc, RParenLoc; 367 EncodedType(EncodedType), AtLoc(at), RParenLoc(rp) {} 372 SourceLocation getAtLoc() const { return AtLoc; } 373 void setAtLoc(SourceLocation L) { AtLoc = L; } 384 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; } [all …]
|
D | StmtObjC.h | 346 SourceLocation AtLoc; variable 351 : Stmt(ObjCAutoreleasePoolStmtClass), AtLoc(atLoc), SubStmt(subStmt) {} in ObjCAutoreleasePoolStmt() 360 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; } in getLocStart() 363 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc() 364 void setAtLoc(SourceLocation Loc) { AtLoc = Loc; } in setAtLoc()
|
D | DeclObjC.h | 738 ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc, 1736 ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc, 1741 : ObjCContainerDecl(ObjCCategory, DC, Id, ClassNameLoc, AtLoc), in ObjCContainerDecl() argument 1750 SourceLocation AtLoc, 2218 SourceLocation AtLoc; // location of \@property 2236 : NamedDecl(ObjCProperty, DC, L, Id), AtLoc(AtLocation), in ObjCPropertyDecl() 2256 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc() 2257 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc() 2353 return SourceRange(AtLoc, getLocation()); in getSourceRange() 2378 SourceLocation AtLoc; // location of \@synthesize or \@dynamic [all …]
|
/external/clang/lib/Sema/ |
D | SemaObjCProperty.cpp | 139 Decl *Sema::ActOnProperty(Scope *S, SourceLocation AtLoc, in ActOnProperty() argument 171 Res = HandlePropertyInClassExtension(S, AtLoc, LParenLoc, in ActOnProperty() 184 Res = CreatePropertyDecl(S, ClassDecl, AtLoc, LParenLoc, FD, in ActOnProperty() 193 CheckObjCPropertyAttributes(Res, AtLoc, Attributes, in ActOnProperty() 316 SourceLocation AtLoc, in HandlePropertyInClassExtension() argument 339 Diag(AtLoc, diag::err_duplicate_property); in HandlePropertyInClassExtension() 351 PropertyId, AtLoc, LParenLoc, T); in HandlePropertyInClassExtension() 384 CreatePropertyDecl(S, CCPrimary, AtLoc, LParenLoc, in HandlePropertyInClassExtension() 417 Diag(AtLoc, in HandlePropertyInClassExtension() 435 Diag(AtLoc, diag::warn_property_attr_mismatch); in HandlePropertyInClassExtension() [all …]
|
D | SemaExprObjC.cpp | 83 ExprResult Sema::BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S){ in BuildObjCStringLiteral() argument 104 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral() 119 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral() 144 return new (Context) ObjCStringLiteral(S, Ty, AtLoc); in BuildObjCStringLiteral() 262 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) { in BuildObjCNumericLiteral() argument 290 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral() 309 SourceRange(AtLoc, NR.getEnd()))); in BuildObjCNumericLiteral() 312 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral() argument 326 return BuildObjCNumericLiteral(AtLoc, Inner.get()); in ActOnObjCBoolLiteral() 933 ExprResult Sema::BuildObjCEncodeExpression(SourceLocation AtLoc, in BuildObjCEncodeExpression() argument [all …]
|
D | SemaStmt.cpp | 3283 Sema::ActOnObjCAtCatchStmt(SourceLocation AtLoc, in ActOnObjCAtCatchStmt() argument 3290 return new (Context) ObjCAtCatchStmt(AtLoc, RParen, Var, Body); in ActOnObjCAtCatchStmt() 3294 Sema::ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body) { in ActOnObjCAtFinallyStmt() argument 3295 return new (Context) ObjCAtFinallyStmt(AtLoc, Body); in ActOnObjCAtFinallyStmt() 3299 Sema::ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, in ActOnObjCAtTryStmt() argument 3302 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt() 3306 return ObjCAtTryStmt::Create(Context, AtLoc, Try, CatchStmts.data(), in ActOnObjCAtTryStmt() 3310 StmtResult Sema::BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw) { in BuildObjCAtThrowStmt() argument 3327 return StmtError(Diag(AtLoc, diag::error_objc_throw_expects_object) in BuildObjCAtThrowStmt() 3332 return new (Context) ObjCAtThrowStmt(AtLoc, Throw); in BuildObjCAtThrowStmt() [all …]
|
D | TreeTransform.h | 1273 StmtResult RebuildObjCAtTryStmt(SourceLocation AtLoc, in RebuildObjCAtTryStmt() argument 1277 return getSema().ActOnObjCAtTryStmt(AtLoc, TryBody, CatchStmts, in RebuildObjCAtTryStmt() 1297 StmtResult RebuildObjCAtCatchStmt(SourceLocation AtLoc, in RebuildObjCAtCatchStmt() argument 1301 return getSema().ActOnObjCAtCatchStmt(AtLoc, RParenLoc, in RebuildObjCAtCatchStmt() 1309 StmtResult RebuildObjCAtFinallyStmt(SourceLocation AtLoc, in RebuildObjCAtFinallyStmt() argument 1311 return getSema().ActOnObjCAtFinallyStmt(AtLoc, Body); in RebuildObjCAtFinallyStmt() 1318 StmtResult RebuildObjCAtThrowStmt(SourceLocation AtLoc, in RebuildObjCAtThrowStmt() argument 1320 return getSema().BuildObjCAtThrowStmt(AtLoc, Operand); in RebuildObjCAtThrowStmt() 1572 StmtResult RebuildObjCAtSynchronizedStmt(SourceLocation AtLoc, in RebuildObjCAtSynchronizedStmt() argument 1574 return getSema().ActOnObjCAtSynchronizedStmt(AtLoc, Object, Body); in RebuildObjCAtSynchronizedStmt() [all …]
|
D | SemaDeclObjC.cpp | 626 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc, in ActOnCompatibilityAlias() argument 663 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
|
D | SemaDecl.cpp | 14004 DeclResult Sema::ActOnModuleImport(SourceLocation AtLoc, in ActOnModuleImport() argument 14039 AtLoc.isValid()? AtLoc : ImportLoc, in ActOnModuleImport()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 814 void CheckNestedObjCContexts(SourceLocation AtLoc); 1231 Decl *ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc, 1274 DeclGroupPtrTy ParseObjCAtImplementationDeclaration(SourceLocation AtLoc); 1325 ExprResult ParseExpressionWithLeadingAt(SourceLocation AtLoc); 1536 ExprResult ParseObjCStringLiteral(SourceLocation AtLoc); 1537 ExprResult ParseObjCCharacterLiteral(SourceLocation AtLoc); 1538 ExprResult ParseObjCNumericLiteral(SourceLocation AtLoc); 1539 ExprResult ParseObjCBooleanLiteral(SourceLocation AtLoc, bool ArgValue); 1540 ExprResult ParseObjCArrayLiteral(SourceLocation AtLoc); 1541 ExprResult ParseObjCDictionaryLiteral(SourceLocation AtLoc); [all …]
|
/external/clang/lib/AST/ |
D | DeclObjC.cpp | 1169 SourceLocation AtLoc, IdentifierInfo *Id, in ObjCInterfaceDecl() argument 1173 : ObjCContainerDecl(ObjCInterface, DC, Id, CLoc, AtLoc), in ObjCInterfaceDecl() 1652 SourceLocation AtLoc, in Create() argument 1660 new (C, DC) ObjCCategoryDecl(DC, AtLoc, ClassNameLoc, CategoryNameLoc, Id, in Create() 1863 SourceLocation AtLoc, in Create() argument 1867 return new (C, DC) ObjCPropertyDecl(DC, L, Id, AtLoc, LParenLoc, T); in Create() 1905 return SourceRange(AtLoc, EndLoc); in getSourceRange()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 1671 DeclResult ActOnModuleImport(SourceLocation AtLoc, SourceLocation ImportLoc, 2827 SourceLocation AtLoc, 2844 SourceLocation AtLoc, 3205 StmtResult ActOnObjCAtCatchStmt(SourceLocation AtLoc, SourceLocation RParen, 3208 StmtResult ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body); 3210 StmtResult ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, 3213 StmtResult BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw); 3214 StmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw, 3218 StmtResult ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc, 3222 StmtResult ActOnObjCAutoreleasePoolStmt(SourceLocation AtLoc, Stmt *Body); [all …]
|
/external/llvm/lib/MC/MCParser/ |
D | AsmParser.cpp | 805 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local 808 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
|