Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprMember.cpp375 SourceLocation OpLoc, const IdentifierInfo *CompName, in CheckExtVectorComponent() argument
423 S.Diag(OpLoc, diag::ext_opencl_ext_vector_type_rgba_selector) in CheckExtVectorComponent()
439 S.Diag(OpLoc, diag::err_ext_vector_component_name_illegal) in CheckExtVectorComponent()
454 S.Diag(OpLoc, diag::err_ext_vector_component_exceeds_length) in CheckExtVectorComponent()
470 S.Diag(OpLoc, diag::err_opencl_ext_vector_component_invalid_length) in CheckExtVectorComponent()
557 bool IsArrow, SourceLocation OpLoc, in ActOnDependentMemberExpr() argument
577 Diag(OpLoc, diag::err_typecheck_member_reference_struct_union) in ActOnDependentMemberExpr()
593 Context, BaseExpr, BaseType, IsArrow, OpLoc, in ActOnDependentMemberExpr()
706 SourceLocation OpLoc, bool IsArrow, in LookupMemberExprInRecord() argument
714 OpLoc, RTy, diag::err_typecheck_incomplete_tag, BaseRange)) in LookupMemberExprInRecord()
[all …]
H A DSemaSYCL.cpp139 ExprResult SemaSYCL::BuildUniqueStableNameExpr(SourceLocation OpLoc, in BuildUniqueStableNameExpr() argument
143 return SYCLUniqueStableNameExpr::Create(getASTContext(), OpLoc, LParen, in BuildUniqueStableNameExpr()
147 ExprResult SemaSYCL::ActOnUniqueStableNameExpr(SourceLocation OpLoc, in ActOnUniqueStableNameExpr() argument
159 return BuildUniqueStableNameExpr(OpLoc, LParen, RParen, TSI); in ActOnUniqueStableNameExpr()
H A DSemaExpr.cpp4491 SourceLocation OpLoc, in CheckUnaryExprOrTypeTraitOperand() argument
4516 Diag(OpLoc, getLangOpts().C2y in CheckUnaryExprOrTypeTraitOperand()
4523 return CheckVecStepTraitOperandType(*this, ExprType, OpLoc, ExprRange); in CheckUnaryExprOrTypeTraitOperand()
4526 return CheckVectorElementsTraitOperandType(*this, ExprType, OpLoc, in CheckUnaryExprOrTypeTraitOperand()
4530 return checkPtrAuthTypeDiscriminatorOperandType(*this, ExprType, OpLoc, in CheckUnaryExprOrTypeTraitOperand()
4534 if (!CheckExtensionTraitOperandType(*this, ExprType, OpLoc, ExprRange, in CheckUnaryExprOrTypeTraitOperand()
4539 OpLoc, ExprType, diag::err_sizeof_alignof_incomplete_or_sizeless_type, in CheckUnaryExprOrTypeTraitOperand()
4544 Diag(OpLoc, diag::err_sizeof_alignof_function_type) << KWName << ExprRange; in CheckUnaryExprOrTypeTraitOperand()
4552 Diag(OpLoc, diag::err_wasm_table_invalid_uett_operand) in CheckUnaryExprOrTypeTraitOperand()
4557 if (CheckObjCTraitOperandConstraints(*this, ExprType, OpLoc, ExprRange, in CheckUnaryExprOrTypeTraitOperand()
[all …]
H A DSemaOverload.cpp1013 static bool shouldAddReversedEqEq(Sema &S, SourceLocation OpLoc, in shouldAddReversedEqEq() argument
1035 LookupResult Members(S, NotEqOp, OpLoc, in shouldAddReversedEqEq()
1072 S, OpLoc, /*FirstOperand in reversed args*/ OriginalArgs[1], FD)) in shouldAddReversed()
8257 SourceLocation OpLoc, in AddMemberOperatorCandidates() argument
8279 if (!isCompleteType(OpLoc, T1) && !T1Rec->isBeingDefined()) in AddMemberOperatorCandidates()
8285 LookupResult Operators(*this, OpName, OpLoc, LookupOrdinaryName); in AddMemberOperatorCandidates()
9760 SourceLocation OpLoc, in AddBuiltinOperatorCandidates() argument
9781 OpLoc, in AddBuiltinOperatorCandidates()
12109 SourceLocation OpLoc, in NoteBuiltinOperatorCandidate() argument
12118 S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr; in NoteBuiltinOperatorCandidate()
[all …]
H A DSemaExprCXX.cpp647 Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXTypeid() argument
651 return ExprError(Diag(OpLoc, diag::err_openclcxx_not_supported) in ActOnCXXTypeid()
657 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid)); in ActOnCXXTypeid()
671 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid)); in ActOnCXXTypeid()
675 return ExprError(Diag(OpLoc, diag::err_no_typeid_with_fno_rtti)); in ActOnCXXTypeid()
689 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXTypeid()
691 return BuildCXXTypeId(TypeInfoType, OpLoc, TInfo, RParenLoc); in ActOnCXXTypeid()
696 BuildCXXTypeId(TypeInfoType, OpLoc, (Expr *)TyOrExpr, RParenLoc); in ActOnCXXTypeid()
701 Diag(OpLoc, diag::warn_no_typeid_with_rtti_disabled) in ActOnCXXTypeid()
787 Sema::ActOnCXXUuidof(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXUuidof() argument
[all …]
H A DSemaAccess.cpp1741 Sema::AccessResult Sema::CheckAllocationAccess(SourceLocation OpLoc, in CheckAllocationAccess() argument
1757 return CheckAccess(*this, OpLoc, Entity); in CheckAllocationAccess()
1789 Sema::AccessResult Sema::CheckMemberOperatorAccess(SourceLocation OpLoc, in CheckMemberOperatorAccess() argument
1803 return CheckAccess(*this, OpLoc, Entity); in CheckMemberOperatorAccess()
1806 Sema::AccessResult Sema::CheckMemberOperatorAccess(SourceLocation OpLoc, in CheckMemberOperatorAccess() argument
1811 OpLoc, ObjectExpr, ArgExpr ? ArgExpr->getSourceRange() : SourceRange(), in CheckMemberOperatorAccess()
1815 Sema::AccessResult Sema::CheckMemberOperatorAccess(SourceLocation OpLoc, in CheckMemberOperatorAccess() argument
1825 return CheckMemberOperatorAccess(OpLoc, ObjectExpr, R, FoundDecl); in CheckMemberOperatorAccess()
H A DSemaCast.cpp183 SourceLocation OpLoc) { in CheckNoDeref() argument
188 S.Diag(OpLoc, diag::warn_noderef_to_dereferenceable_pointer); in CheckNoDeref()
274 Sema::ActOnCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind, in ActOnCXXNamedCast() argument
291 return BuildCXXNamedCast(OpLoc, Kind, TInfo, E, in ActOnCXXNamedCast()
297 Sema::BuildCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind, in BuildCXXNamedCast() argument
308 Op.OpRange = SourceRange(OpLoc, Parens.getEnd()); in BuildCXXNamedCast()
322 DestTInfo, OpLoc, Parens.getEnd(), AngleBrackets)); in BuildCXXNamedCast()
333 OpLoc, Parens.getEnd(), in BuildCXXNamedCast()
339 return ExprError(Diag(OpLoc, diag::err_openclcxx_not_supported) in BuildCXXNamedCast()
351 OpLoc, Parens.getEnd(), in BuildCXXNamedCast()
[all …]
H A DTreeTransform.h2644 ExprResult RebuildSYCLUniqueStableNameExpr(SourceLocation OpLoc, in RebuildSYCLUniqueStableNameExpr() argument
2648 return getSema().SYCL().BuildUniqueStableNameExpr(OpLoc, LParen, RParen, in RebuildSYCLUniqueStableNameExpr()
2712 ExprResult RebuildUnaryOperator(SourceLocation OpLoc, in RebuildUnaryOperator() argument
2715 return getSema().BuildUnaryOp(/*Scope=*/nullptr, OpLoc, Opc, SubExpr); in RebuildUnaryOperator()
2736 SourceLocation OpLoc, in RebuildUnaryExprOrTypeTrait() argument
2739 return getSema().CreateUnaryExprOrTypeTraitExpr(TInfo, OpLoc, ExprKind, R); in RebuildUnaryExprOrTypeTrait()
2747 ExprResult RebuildUnaryExprOrTypeTrait(Expr *SubExpr, SourceLocation OpLoc, in RebuildUnaryExprOrTypeTrait() argument
2751 = getSema().CreateUnaryExprOrTypeTraitExpr(SubExpr, OpLoc, ExprKind); in RebuildUnaryExprOrTypeTrait()
2852 ExprResult RebuildMemberExpr(Expr *Base, SourceLocation OpLoc, in RebuildMemberExpr() argument
2890 Base, isArrow, OpLoc, EmptySS, cast<FieldDecl>(Member), in RebuildMemberExpr()
[all …]
H A DSemaTemplateVariadic.cpp1018 SourceLocation OpLoc, in ActOnSizeofParameterPackExpr() argument
1060 MarkAnyDeclReferenced(OpLoc, ParameterPack, true); in ActOnSizeofParameterPackExpr()
1062 return SizeOfPackExpr::Create(Context, OpLoc, ParameterPack, NameLoc, in ActOnSizeofParameterPackExpr()
H A DSemaExprObjC.cpp1990 const ObjCObjectPointerType *OPT, Expr *BaseExpr, SourceLocation OpLoc, in HandleExprPropertyRefExpr() argument
2139 return HandleExprPropertyRefExpr(OPT, BaseExpr, OpLoc, in HandleExprPropertyRefExpr()
2158 << FixItHint::CreateReplacement(OpLoc, "->"); in HandleExprPropertyRefExpr()
5136 ExprResult SemaObjC::ActOnObjCBoolLiteral(SourceLocation OpLoc, in ActOnObjCBoolLiteral() argument
5143 LookupResult Result(SemaRef, &Context.Idents.get("BOOL"), OpLoc, in ActOnObjCBoolLiteral()
5155 ObjCBoolLiteralExpr(Kind == tok::kw___objc_yes, BoolT, OpLoc); in ActOnObjCBoolLiteral()
H A DAnalysisBasedWarnings.cpp365 static void EmitDiagForCXXThrowInNonThrowingFunc(Sema &S, SourceLocation OpLoc, in EmitDiagForCXXThrowInNonThrowingFunc() argument
367 if (!S.getSourceManager().isInSystemHeader(OpLoc) && in EmitDiagForCXXThrowInNonThrowingFunc()
369 S.Diag(OpLoc, diag::warn_throw_in_noexcept_func) << FD; in EmitDiagForCXXThrowInNonThrowingFunc()
/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.h1040 : OriginalOperator(OO_None), OpLoc(), AllowRewrittenCandidates(false) {} in OperatorRewriteInfo()
1041 OperatorRewriteInfo(OverloadedOperatorKind Op, SourceLocation OpLoc, in OperatorRewriteInfo()
1043 : OriginalOperator(Op), OpLoc(OpLoc), in OperatorRewriteInfo()
1049 SourceLocation OpLoc; member
1165 bool shouldDeferDiags(Sema &S, ArrayRef<Expr *> Args, SourceLocation OpLoc);
1229 SourceLocation OpLoc = SourceLocation(),
1243 SourceLocation OpLoc = SourceLocation());
H A DSema.h336 SourceLocation OpLoc);
2111 ExprResult ActOnCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind,
2117 ExprResult BuildCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind,
2330 SourceLocation OpLoc);
6841 ExprResult CreateBuiltinUnaryOp(SourceLocation OpLoc, UnaryOperatorKind Opc,
6843 ExprResult BuildUnaryOp(Scope *S, SourceLocation OpLoc, UnaryOperatorKind Opc,
6847 ExprResult ActOnUnaryOp(Scope *S, SourceLocation OpLoc, tok::TokenKind Op,
6854 bool CheckUseOfCXXMethodAsAddressOfOperand(SourceLocation OpLoc,
6865 QualType CheckAddressOfOperand(ExprResult &Operand, SourceLocation OpLoc);
6875 SourceLocation OpLoc, SourceRange R);
[all …]
H A DSemaCodeCompletion.h106 SourceLocation OpLoc, bool IsArrow,
H A DSemaObjC.h647 Expr *BaseExpr, SourceLocation OpLoc,
905 ExprResult ActOnObjCBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind);
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPExpressions.cpp627 SourceLocation OpLoc = PeekTok.getLocation(); in EvaluateDirectiveSubExpr() local
689 PP.Diag(OpLoc, diag::warn_pp_convert_to_positive) << 0 in EvaluateDirectiveSubExpr()
694 PP.Diag(OpLoc, diag::warn_pp_convert_to_positive) << 1 in EvaluateDirectiveSubExpr()
710 PP.Diag(OpLoc, diag::err_pp_remainder_by_zero) in EvaluateDirectiveSubExpr()
722 PP.Diag(OpLoc, diag::err_pp_division_by_zero) in EvaluateDirectiveSubExpr()
809 PP.Diag(OpLoc, diag::ext_pp_comma_expr) in EvaluateDirectiveSubExpr()
818 PP.Diag(OpLoc, diag::note_matching) << tok::question; in EvaluateDirectiveSubExpr()
852 PP.Diag(OpLoc, diag::err_pp_colon_without_question) in EvaluateDirectiveSubExpr()
859 PP.Diag(OpLoc, diag::warn_pp_expr_overflow) in EvaluateDirectiveSubExpr()
H A DTokenLexer.cpp945 void TokenLexer::HandleMicrosoftCommentPaste(Token &Tok, SourceLocation OpLoc) { in HandleMicrosoftCommentPaste() argument
946 PP.Diag(OpLoc, diag::ext_comment_paste_microsoft); in HandleMicrosoftCommentPaste()
/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.cpp1658 SourceLocation OpLoc = ConsumeToken(); in ParseCXXCasts() local
1698 Result = Actions.ActOnCXXNamedCast(OpLoc, Kind, in ParseCXXCasts()
1716 SourceLocation OpLoc = ConsumeToken(); in ParseCXXTypeid() local
1753 Result = Actions.ActOnCXXTypeid(OpLoc, LParenLoc, /*isType=*/true, in ParseCXXTypeid()
1767 Result = Actions.ActOnCXXTypeid(OpLoc, LParenLoc, /*isType=*/false, in ParseCXXTypeid()
1783 SourceLocation OpLoc = ConsumeToken(); in ParseCXXUuidof() local
1801 Result = Actions.ActOnCXXUuidof(OpLoc, T.getOpenLocation(), /*isType=*/true, in ParseCXXUuidof()
1815 Result = Actions.ActOnCXXUuidof(OpLoc, T.getOpenLocation(), in ParseCXXUuidof()
1856 Parser::ParseCXXPseudoDestructor(Expr *Base, SourceLocation OpLoc, in ParseCXXPseudoDestructor() argument
1892 return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc, OpKind, in ParseCXXPseudoDestructor()
[all …]
H A DParseExpr.cpp2260 SourceLocation OpLoc = ConsumeToken(); // Eat the "." or "->" token. in ParsePostfixExpressionSuffix() local
2275 Diag(OpLoc, diag::err_function_is_not_record) in ParsePostfixExpressionSuffix()
2277 << FixItHint::CreateRemoval(OpLoc); in ParsePostfixExpressionSuffix()
2281 LHS = Actions.ActOnStartCXXMemberReference(getCurScope(), Base, OpLoc, in ParsePostfixExpressionSuffix()
2310 getCurScope(), OrigLHS, OpLoc, CorrectedOpKind, ObjectType, in ParsePostfixExpressionSuffix()
2322 getCurScope(), Base, CorrectedBase, OpLoc, OpKind == tok::arrow, in ParsePostfixExpressionSuffix()
2330 LHS = ParseCXXPseudoDestructor(LHS.get(), OpLoc, OpKind, SS, in ParsePostfixExpressionSuffix()
2368 LHS = Actions.ActOnMemberAccessExpr(getCurScope(), LHS.get(), OpLoc, in ParsePostfixExpressionSuffix()
2524 SourceLocation OpLoc = ConsumeToken(); in ParseSYCLUniqueStableNameExpression() local
2543 OpLoc, T.getOpenLocation(), T.getCloseLocation(), Ty.get()); in ParseSYCLUniqueStableNameExpression()
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGParser.cpp1451 SMLoc OpLoc = Lex.getLoc(); in ParseOperation() local
1555 Error(OpLoc, Twine("expected value of type '") + in ParseOperation()
1577 Error(OpLoc, Twine("expected value to be a typed value, got '" + in ParseOperation()
1598 Error(OpLoc, in ParseOperation()
1604 Error(OpLoc, Twine("expected first arg type to be '") + in ParseOperation()
1755 Error(OpLoc, "expected two operands to operator"); in ParseOperation()
1765 SMLoc OpLoc = Lex.getLoc(); in ParseOperation() local
1788 Error(OpLoc, Twine("expected value to be a typed value, got '" + in ParseOperation()
2390 SMLoc OpLoc = Lex.getLoc(); in ParseOperationForEachFilter() local
2445 Error(OpLoc, in ParseOperationForEachFilter()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExpr.h2081 SourceLocation OpLoc, LParen, RParen; variable
2085 SYCLUniqueStableNameExpr(SourceLocation OpLoc, SourceLocation LParen,
2091 void setLocation(SourceLocation L) { OpLoc = L; } in setLocation()
2101 Create(const ASTContext &Ctx, SourceLocation OpLoc, SourceLocation LParen,
2108 SourceLocation getLocation() const { return OpLoc; } in getLocation()
2583 SourceLocation OpLoc, RParenLoc; variable
2591 OpLoc(op), RParenLoc(rp) { in UnaryExprOrTypeTraitExpr()
2651 SourceLocation getOperatorLoc() const { return OpLoc; } in getOperatorLoc()
2652 void setOperatorLoc(SourceLocation L) { OpLoc = L; } in setOperatorLoc()
2657 SourceLocation getBeginLoc() const LLVM_READONLY { return OpLoc; } in getBeginLoc()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp562 SYCLUniqueStableNameExpr::SYCLUniqueStableNameExpr(SourceLocation OpLoc, in SYCLUniqueStableNameExpr() argument
568 OpLoc(OpLoc), LParen(LParen), RParen(RParen) { in SYCLUniqueStableNameExpr()
578 SYCLUniqueStableNameExpr::Create(const ASTContext &Ctx, SourceLocation OpLoc, in Create() argument
583 SYCLUniqueStableNameExpr(OpLoc, LParen, RParen, ResultTy, TSI); in Create()
1704 OpLoc(op), RParenLoc(rp) { in UnaryExprOrTypeTraitExpr()
4770 BinaryOperatorBits.OpLoc = opLoc; in BinaryOperator()
4787 BinaryOperatorBits.OpLoc = opLoc; in BinaryOperator()

12