Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprMember.cpp373 SourceLocation OpLoc, const IdentifierInfo *CompName, in CheckExtVectorComponent() argument
421 S.Diag(OpLoc, diag::ext_opencl_ext_vector_type_rgba_selector) in CheckExtVectorComponent()
439 S.Diag(OpLoc.getLocWithOffset(Offset), in CheckExtVectorComponent()
455 S.Diag(OpLoc, diag::err_ext_vector_component_exceeds_length) in CheckExtVectorComponent()
471 S.Diag(OpLoc, diag::err_opencl_ext_vector_component_invalid_length) in CheckExtVectorComponent()
558 bool IsArrow, SourceLocation OpLoc, in ActOnDependentMemberExpr() argument
578 Diag(OpLoc, diag::err_typecheck_member_reference_struct_union) in ActOnDependentMemberExpr()
594 Context, BaseExpr, BaseType, IsArrow, OpLoc, in ActOnDependentMemberExpr()
655 SourceLocation OpLoc, bool IsArrow, in LookupMemberExprInRecord() argument
662 OpLoc, RTy, diag::err_typecheck_incomplete_tag, BaseRange)) in LookupMemberExprInRecord()
[all …]
H A DSemaExpr.cpp4572 SourceLocation OpLoc, in CheckUnaryExprOrTypeTraitOperand() argument
4597 Diag(OpLoc, getLangOpts().C2y in CheckUnaryExprOrTypeTraitOperand()
4604 return CheckVecStepTraitOperandType(*this, ExprType, OpLoc, ExprRange); in CheckUnaryExprOrTypeTraitOperand()
4607 return CheckVectorElementsTraitOperandType(*this, ExprType, OpLoc, in CheckUnaryExprOrTypeTraitOperand()
4611 return checkPtrAuthTypeDiscriminatorOperandType(*this, ExprType, OpLoc, in CheckUnaryExprOrTypeTraitOperand()
4615 if (!CheckExtensionTraitOperandType(*this, ExprType, OpLoc, ExprRange, in CheckUnaryExprOrTypeTraitOperand()
4620 OpLoc, ExprType, diag::err_sizeof_alignof_incomplete_or_sizeless_type, in CheckUnaryExprOrTypeTraitOperand()
4625 Diag(OpLoc, diag::err_sizeof_alignof_function_type) << KWName << ExprRange; in CheckUnaryExprOrTypeTraitOperand()
4633 Diag(OpLoc, diag::err_countof_arg_not_array_type) << ExprType; in CheckUnaryExprOrTypeTraitOperand()
4642 Diag(OpLoc, diag::err_wasm_table_invalid_uett_operand) in CheckUnaryExprOrTypeTraitOperand()
[all …]
H A DSemaOverload.cpp1042 static bool shouldAddReversedEqEq(Sema &S, SourceLocation OpLoc, in shouldAddReversedEqEq() argument
1064 LookupResult Members(S, NotEqOp, OpLoc, in shouldAddReversedEqEq()
1101 S, OpLoc, /*FirstOperand in reversed args*/ OriginalArgs[1], FD)) in shouldAddReversed()
8718 SourceLocation OpLoc, in AddMemberOperatorCandidates() argument
8740 if (!isCompleteType(OpLoc, T1) && !T1Rec->isBeingDefined()) in AddMemberOperatorCandidates()
8746 LookupResult Operators(*this, OpName, OpLoc, LookupOrdinaryName); in AddMemberOperatorCandidates()
10219 SourceLocation OpLoc, in AddBuiltinOperatorCandidates() argument
10240 OpLoc, in AddBuiltinOperatorCandidates()
12823 SourceLocation OpLoc, in NoteBuiltinOperatorCandidate() argument
12832 S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr; in NoteBuiltinOperatorCandidate()
[all …]
H A DSemaSYCL.cpp143 ExprResult SemaSYCL::BuildUniqueStableNameExpr(SourceLocation OpLoc, in BuildUniqueStableNameExpr() argument
147 return SYCLUniqueStableNameExpr::Create(getASTContext(), OpLoc, LParen, in BuildUniqueStableNameExpr()
151 ExprResult SemaSYCL::ActOnUniqueStableNameExpr(SourceLocation OpLoc, in ActOnUniqueStableNameExpr() argument
163 return BuildUniqueStableNameExpr(OpLoc, LParen, RParen, TSI); in ActOnUniqueStableNameExpr()
H A DSemaExprCXX.cpp634 Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXTypeid() argument
638 return ExprError(Diag(OpLoc, diag::err_openclcxx_not_supported) in ActOnCXXTypeid()
644 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid)); in ActOnCXXTypeid()
658 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid)); in ActOnCXXTypeid()
662 return ExprError(Diag(OpLoc, diag::err_no_typeid_with_fno_rtti)); in ActOnCXXTypeid()
676 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXTypeid()
678 return BuildCXXTypeId(TypeInfoType, OpLoc, TInfo, RParenLoc); in ActOnCXXTypeid()
683 BuildCXXTypeId(TypeInfoType, OpLoc, (Expr *)TyOrExpr, RParenLoc); in ActOnCXXTypeid()
688 Diag(OpLoc, diag::warn_no_typeid_with_rtti_disabled) in ActOnCXXTypeid()
774 Sema::ActOnCXXUuidof(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXUuidof() argument
[all …]
H A DSemaAccess.cpp1737 Sema::AccessResult Sema::CheckAllocationAccess(SourceLocation OpLoc, in CheckAllocationAccess() argument
1753 return CheckAccess(*this, OpLoc, Entity); in CheckAllocationAccess()
1785 Sema::AccessResult Sema::CheckMemberOperatorAccess(SourceLocation OpLoc, in CheckMemberOperatorAccess() argument
1799 return CheckAccess(*this, OpLoc, Entity); in CheckMemberOperatorAccess()
1802 Sema::AccessResult Sema::CheckMemberOperatorAccess(SourceLocation OpLoc, in CheckMemberOperatorAccess() argument
1807 OpLoc, ObjectExpr, ArgExpr ? ArgExpr->getSourceRange() : SourceRange(), in CheckMemberOperatorAccess()
1811 Sema::AccessResult Sema::CheckMemberOperatorAccess(SourceLocation OpLoc, in CheckMemberOperatorAccess() argument
1821 return CheckMemberOperatorAccess(OpLoc, ObjectExpr, R, FoundDecl); in CheckMemberOperatorAccess()
H A DSemaCast.cpp226 SourceLocation OpLoc) { in CheckNoDeref() argument
231 S.Diag(OpLoc, diag::warn_noderef_to_dereferenceable_pointer); in CheckNoDeref()
314 Sema::ActOnCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind, in ActOnCXXNamedCast() argument
331 return BuildCXXNamedCast(OpLoc, Kind, TInfo, E, in ActOnCXXNamedCast()
337 Sema::BuildCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind, in BuildCXXNamedCast() argument
349 CastOperation::OpRangeType(OpLoc, Parens.getBegin(), Parens.getEnd()); in BuildCXXNamedCast()
365 DestTInfo, OpLoc, Parens.getEnd(), AngleBrackets)); in BuildCXXNamedCast()
376 OpLoc, Parens.getEnd(), in BuildCXXNamedCast()
382 return ExprError(Diag(OpLoc, diag::err_openclcxx_not_supported) in BuildCXXNamedCast()
394 OpLoc, Parens.getEnd(), in BuildCXXNamedCast()
[all …]
H A DTreeTransform.h2677 ExprResult RebuildSYCLUniqueStableNameExpr(SourceLocation OpLoc, in RebuildSYCLUniqueStableNameExpr() argument
2681 return getSema().SYCL().BuildUniqueStableNameExpr(OpLoc, LParen, RParen, in RebuildSYCLUniqueStableNameExpr()
2745 ExprResult RebuildUnaryOperator(SourceLocation OpLoc, in RebuildUnaryOperator() argument
2748 return getSema().BuildUnaryOp(/*Scope=*/nullptr, OpLoc, Opc, SubExpr); in RebuildUnaryOperator()
2769 SourceLocation OpLoc, in RebuildUnaryExprOrTypeTrait() argument
2772 return getSema().CreateUnaryExprOrTypeTraitExpr(TInfo, OpLoc, ExprKind, R); in RebuildUnaryExprOrTypeTrait()
2780 ExprResult RebuildUnaryExprOrTypeTrait(Expr *SubExpr, SourceLocation OpLoc, in RebuildUnaryExprOrTypeTrait() argument
2784 = getSema().CreateUnaryExprOrTypeTraitExpr(SubExpr, OpLoc, ExprKind); in RebuildUnaryExprOrTypeTrait()
2885 ExprResult RebuildMemberExpr(Expr *Base, SourceLocation OpLoc, in RebuildMemberExpr() argument
2923 Base, isArrow, OpLoc, EmptySS, cast<FieldDecl>(Member), in RebuildMemberExpr()
[all …]
H A DSemaTemplateVariadic.cpp1140 SourceLocation OpLoc, in ActOnSizeofParameterPackExpr() argument
1182 MarkAnyDeclReferenced(OpLoc, ParameterPack, true); in ActOnSizeofParameterPackExpr()
1184 return SizeOfPackExpr::Create(Context, OpLoc, ParameterPack, NameLoc, in ActOnSizeofParameterPackExpr()
H A DSemaExprObjC.cpp1977 const ObjCObjectPointerType *OPT, Expr *BaseExpr, SourceLocation OpLoc, in HandleExprPropertyRefExpr() argument
2128 return HandleExprPropertyRefExpr(OPT, BaseExpr, OpLoc, in HandleExprPropertyRefExpr()
2147 << FixItHint::CreateReplacement(OpLoc, "->"); in HandleExprPropertyRefExpr()
5130 ExprResult SemaObjC::ActOnObjCBoolLiteral(SourceLocation OpLoc, in ActOnObjCBoolLiteral() argument
5137 LookupResult Result(SemaRef, &Context.Idents.get("BOOL"), OpLoc, in ActOnObjCBoolLiteral()
5149 ObjCBoolLiteralExpr(Kind == tok::kw___objc_yes, BoolT, OpLoc); in ActOnObjCBoolLiteral()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaPseudoObject.h30 ExprResult checkIncDec(Scope *S, SourceLocation OpLoc,
32 ExprResult checkAssignment(Scope *S, SourceLocation OpLoc,
H A DSemaSYCL.h55 ExprResult BuildUniqueStableNameExpr(SourceLocation OpLoc,
59 ExprResult ActOnUniqueStableNameExpr(SourceLocation OpLoc,
H A DOverload.h1190 : OriginalOperator(OO_None), OpLoc(), AllowRewrittenCandidates(false) {} in OperatorRewriteInfo()
1191 OperatorRewriteInfo(OverloadedOperatorKind Op, SourceLocation OpLoc, in OperatorRewriteInfo()
1193 : OriginalOperator(Op), OpLoc(OpLoc), in OperatorRewriteInfo()
1199 SourceLocation OpLoc; member
1346 bool shouldDeferDiags(Sema &S, ArrayRef<Expr *> Args, SourceLocation OpLoc);
1461 SourceLocation OpLoc = SourceLocation(),
1475 SourceLocation OpLoc = SourceLocation());
H A DSema.h312 SourceLocation OpLoc);
2516 ExprResult ActOnCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind,
2522 ExprResult BuildCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind,
2740 SourceLocation OpLoc);
7264 ExprResult CreateBuiltinUnaryOp(SourceLocation OpLoc, UnaryOperatorKind Opc,
7266 ExprResult BuildUnaryOp(Scope *S, SourceLocation OpLoc, UnaryOperatorKind Opc,
7270 ExprResult ActOnUnaryOp(Scope *S, SourceLocation OpLoc, tok::TokenKind Op,
7277 bool CheckUseOfCXXMethodAsAddressOfOperand(SourceLocation OpLoc,
7288 QualType CheckAddressOfOperand(ExprResult &Operand, SourceLocation OpLoc);
7298 SourceLocation OpLoc, SourceRange R);
[all …]
H A DSemaCodeCompletion.h108 SourceLocation OpLoc, bool IsArrow,
H A DSemaObjC.h639 Expr *BaseExpr, SourceLocation OpLoc,
898 ExprResult ActOnObjCBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind);
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPExpressions.cpp636 SourceLocation OpLoc = PeekTok.getLocation(); in EvaluateDirectiveSubExpr() local
698 PP.Diag(OpLoc, diag::warn_pp_convert_to_positive) << 0 in EvaluateDirectiveSubExpr()
703 PP.Diag(OpLoc, diag::warn_pp_convert_to_positive) << 1 in EvaluateDirectiveSubExpr()
719 PP.Diag(OpLoc, diag::err_pp_remainder_by_zero) in EvaluateDirectiveSubExpr()
731 PP.Diag(OpLoc, diag::err_pp_division_by_zero) in EvaluateDirectiveSubExpr()
818 PP.Diag(OpLoc, diag::ext_pp_comma_expr) in EvaluateDirectiveSubExpr()
827 PP.Diag(OpLoc, diag::note_matching) << tok::question; in EvaluateDirectiveSubExpr()
861 PP.Diag(OpLoc, diag::err_pp_colon_without_question) in EvaluateDirectiveSubExpr()
868 PP.Diag(OpLoc, diag::warn_pp_expr_overflow) in EvaluateDirectiveSubExpr()
H A DTokenLexer.cpp955 void TokenLexer::HandleMicrosoftCommentPaste(Token &Tok, SourceLocation OpLoc) { in HandleMicrosoftCommentPaste() argument
956 PP.Diag(OpLoc, diag::ext_comment_paste_microsoft); in HandleMicrosoftCommentPaste()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExprObjC.h553 SourceLocation OpLoc; variable
569 D(d), Base(base), Loc(l), OpLoc(oploc), IsArrow(arrow),
598 SourceLocation getOpLoc() const { return OpLoc; } in getOpLoc()
599 void setOpLoc(SourceLocation L) { OpLoc = L; } in setOpLoc()
1492 SourceLocation OpLoc; variable
1501 IsaMemberLoc(l), OpLoc(oploc), IsArrow(isarrow) { in ObjCIsaExpr()
1519 SourceLocation getOpLoc() const { return OpLoc; } in getOpLoc()
1520 void setOpLoc(SourceLocation L) { OpLoc = L; } in setOpLoc()
H A DExpr.h2126 SourceLocation OpLoc, LParen, RParen; variable
2130 SYCLUniqueStableNameExpr(SourceLocation OpLoc, SourceLocation LParen,
2136 void setLocation(SourceLocation L) { OpLoc = L; } in setLocation()
2146 Create(const ASTContext &Ctx, SourceLocation OpLoc, SourceLocation LParen,
2153 SourceLocation getLocation() const { return OpLoc; } in getLocation()
2628 SourceLocation OpLoc, RParenLoc; variable
2636 OpLoc(op), RParenLoc(rp) { in UnaryExprOrTypeTraitExpr()
2696 SourceLocation getOperatorLoc() const { return OpLoc; } in getOperatorLoc()
2697 void setOperatorLoc(SourceLocation L) { OpLoc = L; } in setOperatorLoc()
2702 SourceLocation getBeginLoc() const LLVM_READONLY { return OpLoc; } in getBeginLoc()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DTokenLexer.h218 void HandleMicrosoftCommentPaste(Token &Tok, SourceLocation OpLoc);
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExprCXX.cpp1506 SourceLocation OpLoc = ConsumeToken(); in ParseCXXCasts() local
1546 Result = Actions.ActOnCXXNamedCast(OpLoc, Kind, in ParseCXXCasts()
1558 SourceLocation OpLoc = ConsumeToken(); in ParseCXXTypeid() local
1595 Result = Actions.ActOnCXXTypeid(OpLoc, LParenLoc, /*isType=*/true, in ParseCXXTypeid()
1609 Result = Actions.ActOnCXXTypeid(OpLoc, LParenLoc, /*isType=*/false, in ParseCXXTypeid()
1620 SourceLocation OpLoc = ConsumeToken(); in ParseCXXUuidof() local
1638 Result = Actions.ActOnCXXUuidof(OpLoc, T.getOpenLocation(), /*isType=*/true, in ParseCXXUuidof()
1652 Result = Actions.ActOnCXXUuidof(OpLoc, T.getOpenLocation(), in ParseCXXUuidof()
1662 Parser::ParseCXXPseudoDestructor(Expr *Base, SourceLocation OpLoc, in ParseCXXPseudoDestructor() argument
1698 return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc, OpKind, in ParseCXXPseudoDestructor()
[all …]
H A DParseExpr.cpp1910 SourceLocation OpLoc = ConsumeToken(); // Eat the "." or "->" token. in ParsePostfixExpressionSuffix() local
1925 Diag(OpLoc, diag::err_function_is_not_record) in ParsePostfixExpressionSuffix()
1927 << FixItHint::CreateRemoval(OpLoc); in ParsePostfixExpressionSuffix()
1931 LHS = Actions.ActOnStartCXXMemberReference(getCurScope(), Base, OpLoc, in ParsePostfixExpressionSuffix()
1960 getCurScope(), OrigLHS, OpLoc, CorrectedOpKind, ObjectType, in ParsePostfixExpressionSuffix()
1972 getCurScope(), Base, CorrectedBase, OpLoc, OpKind == tok::arrow, in ParsePostfixExpressionSuffix()
1980 LHS = ParseCXXPseudoDestructor(LHS.get(), OpLoc, OpKind, SS, in ParsePostfixExpressionSuffix()
2017 LHS = Actions.ActOnMemberAccessExpr(getCurScope(), LHS.get(), OpLoc, in ParsePostfixExpressionSuffix()
2166 SourceLocation OpLoc = ConsumeToken(); in ParseSYCLUniqueStableNameExpression() local
2185 OpLoc, T.getOpenLocation(), T.getCloseLocation(), Ty.get()); in ParseSYCLUniqueStableNameExpression()
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGParser.cpp1519 SMLoc OpLoc = Lex.getLoc(); in ParseOperation() local
1630 Error(OpLoc, Twine("expected value of type '") + in ParseOperation()
1652 Error(OpLoc, Twine("expected value to be a typed value, got '" + in ParseOperation()
1673 Error(OpLoc, in ParseOperation()
1679 Error(OpLoc, Twine("expected first arg type to be '") + in ParseOperation()
1830 Error(OpLoc, "expected two operands to operator"); in ParseOperation()
1840 SMLoc OpLoc = Lex.getLoc(); in ParseOperation() local
1863 Error(OpLoc, Twine("expected value to be a typed value, got '" + in ParseOperation()
2469 SMLoc OpLoc = Lex.getLoc(); in ParseOperationForEachFilter() local
2524 Error(OpLoc, in ParseOperationForEachFilter()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp556 SYCLUniqueStableNameExpr::SYCLUniqueStableNameExpr(SourceLocation OpLoc, in SYCLUniqueStableNameExpr() argument
562 OpLoc(OpLoc), LParen(LParen), RParen(RParen) { in SYCLUniqueStableNameExpr()
572 SYCLUniqueStableNameExpr::Create(const ASTContext &Ctx, SourceLocation OpLoc, in Create() argument
577 SYCLUniqueStableNameExpr(OpLoc, LParen, RParen, ResultTy, TSI); in Create()
1699 OpLoc(op), RParenLoc(rp) { in UnaryExprOrTypeTraitExpr()
4858 BinaryOperatorBits.OpLoc = opLoc; in BinaryOperator()
4878 BinaryOperatorBits.OpLoc = opLoc; in BinaryOperator()

12