/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 | 855 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseDeclOrFunctionDefInternal() local 867 if (DS.SetTypeSpecType(DeclSpec::TST_unspecified, AtLoc, PrevSpec, DiagID, in ParseDeclOrFunctionDefInternal() 869 Diag(AtLoc, DiagID) << PrevSpec; in ParseDeclOrFunctionDefInternal() 872 return ParseObjCAtProtocolDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal() 875 ParseObjCAtInterfaceDeclaration(AtLoc, DS.getAttributes())); in ParseDeclOrFunctionDefInternal() 1889 Parser::DeclGroupPtrTy Parser::ParseModuleImport(SourceLocation AtLoc) { in ParseModuleImport() argument 1928 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() 1137 SourceLocation AtLoc = ConsumeToken(); in ParseCastExpression() local 1138 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() 349 SourceLocation AtLoc, RParenLoc; 358 EncodedType(EncodedType), AtLoc(at), RParenLoc(rp) {} 363 SourceLocation getAtLoc() const { return AtLoc; } 364 void setAtLoc(SourceLocation L) { AtLoc = L; } 375 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; } [all …]
|
D | StmtObjC.h | 345 SourceLocation AtLoc; variable 350 SubStmt(subStmt), AtLoc(atLoc) {} in ObjCAutoreleasePoolStmt() 359 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; } in getLocStart() 362 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc() 363 void setAtLoc(SourceLocation Loc) { AtLoc = Loc; } in setAtLoc()
|
D | DeclObjC.h | 737 ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc, 1727 ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc, 1732 : ObjCContainerDecl(ObjCCategory, DC, Id, ClassNameLoc, AtLoc), in ObjCContainerDecl() argument 1741 SourceLocation AtLoc, 2202 SourceLocation AtLoc; // location of \@property 2220 : NamedDecl(ObjCProperty, DC, L, Id), AtLoc(AtLocation), in ObjCPropertyDecl() 2240 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc() 2241 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc() 2337 return SourceRange(AtLoc, getLocation()); in getSourceRange() 2362 SourceLocation AtLoc; // location of \@synthesize or \@dynamic [all …]
|
/external/clang/lib/Sema/ |
D | SemaObjCProperty.cpp | 138 Decl *Sema::ActOnProperty(Scope *S, SourceLocation AtLoc, in ActOnProperty() argument 170 Res = HandlePropertyInClassExtension(S, AtLoc, LParenLoc, in ActOnProperty() 183 Res = CreatePropertyDecl(S, ClassDecl, AtLoc, LParenLoc, FD, in ActOnProperty() 192 CheckObjCPropertyAttributes(Res, AtLoc, Attributes, in ActOnProperty() 315 SourceLocation AtLoc, in HandlePropertyInClassExtension() argument 338 Diag(AtLoc, diag::err_duplicate_property); in HandlePropertyInClassExtension() 350 PropertyId, AtLoc, LParenLoc, T); in HandlePropertyInClassExtension() 383 CreatePropertyDecl(S, CCPrimary, AtLoc, LParenLoc, in HandlePropertyInClassExtension() 414 Diag(AtLoc, in HandlePropertyInClassExtension() 432 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() 260 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) { in BuildObjCNumericLiteral() argument 288 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral() 307 SourceRange(AtLoc, NR.getEnd()))); in BuildObjCNumericLiteral() 310 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral() argument 324 return BuildObjCNumericLiteral(AtLoc, Inner.get()); in ActOnObjCBoolLiteral() 931 ExprResult Sema::BuildObjCEncodeExpression(SourceLocation AtLoc, in BuildObjCEncodeExpression() argument [all …]
|
D | SemaStmt.cpp | 3034 Sema::ActOnObjCAtCatchStmt(SourceLocation AtLoc, in ActOnObjCAtCatchStmt() argument 3041 return new (Context) ObjCAtCatchStmt(AtLoc, RParen, Var, Body); in ActOnObjCAtCatchStmt() 3045 Sema::ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body) { in ActOnObjCAtFinallyStmt() argument 3046 return new (Context) ObjCAtFinallyStmt(AtLoc, Body); in ActOnObjCAtFinallyStmt() 3050 Sema::ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, in ActOnObjCAtTryStmt() argument 3053 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt() 3057 return ObjCAtTryStmt::Create(Context, AtLoc, Try, CatchStmts.data(), in ActOnObjCAtTryStmt() 3061 StmtResult Sema::BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw) { in BuildObjCAtThrowStmt() argument 3078 return StmtError(Diag(AtLoc, diag::error_objc_throw_expects_object) in BuildObjCAtThrowStmt() 3083 return new (Context) ObjCAtThrowStmt(AtLoc, Throw); in BuildObjCAtThrowStmt() [all …]
|
D | TreeTransform.h | 1246 StmtResult RebuildObjCAtTryStmt(SourceLocation AtLoc, in RebuildObjCAtTryStmt() argument 1250 return getSema().ActOnObjCAtTryStmt(AtLoc, TryBody, CatchStmts, in RebuildObjCAtTryStmt() 1270 StmtResult RebuildObjCAtCatchStmt(SourceLocation AtLoc, in RebuildObjCAtCatchStmt() argument 1274 return getSema().ActOnObjCAtCatchStmt(AtLoc, RParenLoc, in RebuildObjCAtCatchStmt() 1282 StmtResult RebuildObjCAtFinallyStmt(SourceLocation AtLoc, in RebuildObjCAtFinallyStmt() argument 1284 return getSema().ActOnObjCAtFinallyStmt(AtLoc, Body); in RebuildObjCAtFinallyStmt() 1291 StmtResult RebuildObjCAtThrowStmt(SourceLocation AtLoc, in RebuildObjCAtThrowStmt() argument 1293 return getSema().BuildObjCAtThrowStmt(AtLoc, Operand); in RebuildObjCAtThrowStmt() 1522 StmtResult RebuildObjCAtSynchronizedStmt(SourceLocation AtLoc, in RebuildObjCAtSynchronizedStmt() argument 1524 return getSema().ActOnObjCAtSynchronizedStmt(AtLoc, Object, Body); in RebuildObjCAtSynchronizedStmt() [all …]
|
D | SemaDeclObjC.cpp | 630 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc, in ActOnCompatibilityAlias() argument 667 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
|
D | SemaDecl.cpp | 13360 DeclResult Sema::ActOnModuleImport(SourceLocation AtLoc, in ActOnModuleImport() argument 13392 AtLoc.isValid()? AtLoc : ImportLoc, in ActOnModuleImport()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 825 void CheckNestedObjCContexts(SourceLocation AtLoc); 1242 Decl *ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc, 1285 DeclGroupPtrTy ParseObjCAtImplementationDeclaration(SourceLocation AtLoc); 1336 ExprResult ParseExpressionWithLeadingAt(SourceLocation AtLoc); 1544 ExprResult ParseObjCStringLiteral(SourceLocation AtLoc); 1545 ExprResult ParseObjCCharacterLiteral(SourceLocation AtLoc); 1546 ExprResult ParseObjCNumericLiteral(SourceLocation AtLoc); 1547 ExprResult ParseObjCBooleanLiteral(SourceLocation AtLoc, bool ArgValue); 1548 ExprResult ParseObjCArrayLiteral(SourceLocation AtLoc); 1549 ExprResult ParseObjCDictionaryLiteral(SourceLocation AtLoc); [all …]
|
/external/clang/lib/AST/ |
D | DeclObjC.cpp | 1155 SourceLocation AtLoc, IdentifierInfo *Id, in ObjCInterfaceDecl() argument 1159 : ObjCContainerDecl(ObjCInterface, DC, Id, CLoc, AtLoc), in ObjCInterfaceDecl() 1613 SourceLocation AtLoc, in Create() argument 1621 new (C, DC) ObjCCategoryDecl(DC, AtLoc, ClassNameLoc, CategoryNameLoc, Id, in Create() 1819 SourceLocation AtLoc, in Create() argument 1823 return new (C, DC) ObjCPropertyDecl(DC, L, Id, AtLoc, LParenLoc, T); in Create() 1861 return SourceRange(AtLoc, EndLoc); in getSourceRange()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 1721 DeclResult ActOnModuleImport(SourceLocation AtLoc, SourceLocation ImportLoc, 2785 SourceLocation AtLoc, 2802 SourceLocation AtLoc, 3135 StmtResult ActOnObjCAtCatchStmt(SourceLocation AtLoc, SourceLocation RParen, 3138 StmtResult ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body); 3140 StmtResult ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, 3143 StmtResult BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw); 3144 StmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw, 3148 StmtResult ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc, 3152 StmtResult ActOnObjCAutoreleasePoolStmt(SourceLocation AtLoc, Stmt *Body); [all …]
|
/external/llvm/lib/MC/MCParser/ |
D | AsmParser.cpp | 817 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local 820 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
|