Home
last modified time | relevance | path

Searched refs:OpLoc (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExprMember.cpp517 Context, BaseExpr, BaseType, IsArrow, OpLoc, in ActOnDependentMemberExpr()
650 SemaRef.RequireCompleteType(OpLoc, QualType(RTy, 0), in LookupMemberExprInRecord()
755 IsArrow, OpLoc, in BuildMemberReferenceExpr()
1019 Diag(OpLoc, diag::err_no_member_overloaded_arrow) in BuildMemberReferenceExpr()
1055 IsArrow, OpLoc, in BuildMemberReferenceExpr()
1283 << FixItHint::CreateReplacement(OpLoc, "."); in LookupMemberExpr()
1301 S.DiagRuntimeBehavior(OpLoc, nullptr, in LookupMemberExpr()
1356 if (S.RequireCompleteType(OpLoc, BaseType, in LookupMemberExpr()
1396 << FixItHint::CreateReplacement(OpLoc, "."); in LookupMemberExpr()
1671 << FixItHint::CreateReplacement(OpLoc, "->"); in LookupMemberExpr()
[all …]
H A DSemaExpr.cpp9042 Self.Diag(OpLoc, DiagID) in DiagnoseConditionalPrecedence()
9047 Self, OpLoc, in DiagnoseConditionalPrecedence()
9052 SuggestParentheses(Self, OpLoc, in DiagnoseConditionalPrecedence()
14380 (void)isCompleteType(OpLoc, MPTy); in CheckAddressOfOperand()
14426 Diag(OpLoc, in CheckAddressOfOperand()
14652 if (OpLoc.isInvalid() || OpLoc.isMacroID()) in DiagnoseSelfAssignment()
14724 S.Diag(OpLoc, Diag) in checkObjCPointerIntrospection()
15142 SuggestParentheses(Self, OpLoc, in DiagnoseBitwisePrecedence()
15145 SuggestParentheses(Self, OpLoc, in DiagnoseBitwisePrecedence()
15159 << Bop->getSourceRange() << OpLoc; in EmitDiagnosticForLogicalAndInLogicalOr()
[all …]
H A DSemaOverload.cpp11763 SourceLocation OpLoc, in CompleteCandidates() argument
11834 NoteCandidates(S, Args, Cands, Opc, OpLoc); in NoteCandidates()
11887 shouldDeferDiags(S, Args, OpLoc)) in NoteCandidates()
13410 DeclarationNameInfo OpNameInfo(OpName, OpLoc); in CreateOverloadedUnaryOp()
13554 PartialDiagnosticAt(OpLoc, in CreateOverloadedUnaryOp()
13568 OpLoc); in CreateOverloadedUnaryOp()
13735 OpLoc, OverloadCandidateSet::CSK_Operator, in CreateOverloadedBinOp()
14034 OpLoc); in CreateOverloadedBinOp()
14063 OpLoc); in CreateOverloadedBinOp()
14144 Result = ActOnConditionalOp(OpLoc, OpLoc, Comparisons[I].Cmp.get(), in BuildSynthesizedThreeWayComparison()
[all …]
H A DSemaExprCXX.cpp683 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXTypeid()
695 Diag(OpLoc, diag::warn_no_typeid_with_rtti_disabled) in ActOnCXXTypeid()
797 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXUuidof()
856 return BuildCXXThrow(OpLoc, Ex, IsThrownVarInScope); in ActOnCXXThrow()
896 if (CheckCXXThrowOperand(OpLoc, ExceptionObjectTy, Ex)) in BuildCXXThrow()
7528 Diag(OpLoc, diag::note_operator_arrow_depth) in ActOnStartCXXMemberReference()
7534 S, Base, OpLoc, in ActOnStartCXXMemberReference()
7611 RequireCompleteType(OpLoc, BaseType, in ActOnStartCXXMemberReference()
7659 << FixItHint::CreateReplacement(OpLoc, "."); in CheckArrow()
7699 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in BuildPseudoDestructorExpr()
[all …]
H A DSemaAccess.cpp1714 Sema::AccessResult Sema::CheckAllocationAccess(SourceLocation OpLoc, in CheckAllocationAccess() argument
1730 return CheckAccess(*this, OpLoc, Entity); in CheckAllocationAccess()
1764 Sema::AccessResult Sema::CheckMemberOperatorAccess(SourceLocation OpLoc, in CheckMemberOperatorAccess() argument
1778 return CheckAccess(*this, OpLoc, Entity); in CheckMemberOperatorAccess()
1783 Sema::AccessResult Sema::CheckMemberOperatorAccess(SourceLocation OpLoc, in CheckMemberOperatorAccess() argument
1788 OpLoc, ObjectExpr, ArgExpr ? ArgExpr->getSourceRange() : SourceRange(), in CheckMemberOperatorAccess()
1792 Sema::AccessResult Sema::CheckMemberOperatorAccess(SourceLocation OpLoc, in CheckMemberOperatorAccess() argument
1802 return CheckMemberOperatorAccess(OpLoc, ObjectExpr, R, FoundDecl); in CheckMemberOperatorAccess()
H A DSemaCast.cpp176 SourceLocation OpLoc) { in CheckNoDeref() argument
181 S.Diag(OpLoc, diag::warn_noderef_to_dereferenceable_pointer); in CheckNoDeref()
273 Sema::ActOnCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind, in ActOnCXXNamedCast() argument
290 return BuildCXXNamedCast(OpLoc, Kind, TInfo, E, in ActOnCXXNamedCast()
296 Sema::BuildCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind, in BuildCXXNamedCast() argument
307 Op.OpRange = SourceRange(OpLoc, Parens.getEnd()); in BuildCXXNamedCast()
321 DestTInfo, OpLoc, Parens.getEnd(), AngleBrackets)); in BuildCXXNamedCast()
332 OpLoc, Parens.getEnd(), in BuildCXXNamedCast()
338 return ExprError(Diag(OpLoc, diag::err_openclcxx_not_supported) in BuildCXXNamedCast()
350 OpLoc, Parens.getEnd(), in BuildCXXNamedCast()
[all …]
H A DTreeTransform.h2539 ExprResult RebuildUnaryOperator(SourceLocation OpLoc, in RebuildUnaryOperator() argument
2728 ExprResult RebuildBinaryOperator(SourceLocation OpLoc, in RebuildBinaryOperator() argument
2739 SourceLocation OpLoc, BinaryOperatorKind Opcode, in RebuildCXXRewrittenBinaryOperator() argument
2927 ExprResult RebuildCXXNamedCastExpr(SourceLocation OpLoc, in RebuildCXXNamedCastExpr() argument
2970 ExprResult RebuildCXXStaticCastExpr(SourceLocation OpLoc, in RebuildCXXStaticCastExpr() argument
2987 ExprResult RebuildCXXDynamicCastExpr(SourceLocation OpLoc, in RebuildCXXDynamicCastExpr() argument
3021 ExprResult RebuildCXXConstCastExpr(SourceLocation OpLoc, in RebuildCXXConstCastExpr() argument
3040 OpLoc, tok::kw_addrspace_cast, TInfo, SubExpr, in RebuildCXXAddrspaceCastExpr()
3653 OpLoc, IsArrow, in RebuildObjCIsaExpr()
14877 First, Callee->getBeginLoc(), Second, OpLoc); in RebuildCXXOperatorCallExpr()
[all …]
H A DSemaTemplateVariadic.cpp1003 SourceLocation OpLoc, in ActOnSizeofParameterPackExpr() argument
1046 MarkAnyDeclReferenced(OpLoc, ParameterPack, true); in ActOnSizeofParameterPackExpr()
1048 return SizeOfPackExpr::Create(Context, OpLoc, ParameterPack, NameLoc, in ActOnSizeofParameterPackExpr()
H A DAnalysisBasedWarnings.cpp338 static void EmitDiagForCXXThrowInNonThrowingFunc(Sema &S, SourceLocation OpLoc, in EmitDiagForCXXThrowInNonThrowingFunc() argument
340 if (!S.getSourceManager().isInSystemHeader(OpLoc) && in EmitDiagForCXXThrowInNonThrowingFunc()
342 S.Diag(OpLoc, diag::warn_throw_in_noexcept_func) << FD; in EmitDiagForCXXThrowInNonThrowingFunc()
H A DSemaExprObjC.cpp1977 Expr *BaseExpr, SourceLocation OpLoc, in HandleExprPropertyRefExpr() argument
2127 return HandleExprPropertyRefExpr(OPT, BaseExpr, OpLoc, in HandleExprPropertyRefExpr()
2146 << FixItHint::CreateReplacement(OpLoc, "->"); in HandleExprPropertyRefExpr()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPPExpressions.cpp625 SourceLocation OpLoc = PeekTok.getLocation(); in EvaluateDirectiveSubExpr() local
687 PP.Diag(OpLoc, diag::warn_pp_convert_to_positive) << 0 in EvaluateDirectiveSubExpr()
692 PP.Diag(OpLoc, diag::warn_pp_convert_to_positive) << 1 in EvaluateDirectiveSubExpr()
708 PP.Diag(OpLoc, diag::err_pp_remainder_by_zero) in EvaluateDirectiveSubExpr()
720 PP.Diag(OpLoc, diag::err_pp_division_by_zero) in EvaluateDirectiveSubExpr()
807 PP.Diag(OpLoc, diag::ext_pp_comma_expr) in EvaluateDirectiveSubExpr()
816 PP.Diag(OpLoc, diag::note_matching) << tok::question; in EvaluateDirectiveSubExpr()
850 PP.Diag(OpLoc, diag::err_pp_colon_without_question) in EvaluateDirectiveSubExpr()
857 PP.Diag(OpLoc, diag::warn_pp_expr_overflow) in EvaluateDirectiveSubExpr()
H A DTokenLexer.cpp944 void TokenLexer::HandleMicrosoftCommentPaste(Token &Tok, SourceLocation OpLoc) { in HandleMicrosoftCommentPaste() argument
945 PP.Diag(OpLoc, diag::ext_comment_paste_microsoft); in HandleMicrosoftCommentPaste()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DExprObjC.h554 SourceLocation OpLoc; variable
568 D(d), Base(base), Loc(l), OpLoc(oploc), IsArrow(arrow),
597 SourceLocation getOpLoc() const { return OpLoc; } in getOpLoc()
598 void setOpLoc(SourceLocation L) { OpLoc = L; } in setOpLoc()
1490 SourceLocation OpLoc; variable
1499 IsaMemberLoc(l), OpLoc(oploc), IsArrow(isarrow) { in ObjCIsaExpr()
1517 SourceLocation getOpLoc() const { return OpLoc; } in getOpLoc()
1518 void setOpLoc(SourceLocation L) { OpLoc = L; } in setOpLoc()
H A DExpr.h2058 SourceLocation OpLoc, LParen, RParen; variable
2062 SYCLUniqueStableNameExpr(SourceLocation OpLoc, SourceLocation LParen,
2068 void setLocation(SourceLocation L) { OpLoc = L; } in setLocation()
2078 Create(const ASTContext &Ctx, SourceLocation OpLoc, SourceLocation LParen,
2085 SourceLocation getLocation() const { return OpLoc; } in getLocation()
2554 SourceLocation OpLoc, RParenLoc; variable
2562 OpLoc(op), RParenLoc(rp) { in UnaryExprOrTypeTraitExpr()
2622 SourceLocation getOperatorLoc() const { return OpLoc; } in getOperatorLoc()
2623 void setOperatorLoc(SourceLocation L) { OpLoc = L; } in setOperatorLoc()
2628 SourceLocation getBeginLoc() const LLVM_READONLY { return OpLoc; } in getBeginLoc()
[all …]
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DTokenLexer.h218 void HandleMicrosoftCommentPaste(Token &Tok, SourceLocation OpLoc);
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h320 SourceLocation OpLoc);
4088 ExprResult CreateOverloadedBinOp(SourceLocation OpLoc,
5184 SourceLocation OpLoc);
5564 ActOnUnaryExprOrTypeTraitExpr(SourceLocation OpLoc,
5779 ExprResult BuildBinOp(Scope *S, SourceLocation OpLoc,
6400 ExprResult ActOnCXXNamedCast(SourceLocation OpLoc,
6409 ExprResult BuildCXXNamedCast(SourceLocation OpLoc,
6433 ExprResult ActOnCXXTypeid(SourceLocation OpLoc,
6448 ExprResult ActOnCXXUuidof(SourceLocation OpLoc,
10098 SourceLocation OpLoc,
[all …]
H A DOverload.h1087 bool shouldDeferDiags(Sema &S, ArrayRef<Expr *> Args, SourceLocation OpLoc);
1150 SourceLocation OpLoc = SourceLocation(),
1164 SourceLocation OpLoc = SourceLocation());
H A DDeclSpec.h1083 void setLiteralOperatorId(const IdentifierInfo *Id, SourceLocation OpLoc, in setLiteralOperatorId() argument
1087 StartLocation = OpLoc; in setLiteralOperatorId()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseExprCXX.cpp1507 SourceLocation OpLoc = ConsumeToken(); in ParseCXXCasts() local
1546 Result = Actions.ActOnCXXNamedCast(OpLoc, Kind, in ParseCXXCasts()
1564 SourceLocation OpLoc = ConsumeToken(); in ParseCXXTypeid() local
1601 Result = Actions.ActOnCXXTypeid(OpLoc, LParenLoc, /*isType=*/true, in ParseCXXTypeid()
1615 Result = Actions.ActOnCXXTypeid(OpLoc, LParenLoc, /*isType=*/false, in ParseCXXTypeid()
1631 SourceLocation OpLoc = ConsumeToken(); in ParseCXXUuidof() local
1649 Result = Actions.ActOnCXXUuidof(OpLoc, T.getOpenLocation(), /*isType=*/true, in ParseCXXUuidof()
1663 Result = Actions.ActOnCXXUuidof(OpLoc, T.getOpenLocation(), in ParseCXXUuidof()
1704 Parser::ParseCXXPseudoDestructor(Expr *Base, SourceLocation OpLoc, in ParseCXXPseudoDestructor() argument
1740 return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc, OpKind, in ParseCXXPseudoDestructor()
[all …]
H A DParseExpr.cpp2118 SourceLocation OpLoc = ConsumeToken(); // Eat the "." or "->" token. in ParsePostfixExpressionSuffix() local
2133 Diag(OpLoc, diag::err_function_is_not_record) in ParsePostfixExpressionSuffix()
2135 << FixItHint::CreateRemoval(OpLoc); in ParsePostfixExpressionSuffix()
2139 LHS = Actions.ActOnStartCXXMemberReference(getCurScope(), Base, OpLoc, in ParsePostfixExpressionSuffix()
2168 getCurScope(), OrigLHS, OpLoc, CorrectedOpKind, ObjectType, in ParsePostfixExpressionSuffix()
2180 getCurScope(), Base, CorrectedBase, OpLoc, OpKind == tok::arrow, in ParsePostfixExpressionSuffix()
2188 LHS = ParseCXXPseudoDestructor(LHS.get(), OpLoc, OpKind, SS, in ParsePostfixExpressionSuffix()
2226 LHS = Actions.ActOnMemberAccessExpr(getCurScope(), LHS.get(), OpLoc, in ParsePostfixExpressionSuffix()
2369 SourceLocation OpLoc = ConsumeToken(); in ParseSYCLUniqueStableNameExpression() local
2387 return Actions.ActOnSYCLUniqueStableNameExpr(OpLoc, T.getOpenLocation(), in ParseSYCLUniqueStableNameExpression()
H A DParseOpenMP.cpp3897 SourceLocation OpLoc = P.ConsumeToken(); in ParseReductionId() local
3898 SourceLocation SymbolLocations[] = {OpLoc, OpLoc, SourceLocation()}; in ParseReductionId()
3899 ReductionId.setOperatorFunctionId(OpLoc, OOK, SymbolLocations); in ParseReductionId()
H A DParseObjc.cpp2791 SourceLocation OpLoc = ConsumeToken(); in ParseObjCAtExpression() local
2811 Lit = Actions.ActOnUnaryOp(getCurScope(), OpLoc, Kind, Lit.get()); in ParseObjCAtExpression()
/llvm-project-15.0.7/llvm/lib/TableGen/
H A DTGParser.cpp1167 SMLoc OpLoc = Lex.getLoc(); in ParseOperation() local
1244 Error(OpLoc, Twine("expected value of type '") + in ParseOperation()
1266 Error(OpLoc, Twine("expected value to be a typed value, got '" + in ParseOperation()
1287 Error(OpLoc, in ParseOperation()
1293 Error(OpLoc, Twine("expected first arg type to be '") + in ParseOperation()
1423 Error(OpLoc, "expected two operands to operator"); in ParseOperation()
1916 SMLoc OpLoc = Lex.getLoc(); in ParseOperationForEachFilter() local
1971 Error(OpLoc, in ParseOperationForEachFilter()
1985 Error(OpLoc, in ParseOperationForEachFilter()
/llvm-project-15.0.7/clang/lib/AST/
H A DExpr.cpp527 SYCLUniqueStableNameExpr::SYCLUniqueStableNameExpr(SourceLocation OpLoc, in SYCLUniqueStableNameExpr() argument
533 OpLoc(OpLoc), LParen(LParen), RParen(RParen) { in SYCLUniqueStableNameExpr()
543 SYCLUniqueStableNameExpr::Create(const ASTContext &Ctx, SourceLocation OpLoc, in Create() argument
548 SYCLUniqueStableNameExpr(OpLoc, LParen, RParen, ResultTy, TSI); in Create()
1603 OpLoc(op), RParenLoc(rp) { in UnaryExprOrTypeTraitExpr()
4510 BinaryOperatorBits.OpLoc = opLoc; in BinaryOperator()
4527 BinaryOperatorBits.OpLoc = opLoc; in BinaryOperator()
/llvm-project-15.0.7/llvm/lib/FileCheck/
H A DFileCheck.cpp657 SMLoc OpLoc = SMLoc::getFromPointer(RemainingExpr.data()); in parseBinop() local
669 SM, OpLoc, Twine("unsupported operation '") + Twine(Operator) + "'"); in parseBinop()

12