Lines Matching refs:CPlusPlus
256 if (S.getLangOpts().CPlusPlus) in diagnoseUseOfInternalDeclInInlineFunction()
320 if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) { in DiagnoseUseOfDecl()
548 if (getLangOpts().C99 || getLangOpts().CPlusPlus || E->isLValue()) in DefaultFunctionArrayConversion()
648 if (getLangOpts().CPlusPlus && in DefaultLvalueConversion()
837 if (getLangOpts().CPlusPlus && E->isGLValue() && !isUnevaluatedContext()) { in DefaultArgumentPromotion()
995 if (!getLangOpts().CPlusPlus && in DefaultVariadicArgumentPromotion()
1634 if (getLangOpts().CPlusPlus || getLangOpts().ConstStrings) in ActOnStringLiteral()
1998 if (getLangOpts().CPlusPlus && ND->isCXXClassMember()) { in DiagnoseEmptyLookup()
2201 if (R.empty() && HasTrailingLParen && II && !getLangOpts().CPlusPlus) { in ActOnIdExpression()
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()
3398 if (getLangOpts().CPlusPlus) in ActOnNumericConstant()
3472 getLangOpts().CPlusPlus in ActOnNumericConstant()
3554 if (S.LangOpts.CPlusPlus) in CheckExtensionTraitOperandType()
4171 if (getLangOpts().CPlusPlus && in ActOnArraySubscriptExpr()
4200 if (getLangOpts().CPlusPlus && in ActOnArraySubscriptExpr()
4479 if (ResultType->isVoidType() && !getLangOpts().CPlusPlus) { in CreateBuiltinArraySubscriptExpr()
4492 assert(VK == VK_RValue || LangOpts.CPlusPlus || in CreateBuiltinArraySubscriptExpr()
4924 if (!Param || getLangOpts().CPlusPlus) in CheckStaticArrayArgument()
5126 if (getLangOpts().CPlusPlus) { in ActOnCallExpr()
5346 if (!getLangOpts().CPlusPlus) { in BuildResolvedCallExpr()
5557 ExprValueKind VK = getLangOpts().CPlusPlus ? VK_RValue : VK_LValue; in BuildCompoundLiteralExpr()
5946 if (getLangOpts().CPlusPlus) { in ActOnCastExpr()
5997 if (getLangOpts().CPlusPlus && !castType->isVoidType() && in ActOnCastExpr()
6626 if (getLangOpts().CPlusPlus) in CheckConditionalOperands()
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()
7687 if (getLangOpts().CPlusPlus) { in CheckSingleAssignmentConstraints()
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()
8226 return !S.getLangOpts().CPlusPlus; in checkArithmeticBinOpPointerOperands()
8237 return !S.getLangOpts().CPlusPlus; in checkArithmeticBinOpPointerOperands()
8482 if (getLangOpts().CPlusPlus) { in CheckSubtractionOperands()
9186 if (getLangOpts().CPlusPlus) { in CheckCompareOperands()
9256 if (getLangOpts().CPlusPlus) { in CheckCompareOperands()
9396 if (IsRelational && !getLangOpts().CPlusPlus) in CheckCompareOperands()
9398 } else if (IsRelational && !getLangOpts().CPlusPlus) in CheckCompareOperands()
9400 else if (getLangOpts().CPlusPlus) { in CheckCompareOperands()
9594 if (!Context.getLangOpts().CPlusPlus) { in CheckLogicalOperands()
10067 return (getLangOpts().CPlusPlus in CheckAssignmentOperands()
10126 LangOpts.CPlusPlus ? "static_cast<void>(" in DiagnoseCommaOperator()
10152 if (!S.getLangOpts().CPlusPlus) { in CheckCommaOperands()
10186 if (S.getLangOpts().CPlusPlus && ResType->isBooleanType()) { in CheckIncrementDecrementOperand()
10196 } else if (S.getLangOpts().CPlusPlus && ResType->isEnumeralType()) { in CheckIncrementDecrementOperand()
10242 if (IsPrefix && S.getLangOpts().CPlusPlus) { in CheckIncrementDecrementOperand()
10484 !getLangOpts().CPlusPlus) { in CheckAddressOfOperand()
10606 if (S.getLangOpts().CPlusPlus && Result->isVoidType()) in CheckIndirectionOperand()
10614 if (!S.getLangOpts().CPlusPlus && Result.isCForbiddenLValueType()) in CheckIndirectionOperand()
10801 if (!getLangOpts().CPlusPlus) { 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()
11359 else if (getLangOpts().CPlusPlus && // C++ [expr.unary.op]p6 in CreateBuiltinUnaryOp()
11413 if (Context.getLangOpts().CPlusPlus) { in CreateBuiltinUnaryOp()
11458 } else if (!getLangOpts().CPlusPlus) { in CreateBuiltinUnaryOp()
11552 if (getLangOpts().CPlusPlus && Input->getType()->isOverloadableType() && in BuildUnaryOp()
11935 if (LangOpts.CPlusPlus) { in ActOnBlockStart()
12036 !getLangOpts().CPlusPlus) in ActOnBlockArguments()
12175 if (getLangOpts().CPlusPlus && RetTy->isRecordType() && in ActOnBlockStmtExpr()
12252 } else if (VaListType->isRecordType() && getLangOpts().CPlusPlus) { in BuildVAArgExpr()
12476 if (getLangOpts().CPlusPlus && in DiagnoseAssignmentResult()
12603 S.Diag(Loc, diag::err_expr_not_ice) << S.LangOpts.CPlusPlus << SR; in VerifyIntegerConstantExpression()
12631 S.Diag(Loc, diag::ext_expr_not_ice) << SR << S.LangOpts.CPlusPlus; in diagnoseFold()
13152 if (!S.getLangOpts().CPlusPlus && !S.CurContext->isFunctionOrMethod()) in diagnoseUncapturableValueReference()
13328 if (S.getLangOpts().CPlusPlus && BuildAndDiagnose) { in captureInBlock()
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()