Lines Matching refs:getLangOpts
64 if (getLangOpts().CPlusPlus14 && FD->getReturnType()->isUndeducedType() && in CanUseDecl()
256 if (S.getLangOpts().CPlusPlus) in diagnoseUseOfInternalDeclInInlineFunction()
320 if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) { in DiagnoseUseOfDecl()
366 if (getLangOpts().CPlusPlus14 && FD->getReturnType()->isUndeducedType() && in DiagnoseUseOfDecl()
484 else if (getLangOpts().CPlusPlus11) in DiagnoseSentinelCalls()
523 if (getLangOpts().OpenCL) { in DefaultFunctionArrayConversion()
548 if (getLangOpts().C99 || getLangOpts().CPlusPlus || E->isLValue()) in DefaultFunctionArrayConversion()
648 if (getLangOpts().CPlusPlus && in DefaultLvalueConversion()
663 if (getLangOpts().OpenCL && !getOpenCLOptions().cl_khr_fp16 && in DefaultLvalueConversion()
708 if (getLangOpts().ObjCAutoRefCount && in DefaultLvalueConversion()
772 if (Ty->isHalfType() && !getLangOpts().NativeHalfType) in UsualUnaryConversions()
837 if (getLangOpts().CPlusPlus && E->isGLValue() && !isUnevaluatedContext()) { in DefaultArgumentPromotion()
878 if (getLangOpts().CPlusPlus11 && !Ty->isDependentType()) in isValidVarArgType()
885 if (getLangOpts().ObjCAutoRefCount && Ty->isObjCLifetimeType()) in isValidVarArgType()
891 if (getLangOpts().MSVCCompat) in isValidVarArgType()
927 << getLangOpts().CPlusPlus11 << Ty << CT); in checkVariadicArgument()
995 if (!getLangOpts().CPlusPlus && in DefaultVariadicArgumentPromotion()
1140 if (LHSType->isHalfType() && !S.getLangOpts().NativeHalfType) in handleFloatConversion()
1564 S.getLangOpts()); in getUDSuffixLoc()
1634 if (getLangOpts().CPlusPlus || getLangOpts().ConstStrings) in ActOnStringLiteral()
1645 if (getLangOpts().OpenCL) { in ActOnStringLiteral()
1738 if (getLangOpts().CUDA) in BuildDeclRefExpr()
1776 if (getLangOpts().ObjCWeak && isa<VarDecl>(D) && in BuildDeclRefExpr()
1840 std::string CorrectedStr = TC.getAsString(SemaRef.getLangOpts()); in emitEmptyLookupTypoDiagnostic()
1902 if (getLangOpts().MSVCCompat) in DiagnoseEmptyLookup()
1936 if (getLangOpts().MSVCCompat && isa<FunctionDecl>(DC) && in DiagnoseEmptyLookup()
1962 std::string CorrectedStr(Corrected.getAsString(getLangOpts())); in DiagnoseEmptyLookup()
1998 if (getLangOpts().CPlusPlus && ND->isCXXClassMember()) { in DiagnoseEmptyLookup()
2201 if (R.empty() && HasTrailingLParen && II && !getLangOpts().CPlusPlus) { in ActOnIdExpression()
2211 if (SS.isEmpty() && getLangOpts().MSVCCompat) { in ActOnIdExpression()
2378 if (RecoveryTSI && getLangOpts().MSVCCompat) in BuildQualifiedDeclarationNameExpr()
2480 !getLangOpts().DebuggerSupport) in LookupInObjCMethod()
2511 if (getLangOpts().ObjCAutoRefCount) { in LookupInObjCMethod()
2544 if (!(getLangOpts().CPlusPlus && in LookupInObjCMethod()
2735 if (!getLangOpts().CPlusPlus) in UseArgumentDependentLookup()
2914 assert(getLangOpts().CPlusPlus && in BuildDeclarationNameExpr()
2944 if (!getLangOpts().CPlusPlus && in BuildDeclarationNameExpr()
2990 if (getLangOpts().CPlusPlus) { in BuildDeclarationNameExpr()
3141 else if (!getLangOpts().CPlusPlus || Literal.isMultiChar()) in ActOnCharacterConstant()
3382 if (getLangOpts().SinglePrecisionConstants) { in ActOnNumericConstant()
3384 } else if (getLangOpts().OpenCL && in ActOnNumericConstant()
3385 !((getLangOpts().OpenCLVersion >= 120) || in ActOnNumericConstant()
3397 if (!getLangOpts().C99 && Literal.isLongLong) { in ActOnNumericConstant()
3398 if (getLangOpts().CPlusPlus) in ActOnNumericConstant()
3400 getLangOpts().CPlusPlus11 ? in ActOnNumericConstant()
3468 else if (!getLangOpts().C99 && !getLangOpts().CPlusPlus11) { in ActOnNumericConstant()
3472 getLangOpts().CPlusPlus in ActOnNumericConstant()
3496 (getLangOpts().MicrosoftExt && Literal.isLongLong))) in ActOnNumericConstant()
4171 if (getLangOpts().CPlusPlus && in ActOnArraySubscriptExpr()
4200 if (getLangOpts().CPlusPlus && in ActOnArraySubscriptExpr()
4479 if (ResultType->isVoidType() && !getLangOpts().CPlusPlus) { in CreateBuiltinArraySubscriptExpr()
4830 else if (getLangOpts().ObjCAutoRefCount && in GatherArgumentsForCall()
4924 if (!Param || getLangOpts().CPlusPlus) in CheckStaticArrayArgument()
5126 if (getLangOpts().CPlusPlus) { in ActOnCallExpr()
5346 if (!getLangOpts().CPlusPlus) { in BuildResolvedCallExpr()
5388 if (getLangOpts().CUDA) { in BuildResolvedCallExpr()
5557 ExprValueKind VK = getLangOpts().CPlusPlus ? VK_RValue : VK_LValue; in BuildCompoundLiteralExpr()
5596 if (!getLangOpts().ObjCAutoRefCount) return; in maybeExtendBlockObject()
5843 if (!Context.getLangOpts().LaxVectorConversions) in isLaxVectorConversion()
5913 || (getLangOpts().OpenCL && in CheckExtVectorCast()
5946 if (getLangOpts().CPlusPlus) { in ActOnCastExpr()
5968 if ((getLangOpts().AltiVec || getLangOpts().ZVector || getLangOpts().OpenCL) in ActOnCastExpr()
5997 if (getLangOpts().CPlusPlus && !castType->isVoidType() && in ActOnCastExpr()
6066 if (getLangOpts().OpenCL && in BuildVectorLiteral()
6160 if (S.getLangOpts().OpenCL && CondTy->isFloatingType()) { in checkCondition()
6268 if (S.getLangOpts().OpenCL) { in checkConditionalPointerCompatibility()
6626 if (getLangOpts().CPlusPlus) in CheckConditionalOperands()
6634 if (getLangOpts().OpenCL && Cond.get()->getType()->isVectorType()) in CheckConditionalOperands()
6669 if (getLangOpts().OpenCL && in CheckConditionalOperands()
6845 if (getLangOpts().ObjCAutoRefCount) { in FindCompositeObjCPointerType()
6865 if (getLangOpts().ObjCAutoRefCount) { in FindCompositeObjCPointerType()
7011 if (!getLangOpts().CPlusPlus) { in ActOnConditionalOp()
7051 if (!(getLangOpts().CPlusPlus in ActOnConditionalOp()
7215 if (!S.getLangOpts().CPlusPlus && in checkPointerTypesForAssignment()
7238 if (S.getLangOpts().CPlusPlus) in checkBlockPointerTypesForAssignment()
7423 !(getLangOpts().CPlusPlus && LHSType->isEnumeralType())) { in CheckAssignmentConstraints()
7492 if (getLangOpts().ObjC1 && RHSType->isObjCIdType()) { in CheckAssignmentConstraints()
7514 if (getLangOpts().ObjCAutoRefCount && in CheckAssignmentConstraints()
7687 if (getLangOpts().CPlusPlus) { in CheckSingleAssignmentConstraints()
7712 if (getLangOpts().ObjCAutoRefCount && in CheckSingleAssignmentConstraints()
7791 if (getLangOpts().ObjCAutoRefCount && in CheckSingleAssignmentConstraints()
7797 if (getLangOpts().ObjC1 && in CheckSingleAssignmentConstraints()
7842 if (S.getLangOpts().OpenCL && in tryVectorConvertAndSplat()
7848 if (S.getLangOpts().OpenCL && in tryVectorConvertAndSplat()
7979 if (getLangOpts().OpenCL && in CheckVectorOperands()
8053 /*AllowBothBool*/getLangOpts().AltiVec, in CheckMultiplyDivideOperands()
8077 /*AllowBothBool*/getLangOpts().AltiVec, in CheckRemainderOperands()
8095 S.Diag(Loc, S.getLangOpts().CPlusPlus in diagnoseArithmeticOnTwoVoidPointers()
8105 S.Diag(Loc, S.getLangOpts().CPlusPlus in diagnoseArithmeticOnVoidPointer()
8116 S.Diag(Loc, S.getLangOpts().CPlusPlus in diagnoseArithmeticOnTwoFunctionPointers()
8131 S.Diag(Loc, S.getLangOpts().CPlusPlus in diagnoseArithmeticOnFunctionPointer()
8174 return !S.getLangOpts().CPlusPlus; in checkArithmeticOpPointerOperand()
8178 return !S.getLangOpts().CPlusPlus; in checkArithmeticOpPointerOperand()
8206 if (S.getLangOpts().OpenCL && isLHSPointer && isRHSPointer) { in checkArithmeticBinOpPointerOperands()
8226 return !S.getLangOpts().CPlusPlus; in checkArithmeticBinOpPointerOperands()
8237 return !S.getLangOpts().CPlusPlus; in checkArithmeticBinOpPointerOperands()
8359 /*AllowBothBool*/getLangOpts().AltiVec, in CheckAdditionOperands()
8360 /*AllowBoolConversions*/getLangOpts().ZVector); in CheckAdditionOperands()
8437 /*AllowBothBool*/getLangOpts().AltiVec, in CheckSubtractionOperands()
8438 /*AllowBoolConversions*/getLangOpts().ZVector); in CheckSubtractionOperands()
8482 if (getLangOpts().CPlusPlus) { in CheckSubtractionOperands()
8532 if (S.getLangOpts().OpenCL) in DiagnoseBadShiftValues()
9186 if (getLangOpts().CPlusPlus) { in CheckCompareOperands()
9235 if (getLangOpts().OpenCL && !LHSIsNull && !RHSIsNull) { in CheckCompareOperands()
9256 if (getLangOpts().CPlusPlus) { in CheckCompareOperands()
9356 if (getLangOpts().ObjCAutoRefCount) in CheckCompareOperands()
9363 if (getLangOpts().ObjCAutoRefCount) in CheckCompareOperands()
9396 if (IsRelational && !getLangOpts().CPlusPlus) in CheckCompareOperands()
9398 } else if (IsRelational && !getLangOpts().CPlusPlus) in CheckCompareOperands()
9400 else if (getLangOpts().CPlusPlus) { in CheckCompareOperands()
9469 /*AllowBoolConversions*/getLangOpts().ZVector); in CheckVectorCompareOperands()
9477 if (getLangOpts().AltiVec && in CheckVectorCompareOperands()
9517 if (getLangOpts().OpenCL && getLangOpts().OpenCLVersion < 120 && in CheckVectorLogicalOperands()
9534 /*AllowBoolConversions*/getLangOpts().ZVector); in CheckBitwiseOperands()
9573 if ((getLangOpts().Bool && !RHS.get()->getType()->isBooleanType() && in CheckLogicalOperands()
9594 if (!Context.getLangOpts().CPlusPlus) { in CheckLogicalOperands()
9597 if (Context.getLangOpts().OpenCL && in CheckLogicalOperands()
9598 Context.getLangOpts().OpenCLVersion < 120) { in CheckLogicalOperands()
9855 if (S.getLangOpts().ObjCAutoRefCount) { in CheckForModifiableLvalue()
10045 } else if (getLangOpts().ObjCAutoRefCount) { in CheckAssignmentOperands()
10067 return (getLangOpts().CPlusPlus in CheckAssignmentOperands()
10152 if (!S.getLangOpts().CPlusPlus) { in CheckCommaOperands()
10186 if (S.getLangOpts().CPlusPlus && ResType->isBooleanType()) { in CheckIncrementDecrementOperand()
10193 S.Diag(OpLoc, S.getLangOpts().CPlusPlus1z ? diag::ext_increment_bool in CheckIncrementDecrementOperand()
10196 } else if (S.getLangOpts().CPlusPlus && ResType->isEnumeralType()) { in CheckIncrementDecrementOperand()
10221 } else if (S.getLangOpts().AltiVec && ResType->isVectorType()) { in CheckIncrementDecrementOperand()
10223 } else if (S.getLangOpts().ZVector && ResType->isVectorType() && in CheckIncrementDecrementOperand()
10227 } else if(S.getLangOpts().OpenCL && ResType->isVectorType() && in CheckIncrementDecrementOperand()
10242 if (IsPrefix && S.getLangOpts().CPlusPlus) { in CheckIncrementDecrementOperand()
10383 if (getLangOpts().C99) { in CheckAddressOfOperand()
10484 !getLangOpts().CPlusPlus) { in CheckAddressOfOperand()
10606 if (S.getLangOpts().CPlusPlus && Result->isVoidType()) in CheckIndirectionOperand()
10614 if (!S.getLangOpts().CPlusPlus && Result.isCForbiddenLValueType()) in CheckIndirectionOperand()
10718 if (!S.getLangOpts().ObjC1) in checkObjCPointerIntrospection()
10775 if (getLangOpts().CPlusPlus11 && isa<InitListExpr>(RHSExpr)) { in CreateBuiltinBinOp()
10801 if (!getLangOpts().CPlusPlus) { in CreateBuiltinBinOp()
10817 if (getLangOpts().OpenCL) { in CreateBuiltinBinOp()
10845 if (getLangOpts().CPlusPlus && in CreateBuiltinBinOp()
10941 if (getLangOpts().CPlusPlus && !RHS.isInvalid()) { in CreateBuiltinBinOp()
10975 if (getLangOpts().CPlusPlus && LHS.get()->getObjectKind() != in CreateBuiltinBinOp()
11285 if (getLangOpts().CPlusPlus) { in BuildBinOp()
11309 if (getLangOpts().OpenCL) { in CreateBuiltinUnaryOp()
11355 (!Context.getLangOpts().ZVector || in CreateBuiltinUnaryOp()
11359 else if (getLangOpts().CPlusPlus && // C++ [expr.unary.op]p6 in CreateBuiltinUnaryOp()
11382 if (Context.getLangOpts().OpenCL) { in CreateBuiltinUnaryOp()
11404 if (resultType->isHalfType() && !Context.getLangOpts().NativeHalfType) { in CreateBuiltinUnaryOp()
11413 if (Context.getLangOpts().CPlusPlus) { in CreateBuiltinUnaryOp()
11418 } else if (Context.getLangOpts().OpenCL && in CreateBuiltinUnaryOp()
11419 Context.getLangOpts().OpenCLVersion < 120) { in CreateBuiltinUnaryOp()
11427 if (Context.getLangOpts().OpenCL && in CreateBuiltinUnaryOp()
11428 Context.getLangOpts().OpenCLVersion < 120) { in CreateBuiltinUnaryOp()
11458 } else if (!getLangOpts().CPlusPlus) { in CreateBuiltinUnaryOp()
11552 if (getLangOpts().CPlusPlus && Input->getType()->isOverloadableType() && in BuildUnaryOp()
12036 !getLangOpts().CPlusPlus) in ActOnBlockArguments()
12175 if (getLangOpts().CPlusPlus && RetTy->isRecordType() && in ActOnBlockStmtExpr()
12218 if (getLangOpts().CUDA && getLangOpts().CUDAIsDevice) { in BuildVAArgExpr()
12252 } else if (VaListType->isRecordType() && getLangOpts().CPlusPlus) { in BuildVAArgExpr()
12339 if (!getLangOpts().ObjC1) in ConversionToObjCStringLiteralCheck()
12476 if (getLangOpts().CPlusPlus && in DiagnoseAssignmentResult()
12640 if (getLangOpts().CPlusPlus11) { in VerifyIntegerConstantExpression()
12707 if (!getLangOpts().CPlusPlus11 && E->isIntegerConstantExpr(Context)) { in VerifyIntegerConstantExpression()
12725 if (Folded && getLangOpts().CPlusPlus11 && Notes.empty()) { in VerifyIntegerConstantExpression()
13033 if (Destructor->isVirtual() && getLangOpts().AppleKext) in MarkFunctionReferenced()
13053 } else if (MethodDecl->isVirtual() && getLangOpts().AppleKext) in MarkFunctionReferenced()
13152 if (!S.getLangOpts().CPlusPlus && !S.CurContext->isFunctionOrMethod()) in diagnoseUncapturableValueReference()
13319 (S.getLangOpts().OpenMP && S.IsOpenMPCapturedDecl(Var))) { in captureInBlock()
13328 if (S.getLangOpts().CPlusPlus && BuildAndDiagnose) { in captureInBlock()
13390 if (S.getLangOpts().OpenMP && RSI->CapRegionKind == CR_OpenMP) { in captureInCapturedRegion()
13658 if (getLangOpts().OpenMP) { in tryCaptureVariable()
14010 ME->performsVirtualDispatch(SemaRef.getLangOpts()); in MarkExprReferenced()
14044 if (E->performsVirtualDispatch(getLangOpts())) { in MarkMemberReferenced()
14382 if (getLangOpts().CPlusPlus) in CheckBooleanCondition()
14494 if (S.getLangOpts().CPlusPlus && in resolveDecl()
14833 if (!S.getLangOpts().CPlusPlus) in resolveDecl()
14956 if (!getLangOpts().CPlusPlus) { in CheckPlaceholderExpr()