Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/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()
680 AtEnd.setBegin(AtLoc); in ParseObjCInterfaceDeclList()
2046 CheckNestedObjCContexts(AtLoc); in ParseObjCAtProtocolDeclaration()
2107 CheckNestedObjCContexts(AtLoc); in ParseObjCAtImplementationDeclaration()
2741 return ParseObjCTryStmt(AtLoc); in ParseObjCAtStatement()
2758 ExprStatementTokLoc = AtLoc; in ParseObjCAtStatement()
[all …]
H A DParser.cpp1100 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseDeclOrFunctionDefInternal() local
1115 Diag(AtLoc, DiagID) << PrevSpec; in ParseDeclOrFunctionDefInternal()
1118 return ParseObjCAtProtocolDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1121 return ParseObjCAtImplementationDeclaration(AtLoc, DS.getAttributes()); in ParseDeclOrFunctionDefInternal()
1124 ParseObjCAtInterfaceDeclaration(AtLoc, DS.getAttributes())); in ParseDeclOrFunctionDefInternal()
2381 Decl *Parser::ParseModuleImport(SourceLocation AtLoc) { in ParseModuleImport() argument
2382 SourceLocation StartLoc = AtLoc.isInvalid() ? Tok.getLocation() : AtLoc; in ParseModuleImport()
2387 assert((AtLoc.isInvalid() ? Tok.isOneOf(tok::kw_import, tok::identifier) in ParseModuleImport()
2442 if (IsObjCAtImport && AtLoc.isValid()) { in ParseModuleImport()
2444 auto *FE = SrcMgr.getFileEntryForID(SrcMgr.getFileID(AtLoc)); in ParseModuleImport()
[all …]
H A DParseExpr.cpp134 Parser::ParseExpressionWithLeadingAt(SourceLocation AtLoc) { in ParseExpressionWithLeadingAt() argument
135 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt()
1723 SourceLocation AtLoc = ConsumeToken(); in ParseCastExpression() local
1724 return ParseObjCAtExpression(AtLoc); in ParseCastExpression()
H A DParseStmt.cpp171 SourceLocation AtLoc; in ParseStatementOrDeclarationAfterAttributes() local
175 AtLoc = ConsumeToken(); // consume @ in ParseStatementOrDeclarationAfterAttributes()
176 return ParseObjCAtStatement(AtLoc, StmtCtx); in ParseStatementOrDeclarationAfterAttributes()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/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.h369 SourceLocation AtLoc; variable
374 : Stmt(ObjCAutoreleasePoolStmtClass), AtLoc(atLoc), SubStmt(subStmt) {} in ObjCAutoreleasePoolStmt()
383 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc()
388 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
389 void setAtLoc(SourceLocation Loc) { AtLoc = Loc; } in setAtLoc()
H A DDeclObjC.h738 SourceLocation AtLoc;
775 : NamedDecl(ObjCProperty, DC, L, Id), AtLoc(AtLocation), in ObjCPropertyDecl()
793 SourceLocation getAtLoc() const { return AtLoc; } in getAtLoc()
794 void setAtLoc(SourceLocation L) { AtLoc = L; } in setAtLoc()
926 return SourceRange(AtLoc, getLocation()); in getSourceRange()
2285 ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc,
2299 SourceLocation AtLoc,
2749 SourceLocation AtLoc; // location of \@synthesize or \@dynamic
2783 : Decl(ObjCPropertyImpl, DC, L), AtLoc(atLoc), in ObjCPropertyImplDecl()
2802 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc()
[all …]
/freebsd-13.1/contrib/llvm-project/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.cpp4139 Sema::ActOnObjCAtCatchStmt(SourceLocation AtLoc, in ActOnObjCAtCatchStmt() argument
4146 return new (Context) ObjCAtCatchStmt(AtLoc, RParen, Var, Body); in ActOnObjCAtCatchStmt()
4150 Sema::ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body) { in ActOnObjCAtFinallyStmt() argument
4151 return new (Context) ObjCAtFinallyStmt(AtLoc, Body); in ActOnObjCAtFinallyStmt()
4155 Sema::ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try, in ActOnObjCAtTryStmt() argument
4158 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt()
4188 return new (Context) ObjCAtThrowStmt(AtLoc, Throw); in BuildObjCAtThrowStmt()
4192 Sema::ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw, in ActOnObjCAtThrowStmt() argument
4195 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@throw"; in ActOnObjCAtThrowStmt()
4206 return BuildObjCAtThrowStmt(AtLoc, Throw); in ActOnObjCAtThrowStmt()
[all …]
H A DTreeTransform.h1499 StmtResult RebuildObjCAtTryStmt(SourceLocation AtLoc, in RebuildObjCAtTryStmt() argument
1523 StmtResult RebuildObjCAtCatchStmt(SourceLocation AtLoc, in RebuildObjCAtCatchStmt() argument
1527 return getSema().ActOnObjCAtCatchStmt(AtLoc, RParenLoc, in RebuildObjCAtCatchStmt()
1535 StmtResult RebuildObjCAtFinallyStmt(SourceLocation AtLoc, in RebuildObjCAtFinallyStmt() argument
1537 return getSema().ActOnObjCAtFinallyStmt(AtLoc, Body); in RebuildObjCAtFinallyStmt()
1544 StmtResult RebuildObjCAtThrowStmt(SourceLocation AtLoc, in RebuildObjCAtThrowStmt() argument
1546 return getSema().BuildObjCAtThrowStmt(AtLoc, Operand); in RebuildObjCAtThrowStmt()
2272 StmtResult RebuildObjCAtSynchronizedStmt(SourceLocation AtLoc, in RebuildObjCAtSynchronizedStmt() argument
2281 StmtResult RebuildObjCAutoreleasePoolStmt(SourceLocation AtLoc, in RebuildObjCAutoreleasePoolStmt() argument
2283 return getSema().ActOnObjCAutoreleasePoolStmt(AtLoc, Body); in RebuildObjCAutoreleasePoolStmt()
[all …]
H A DSemaDeclObjC.cpp1136 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc, in ActOnCompatibilityAlias() argument
1176 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
H A DSemaExpr.cpp19816 llvm::ArrayRef<AvailabilitySpec> AvailSpecs, SourceLocation AtLoc, in ActOnObjCAvailabilityCheckExpr() argument
19845 ObjCAvailabilityCheckExpr(Version, AtLoc, RParen, Context.BoolTy); in ActOnObjCAvailabilityCheckExpr()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h1177 void CheckNestedObjCContexts(SourceLocation AtLoc);
1604 Decl *ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
2020 ExprResult ParseObjCStringLiteral(SourceLocation AtLoc);
2021 ExprResult ParseObjCCharacterLiteral(SourceLocation AtLoc);
2022 ExprResult ParseObjCNumericLiteral(SourceLocation AtLoc);
2024 ExprResult ParseObjCArrayLiteral(SourceLocation AtLoc);
2025 ExprResult ParseObjCDictionaryLiteral(SourceLocation AtLoc);
2026 ExprResult ParseObjCBoxedExpr(SourceLocation AtLoc);
2027 ExprResult ParseObjCEncodeExpression(SourceLocation AtLoc);
2028 ExprResult ParseObjCSelectorExpression(SourceLocation AtLoc);
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp1517 SourceLocation AtLoc, IdentifierInfo *Id, in ObjCInterfaceDecl() argument
1522 : ObjCContainerDecl(ObjCInterface, DC, Id, CLoc, AtLoc), in ObjCInterfaceDecl()
2030 ObjCCategoryDecl::ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc, in ObjCCategoryDecl() argument
2037 : ObjCContainerDecl(ObjCCategory, DC, Id, ClassNameLoc, AtLoc), in ObjCCategoryDecl()
2044 SourceLocation AtLoc, in Create() argument
2053 new (C, DC) ObjCCategoryDecl(DC, AtLoc, ClassNameLoc, CategoryNameLoc, Id, in Create()
2278 SourceLocation AtLoc, in Create() argument
2283 return new (C, DC) ObjCPropertyDecl(DC, L, Id, AtLoc, LParenLoc, T, TSI, in Create()
2332 return SourceRange(AtLoc, EndLoc); in getSourceRange()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h4414 SourceLocation AtLoc,
4432 SourceLocation AtLoc,
4849 StmtResult ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try,
4853 StmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw,
4857 StmtResult ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc,
6942 ExprResult BuildObjCEncodeExpression(SourceLocation AtLoc,
6949 ExprResult ParseObjCEncodeExpression(SourceLocation AtLoc,
6957 SourceLocation AtLoc,
6965 SourceLocation AtLoc,
9709 Decl *ActOnProperty(Scope *S, SourceLocation AtLoc,
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmParser.cpp1191 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
1194 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
H A DMasmParser.cpp1598 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() local
1601 return Error(AtLoc, "expected symbol variant after '@'"); in parsePrimaryExpr()
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp1636 E->AtLoc = R.getBegin(); in VisitObjCAvailabilityCheckExpr()