Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Parse/
H A DParseObjc.cpp85 Diag(AtLoc, diag::err_atimport); in ParseObjCAtDirectives()
89 Diag(AtLoc, diag::err_unexpected_at); in ParseObjCAtDirectives()
174 CurParsedObjCImpl->finish(AtLoc); in CheckNestedObjCContexts()
178 Diag(AtLoc, diag::err_objc_missing_end) in CheckNestedObjCContexts()
217 CheckNestedObjCContexts(AtLoc); in ParseObjCAtInterfaceDeclaration()
682 AtEnd.setBegin(AtLoc); in ParseObjCInterfaceDeclList()
2053 CheckNestedObjCContexts(AtLoc); in ParseObjCAtProtocolDeclaration()
2114 CheckNestedObjCContexts(AtLoc); in ParseObjCAtImplementationDeclaration()
2749 return ParseObjCTryStmt(AtLoc); in ParseObjCAtStatement()
2766 ExprStatementTokLoc = AtLoc; in ParseObjCAtStatement()
[all …]
H A DParser.cpp1140 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseDeclOrFunctionDefInternal() local
1156 Diag(AtLoc, DiagID) << PrevSpec; in ParseDeclOrFunctionDefInternal()
1159 return ParseObjCAtProtocolDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1162 return ParseObjCAtImplementationDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1165 ParseObjCAtInterfaceDeclaration(AtLoc, DS.getAttributes())); in ParseDeclOrFunctionDefInternal()
2438 Decl *Parser::ParseModuleImport(SourceLocation AtLoc, in ParseModuleImport() argument
2440 SourceLocation StartLoc = AtLoc.isInvalid() ? Tok.getLocation() : AtLoc; in ParseModuleImport()
2445 assert((AtLoc.isInvalid() ? Tok.isOneOf(tok::kw_import, tok::identifier) in ParseModuleImport()
2543 if (IsObjCAtImport && AtLoc.isValid()) { in ParseModuleImport()
2545 auto FE = SrcMgr.getFileEntryRefForID(SrcMgr.getFileID(AtLoc)); in ParseModuleImport()
[all …]
H A DParseStmt.cpp178 SourceLocation AtLoc; in ParseStatementOrDeclarationAfterAttributes() local
182 AtLoc = ConsumeToken(); // consume @ in ParseStatementOrDeclarationAfterAttributes()
183 return ParseObjCAtStatement(AtLoc, StmtCtx); in ParseStatementOrDeclarationAfterAttributes()
H A DParseExpr.cpp134 Parser::ParseExpressionWithLeadingAt(SourceLocation AtLoc) { in ParseExpressionWithLeadingAt() argument
135 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt()
1730 SourceLocation AtLoc = ConsumeToken(); in ParseCastExpression() local
1731 return ParseObjCAtExpression(AtLoc); in ParseCastExpression()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DExprObjC.h54 SourceLocation AtLoc; variable
59 AtLoc(L) { in ObjCStringLiteral()
69 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
70 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
411 SourceLocation AtLoc, RParenLoc; variable
424 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
456 SourceLocation AtLoc, RParenLoc; variable
473 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
506 SourceLocation AtLoc, ProtoLoc, RParenLoc; variable
1690 SourceLocation AtLoc, RParen; variable
[all …]
H A DStmtObjC.h394 SourceLocation AtLoc; variable
399 : Stmt(ObjCAutoreleasePoolStmtClass), AtLoc(atLoc), SubStmt(subStmt) {} in ObjCAutoreleasePoolStmt()
408 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc()
413 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
414 void setAtLoc(SourceLocation Loc) { AtLoc = Loc; } in setAtLoc()
H A DDeclObjC.h741 SourceLocation AtLoc;
778 : NamedDecl(ObjCProperty, DC, L, Id), AtLoc(AtLocation), in ObjCPropertyDecl()
792 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
793 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
925 return SourceRange(AtLoc, getLocation()); in getSourceRange()
2297 ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc,
2311 SourceLocation AtLoc,
2761 SourceLocation AtLoc; // location of \@synthesize or \@dynamic
2795 : Decl(ObjCPropertyImpl, DC, L), AtLoc(atLoc), in ObjCPropertyImplDecl()
2814 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaObjCProperty.cpp220 CheckObjCPropertyAttributes(Res, AtLoc, Attributes, in ActOnProperty()
443 Diag(AtLoc, diag::err_duplicate_property); in HandlePropertyInClassExtension()
464 Diag(AtLoc, diag) in HandlePropertyInClassExtension()
542 Diag(AtLoc, in HandlePropertyInClassExtension()
637 Diag(AtLoc, diag::err_property_type) << T; in CreatePropertyDecl()
1007 if (AtLoc.isValid()) in SelectPropertyForSynthesisFromProtocols()
1008 S.Diag(AtLoc, diag::note_property_synthesize); in SelectPropertyForSynthesisFromProtocols()
1053 Context, AtLoc.isValid() ? AtLoc : Decl->getBeginLoc(), in RedeclarePropertyAccessor()
1123 if (AtLoc.isValid()) in ActOnPropertyImplDecl()
1198 Diag(AtLoc, diag::err_bad_property_context); in ActOnPropertyImplDecl()
[all …]
H A DSemaExprObjC.cpp102 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
117 NamedDecl *IF = LookupSingleName(TUScope, NSIdent, AtLoc, in BuildObjCStringLiteral()
142 return new (Context) ObjCStringLiteral(S, Ty, AtLoc); in BuildObjCStringLiteral()
367 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral() argument
381 return BuildObjCNumericLiteral(AtLoc, Inner.get()); in ActOnObjCBoolLiteral()
1140 if (RequireCompleteType(AtLoc, EncodedType, in BuildObjCEncodeExpression()
1149 Diag(AtLoc, diag::warn_incomplete_encoded_type) in BuildObjCEncodeExpression()
1193 S.Diag(AtLoc, diag::warn_multiple_selectors) in HelperToDiagnoseMismatchedMethodsInGlobalPool()
1325 Diag(AtLoc, diag::err_direct_selector_expression) in ParseObjCSelectorExpression()
1354 ReferencedSelectors.insert(std::make_pair(Sel, AtLoc)); in ParseObjCSelectorExpression()
[all …]
H A DSemaStmt.cpp4204 Sema::ActOnObjCAtCatchStmt(SourceLocation AtLoc, in ActOnObjCAtCatchStmt() argument
4215 Sema::ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body) { in ActOnObjCAtFinallyStmt() argument
4216 return new (Context) ObjCAtFinallyStmt(AtLoc, Body); in ActOnObjCAtFinallyStmt()
4220 Sema::ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, in ActOnObjCAtTryStmt() argument
4223 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt()
4228 Diag(AtLoc, diag::err_mixing_cxx_try_seh_try) << 1; in ActOnObjCAtTryStmt()
4232 FSI->setHasObjCTry(AtLoc); in ActOnObjCAtTryStmt()
4260 return new (Context) ObjCAtThrowStmt(AtLoc, Throw); in BuildObjCAtThrowStmt()
4264 Sema::ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw, in ActOnObjCAtThrowStmt() argument
4278 return BuildObjCAtThrowStmt(AtLoc, Throw); in ActOnObjCAtThrowStmt()
[all …]
H A DTreeTransform.h1523 StmtResult RebuildObjCAtTryStmt(SourceLocation AtLoc, in RebuildObjCAtTryStmt() argument
1547 StmtResult RebuildObjCAtCatchStmt(SourceLocation AtLoc, in RebuildObjCAtCatchStmt() argument
1551 return getSema().ActOnObjCAtCatchStmt(AtLoc, RParenLoc, in RebuildObjCAtCatchStmt()
1559 StmtResult RebuildObjCAtFinallyStmt(SourceLocation AtLoc, in RebuildObjCAtFinallyStmt() argument
1561 return getSema().ActOnObjCAtFinallyStmt(AtLoc, Body); in RebuildObjCAtFinallyStmt()
1568 StmtResult RebuildObjCAtThrowStmt(SourceLocation AtLoc, in RebuildObjCAtThrowStmt() argument
1570 return getSema().BuildObjCAtThrowStmt(AtLoc, Operand); in RebuildObjCAtThrowStmt()
2327 StmtResult RebuildObjCAtSynchronizedStmt(SourceLocation AtLoc, in RebuildObjCAtSynchronizedStmt() argument
2336 StmtResult RebuildObjCAutoreleasePoolStmt(SourceLocation AtLoc, in RebuildObjCAutoreleasePoolStmt() argument
2338 return getSema().ActOnObjCAutoreleasePoolStmt(AtLoc, Body); in RebuildObjCAutoreleasePoolStmt()
[all …]
H A DSemaDeclObjC.cpp1137 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc, in ActOnCompatibilityAlias() argument
1177 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
H A DSemaExpr.cpp20769 llvm::ArrayRef<AvailabilitySpec> AvailSpecs, SourceLocation AtLoc, in ActOnObjCAvailabilityCheckExpr() argument
20798 ObjCAvailabilityCheckExpr(Version, AtLoc, RParen, Context.BoolTy); in ActOnObjCAvailabilityCheckExpr()
/llvm-project-15.0.7/clang/include/clang/Parse/
H A DParser.h1193 void CheckNestedObjCContexts(SourceLocation AtLoc);
1619 Decl *ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
2041 ExprResult ParseObjCStringLiteral(SourceLocation AtLoc);
2042 ExprResult ParseObjCCharacterLiteral(SourceLocation AtLoc);
2043 ExprResult ParseObjCNumericLiteral(SourceLocation AtLoc);
2045 ExprResult ParseObjCArrayLiteral(SourceLocation AtLoc);
2046 ExprResult ParseObjCDictionaryLiteral(SourceLocation AtLoc);
2047 ExprResult ParseObjCBoxedExpr(SourceLocation AtLoc);
2048 ExprResult ParseObjCEncodeExpression(SourceLocation AtLoc);
2049 ExprResult ParseObjCSelectorExpression(SourceLocation AtLoc);
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclObjC.cpp1533 SourceLocation AtLoc, IdentifierInfo *Id, in ObjCInterfaceDecl() argument
1538 : ObjCContainerDecl(ObjCInterface, DC, Id, CLoc, AtLoc), in ObjCInterfaceDecl()
2051 ObjCCategoryDecl::ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc, in ObjCCategoryDecl() argument
2058 : ObjCContainerDecl(ObjCCategory, DC, Id, ClassNameLoc, AtLoc), in ObjCCategoryDecl()
2065 SourceLocation AtLoc, in Create() argument
2074 new (C, DC) ObjCCategoryDecl(DC, AtLoc, ClassNameLoc, CategoryNameLoc, Id, in Create()
2299 SourceLocation AtLoc, in Create() argument
2304 return new (C, DC) ObjCPropertyDecl(DC, L, Id, AtLoc, LParenLoc, T, TSI, in Create()
2353 return SourceRange(AtLoc, EndLoc); in getSourceRange()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h4675 SourceLocation AtLoc,
4693 SourceLocation AtLoc,
5112 StmtResult ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try,
5116 StmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw,
5120 StmtResult ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc,
7239 ExprResult BuildObjCEncodeExpression(SourceLocation AtLoc,
7246 ExprResult ParseObjCEncodeExpression(SourceLocation AtLoc,
7254 SourceLocation AtLoc,
7262 SourceLocation AtLoc,
10034 Decl *ActOnProperty(Scope *S, SourceLocation AtLoc,
[all …]
/llvm-project-15.0.7/llvm/lib/MC/MCParser/
H A DAsmParser.cpp1207 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
1210 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
H A DMasmParser.cpp1604 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
1607 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderStmt.cpp1621 E->AtLoc = R.getBegin(); in VisitObjCAvailabilityCheckExpr()