Home
last modified time | relevance | path

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

/external/clang/lib/Parse/
DParseObjc.cpp49 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseObjCAtDirectives() local
60 return ParseObjCAtClassDeclaration(AtLoc); in ParseObjCAtDirectives()
63 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, attrs); in ParseObjCAtDirectives()
68 return ParseObjCAtProtocolDeclaration(AtLoc, attrs); in ParseObjCAtDirectives()
71 return ParseObjCAtImplementationDeclaration(AtLoc); in ParseObjCAtDirectives()
73 return ParseObjCAtEndDeclaration(AtLoc); in ParseObjCAtDirectives()
75 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc); in ParseObjCAtDirectives()
78 SingleDecl = ParseObjCPropertySynthesize(AtLoc); in ParseObjCAtDirectives()
81 SingleDecl = ParseObjCPropertyDynamic(AtLoc); in ParseObjCAtDirectives()
85 return ParseModuleImport(AtLoc); in ParseObjCAtDirectives()
[all …]
DParser.cpp907 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseDeclOrFunctionDefInternal() local
919 if (DS.SetTypeSpecType(DeclSpec::TST_unspecified, AtLoc, PrevSpec, DiagID, in ParseDeclOrFunctionDefInternal()
921 Diag(AtLoc, DiagID) << PrevSpec; in ParseDeclOrFunctionDefInternal()
924 return ParseObjCAtProtocolDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
927 ParseObjCAtInterfaceDeclaration(AtLoc, DS.getAttributes())); in ParseDeclOrFunctionDefInternal()
1999 Parser::DeclGroupPtrTy Parser::ParseModuleImport(SourceLocation AtLoc) { in ParseModuleImport() argument
2038 DeclResult Import = Actions.ActOnModuleImport(AtLoc, ImportLoc, Path); in ParseModuleImport()
DParseExpr.cpp131 Parser::ParseExpressionWithLeadingAt(SourceLocation AtLoc) { in ParseExpressionWithLeadingAt() argument
132 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt()
1327 SourceLocation AtLoc = ConsumeToken(); in ParseCastExpression() local
1328 return ParseObjCAtExpression(AtLoc); in ParseCastExpression()
DParseStmt.cpp166 SourceLocation AtLoc; in ParseStatementOrDeclarationAfterAttributes() local
171 AtLoc = ConsumeToken(); // consume @ in ParseStatementOrDeclarationAfterAttributes()
172 return ParseObjCAtStatement(AtLoc); in ParseStatementOrDeclarationAfterAttributes()
/external/clang/lib/ARCMigrate/
DTransGCAttrs.cpp223 SourceLocation AtLoc, in checkAllAtProps() argument
269 MigrateCtx.AtPropsWeak.insert(AtLoc.getRawEncoding()); in checkAllAtProps()
281 MigrateCtx.rewritePropertyAttribute("assign", toAttr, AtLoc); in checkAllAtProps()
283 MigrateCtx.addPropertyAttribute(toAttr, AtLoc); in checkAllAtProps()
292 TA.clearDiagnostic(diag::err_objc_property_attr_mutually_exclusive, AtLoc); in checkAllAtProps()
309 SourceLocation AtLoc = PD->getAtLoc(); in checkAllProps() local
310 if (AtLoc.isInvalid()) in checkAllProps()
312 unsigned RawAt = AtLoc.getRawEncoding(); in checkAllProps()
319 SourceLocation AtLoc = SourceLocation::getFromRawEncoding(I->first); in checkAllProps() local
321 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()
47 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; } in getLocStart()
357 SourceLocation AtLoc, RParenLoc;
366 EncodedType(EncodedType), AtLoc(at), RParenLoc(rp) {}
371 SourceLocation getAtLoc() const { return AtLoc; }
372 void setAtLoc(SourceLocation L) { AtLoc = L; }
383 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; }
[all …]
DStmtObjC.h346 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()
DDeclObjC.h732 SourceLocation AtLoc; // location of \@property
752 : NamedDecl(ObjCProperty, DC, L, Id), AtLoc(AtLocation), in ObjCPropertyDecl()
773 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
774 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
882 return SourceRange(AtLoc, getLocation()); in getSourceRange()
1161 ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc,
2194 ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc,
2204 SourceLocation AtLoc,
2662 SourceLocation AtLoc; // location of \@synthesize or \@dynamic
2691 : Decl(ObjCPropertyImpl, DC, L), AtLoc(atLoc), in ObjCPropertyImplDecl()
[all …]
/external/clang/lib/Sema/
DSemaObjCProperty.cpp178 Decl *Sema::ActOnProperty(Scope *S, SourceLocation AtLoc, in ActOnProperty() argument
202 Res = HandlePropertyInClassExtension(S, AtLoc, LParenLoc, in ActOnProperty()
214 Res = CreatePropertyDecl(S, ClassDecl, AtLoc, LParenLoc, FD, in ActOnProperty()
223 CheckObjCPropertyAttributes(Res, AtLoc, Attributes, in ActOnProperty()
412 SourceLocation AtLoc, in HandlePropertyInClassExtension() argument
445 Diag(AtLoc, diag::err_duplicate_property); in HandlePropertyInClassExtension()
466 Diag(AtLoc, diag) in HandlePropertyInClassExtension()
476 Diag(AtLoc, diag::warn_property_redecl_getter_mismatch) in HandlePropertyInClassExtension()
493 Diag(AtLoc, diag::warn_property_attr_mismatch); in HandlePropertyInClassExtension()
507 Diag(AtLoc, diag::warn_property_implicitly_mismatched); in HandlePropertyInClassExtension()
[all …]
DSemaExprObjC.cpp80 ExprResult Sema::BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S){ in BuildObjCStringLiteral() argument
101 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
116 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
141 return new (Context) ObjCStringLiteral(S, Ty, AtLoc); in BuildObjCStringLiteral()
314 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) { in BuildObjCNumericLiteral() argument
343 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral()
362 SourceRange(AtLoc, NR.getEnd()))); in BuildObjCNumericLiteral()
365 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral() argument
379 return BuildObjCNumericLiteral(AtLoc, Inner.get()); in ActOnObjCBoolLiteral()
1047 ExprResult Sema::BuildObjCEncodeExpression(SourceLocation AtLoc, in BuildObjCEncodeExpression() argument
[all …]
DSemaStmt.cpp3406 Sema::ActOnObjCAtCatchStmt(SourceLocation AtLoc, in ActOnObjCAtCatchStmt() argument
3413 return new (Context) ObjCAtCatchStmt(AtLoc, RParen, Var, Body); in ActOnObjCAtCatchStmt()
3417 Sema::ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body) { in ActOnObjCAtFinallyStmt() argument
3418 return new (Context) ObjCAtFinallyStmt(AtLoc, Body); in ActOnObjCAtFinallyStmt()
3422 Sema::ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, in ActOnObjCAtTryStmt() argument
3425 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt()
3429 return ObjCAtTryStmt::Create(Context, AtLoc, Try, CatchStmts.data(), in ActOnObjCAtTryStmt()
3433 StmtResult Sema::BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw) { in BuildObjCAtThrowStmt() argument
3450 return StmtError(Diag(AtLoc, diag::error_objc_throw_expects_object) in BuildObjCAtThrowStmt()
3455 return new (Context) ObjCAtThrowStmt(AtLoc, Throw); in BuildObjCAtThrowStmt()
[all …]
DTreeTransform.h1330 StmtResult RebuildObjCAtTryStmt(SourceLocation AtLoc, in RebuildObjCAtTryStmt() argument
1334 return getSema().ActOnObjCAtTryStmt(AtLoc, TryBody, CatchStmts, in RebuildObjCAtTryStmt()
1354 StmtResult RebuildObjCAtCatchStmt(SourceLocation AtLoc, in RebuildObjCAtCatchStmt() argument
1358 return getSema().ActOnObjCAtCatchStmt(AtLoc, RParenLoc, in RebuildObjCAtCatchStmt()
1366 StmtResult RebuildObjCAtFinallyStmt(SourceLocation AtLoc, in RebuildObjCAtFinallyStmt() argument
1368 return getSema().ActOnObjCAtFinallyStmt(AtLoc, Body); in RebuildObjCAtFinallyStmt()
1375 StmtResult RebuildObjCAtThrowStmt(SourceLocation AtLoc, in RebuildObjCAtThrowStmt() argument
1377 return getSema().BuildObjCAtThrowStmt(AtLoc, Operand); in RebuildObjCAtThrowStmt()
1821 StmtResult RebuildObjCAtSynchronizedStmt(SourceLocation AtLoc, in RebuildObjCAtSynchronizedStmt() argument
1823 return getSema().ActOnObjCAtSynchronizedStmt(AtLoc, Object, Body); in RebuildObjCAtSynchronizedStmt()
[all …]
DSemaDeclObjC.cpp1050 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc, in ActOnCompatibilityAlias() argument
1087 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
DSemaDecl.cpp15061 DeclResult Sema::ActOnModuleImport(SourceLocation AtLoc, in ActOnModuleImport() argument
15097 AtLoc.isValid()? AtLoc : ImportLoc, in ActOnModuleImport()
/external/clang/include/clang/Parse/
DParser.h858 void CheckNestedObjCContexts(SourceLocation AtLoc);
1276 Decl *ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
1367 DeclGroupPtrTy ParseObjCAtImplementationDeclaration(SourceLocation AtLoc);
1420 ExprResult ParseExpressionWithLeadingAt(SourceLocation AtLoc);
1634 ExprResult ParseObjCStringLiteral(SourceLocation AtLoc);
1635 ExprResult ParseObjCCharacterLiteral(SourceLocation AtLoc);
1636 ExprResult ParseObjCNumericLiteral(SourceLocation AtLoc);
1637 ExprResult ParseObjCBooleanLiteral(SourceLocation AtLoc, bool ArgValue);
1638 ExprResult ParseObjCArrayLiteral(SourceLocation AtLoc);
1639 ExprResult ParseObjCDictionaryLiteral(SourceLocation AtLoc);
[all …]
/external/clang/lib/AST/
DDeclObjC.cpp1413 SourceLocation AtLoc, IdentifierInfo *Id, in ObjCInterfaceDecl() argument
1418 : ObjCContainerDecl(ObjCInterface, DC, Id, CLoc, AtLoc), in ObjCInterfaceDecl()
1906 ObjCCategoryDecl::ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc, in ObjCCategoryDecl() argument
1913 : ObjCContainerDecl(ObjCCategory, DC, Id, ClassNameLoc, AtLoc), in ObjCCategoryDecl()
1922 SourceLocation AtLoc, in Create() argument
1931 new (C, DC) ObjCCategoryDecl(DC, AtLoc, ClassNameLoc, CategoryNameLoc, Id, in Create()
2163 SourceLocation AtLoc, in Create() argument
2168 return new (C, DC) ObjCPropertyDecl(DC, L, Id, AtLoc, LParenLoc, T, TSI, in Create()
2212 return SourceRange(AtLoc, EndLoc); in getSourceRange()
/external/clang/include/clang/Sema/
DSema.h1856 DeclResult ActOnModuleImport(SourceLocation AtLoc, SourceLocation ImportLoc,
3131 SourceLocation AtLoc,
3147 SourceLocation AtLoc,
3525 StmtResult ActOnObjCAtCatchStmt(SourceLocation AtLoc, SourceLocation RParen,
3528 StmtResult ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body);
3530 StmtResult ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try,
3533 StmtResult BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw);
3534 StmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw,
3538 StmtResult ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc,
3542 StmtResult ActOnObjCAutoreleasePoolStmt(SourceLocation AtLoc, Stmt *Body);
[all …]
/external/llvm/lib/MC/MCParser/
DAsmParser.cpp914 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
917 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCParser/
DAsmParser.cpp1077 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
1080 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()