Lines Matching refs:CPlusPlus
417 !(getLangOpts().CPlusPlus && NewSSPtr && in getTypeName()
746 if (getLangOpts().CPlusPlus && !IsTemplateName) { in DiagnoseUnknownTypeName()
795 bool CheckTemplate = R.getSema().getLangOpts().CPlusPlus && in isResultTypeOrTemplate()
841 << Name << TagName << SemaRef.getLangOpts().CPlusPlus in isTagTypeWithMissingTag()
868 if (getLangOpts().CPlusPlus && SS.isSet() && in ClassifyName()
919 if (getLangOpts().CPlusPlus) in ClassifyName()
955 if (!getLangOpts().CPlusPlus && !SecondTry && in ClassifyName()
972 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
1054 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
1079 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
1228 assert(getLangOpts().CPlusPlus && "ADL-only call in C?"); in ActOnNameClassifiedAsUndeclaredNonType()
1472 if (Context.getLangOpts().CPlusPlus || New->hasAttr<OverloadableAttr>()) in AllowOverloadingOfFunction()
1510 if (getLangOpts().CPlusPlus && D->isOutOfLine() && !S->getFnParent()) in PushOnScopeChains()
2230 getLangOpts().CPlusPlus) in ActOnPopScope()
2263 (S->isClassScope() && !getLangOpts().CPlusPlus)) in getNonFieldDeclScope()
2289 if (getLangOpts().CPlusPlus) { in CreateBuiltin()
2580 if (getLangOpts().CPlusPlus) { in MergeTypedefNameDecl()
2993 if (!S.getLangOpts().CPlusPlus) { in checkNewAttributesAfterDef()
3408 !LangOpts.CPlusPlus && in canRedefineFunction()
3631 if (!getLangOpts().CPlusPlus) { in MergeFunctionDecl()
3861 if (getLangOpts().CPlusPlus) { in MergeFunctionDecl()
4071 if (!getLangOpts().CPlusPlus) { in MergeFunctionDecl()
4191 if (!getLangOpts().CPlusPlus && in MergeFunctionDecl()
4291 if (getLangOpts().CPlusPlus) in MergeCompatibleFunctionDecls()
4349 if (getLangOpts().CPlusPlus) { in MergeVarDeclTypes()
4443 if (S.getLangOpts().CPlusPlus) { in mergeTypeWithPrevious()
4660 if (getLangOpts().CPlusPlus) { in MergeVarDecl()
4797 if (!Context.getLangOpts().CPlusPlus) in handleTagNumbering()
4921 if (getLangOpts().CPlusPlus) in setTagNameForLinkagePurposes()
5080 if (getLangOpts().CPlusPlus || in ParsedFreeStandingDeclSpec()
5105 if (!getLangOpts().CPlusPlus && CurContext->isRecord() && in ParsedFreeStandingDeclSpec()
5140 if (getLangOpts().CPlusPlus && in ParsedFreeStandingDeclSpec()
5191 if (getLangOpts().CPlusPlus) in ParsedFreeStandingDeclSpec()
5235 if (AL.isAlignas() && !getLangOpts().CPlusPlus) in ParsedFreeStandingDeclSpec()
5296 if (!getLangOpts().CPlusPlus) in DiagPlaceholderFieldDeclDefinitions()
5455 if (Record->isUnion() && !getLangOpts().CPlusPlus && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
5457 else if (!Record->isUnion() && getLangOpts().CPlusPlus) in BuildAnonymousStructOrUnion()
5465 if (getLangOpts().CPlusPlus) { in BuildAnonymousStructOrUnion()
5624 << getLangOpts().CPlusPlus; in BuildAnonymousStructOrUnion()
5637 if (getLangOpts().CPlusPlus && Record->field_empty()) in BuildAnonymousStructOrUnion()
5657 if (getLangOpts().CPlusPlus) in BuildAnonymousStructOrUnion()
5704 if (getLangOpts().CPlusPlus && NewVD->isStaticLocal()) { in BuildAnonymousStructOrUnion()
6384 if (getLangOpts().CPlusPlus) in HandleDeclarator()
6582 if (!getLangOpts().CPlusPlus && in RegisterLocallyScopedExternCDecl()
6775 if (Context.getLangOpts().CPlusPlus) { in isOutOfScopePreviousDeclaration()
7105 if (S.getLangOpts().CPlusPlus && !FD->hasAttr<GNUInlineAttr>()) in isFunctionDefinitionDiscarded()
7130 if (S.getLangOpts().CPlusPlus) { in isIncompleteDeclExternC()
7383 if (LangOpts.CPlusPlus && (DC->isClosure() || DC->isFunctionOrMethod()) && in ActOnVariableDeclarator()
7456 if (!getLangOpts().CPlusPlus) { in ActOnVariableDeclarator()
7673 if (!getLangOpts().CPlusPlus) { in ActOnVariableDeclarator()
7957 if (getLangOpts().CPlusPlus && in ActOnVariableDeclarator()
7963 if (!getLangOpts().CPlusPlus) { in ActOnVariableDeclarator()
8041 if (getLangOpts().CPlusPlus && NewVD->isStaticLocal()) { in ActOnVariableDeclarator()
8061 if (getLangOpts().CPlusPlus) in ActOnVariableDeclarator()
8334 if (!getLangOpts().CPlusPlus || ShadowingDecls.empty()) in CheckShadowingDeclModification()
8359 assert(S.getLangOpts().CPlusPlus && "only C++ has extern \"C\""); in checkGlobalOrExternCConflict()
8442 if (!S.getLangOpts().CPlusPlus) { in checkForConflictWithNonVisibleExternC()
8726 if (NewVD->isThisDeclarationADefinition() || getLangOpts().CPlusPlus) { in CheckVariableDeclarationType()
9158 if (!SemaRef.getLangOpts().CPlusPlus) { in CreateNewFunctionDecl()
9293 SemaRef.getLangOpts().CPlusPlus && D.getDeclSpec().isFriendSpecified(); in CreateNewFunctionDecl()
9629 (LangOpts.CPlusPlus && in getTagInjectionScope()
9728 if (getLangOpts().CPlusPlus) { in ActOnFunctionDeclarator()
10178 if (!getLangOpts().CPlusPlus) { in ActOnFunctionDeclarator()
10308 if (!getLangOpts().CPlusPlus) { in ActOnFunctionDeclarator()
10758 if (getLangOpts().CPlusPlus) { in ActOnFunctionDeclarator()
11803 bool MergeTypeWithPrevious = !getLangOpts().CPlusPlus && in CheckFunctionDeclaration()
11997 } else if (!getLangOpts().CPlusPlus && MayNeedOverloadableChecks && in CheckFunctionDeclaration()
12027 if (getLangOpts().CPlusPlus) { in CheckFunctionDeclaration()
12222 Diag(DS.getStorageClassSpecLoc(), getLangOpts().CPlusPlus in CheckMain()
12265 if (getLangOpts().GNUMode && !getLangOpts().CPlusPlus) { in CheckMain()
13374 if (getLangOpts().CPlusPlus) { in AddInitializerToDecl()
13511 if (getLangOpts().CPlusPlus) in AddInitializerToDecl()
13578 } else if (getLangOpts().CPlusPlus) { in AddInitializerToDecl()
13707 ((!getLangOpts().CPlusPlus && !VDecl->hasAttr<SelectAnyAttr>()) || in AddInitializerToDecl()
13709 !(getLangOpts().CPlusPlus && VDecl->isExternC()) && in AddInitializerToDecl()
13717 getLangOpts().CPlusPlus && VDecl->getType().isConstQualified() && in AddInitializerToDecl()
13723 if (!getLangOpts().CPlusPlus && !VDecl->isInvalidDecl() && in AddInitializerToDecl()
14037 if (getLangOpts().CPlusPlus && Var->hasLocalStorage()) { in ActOnUninitializedDecl()
14256 } else if (getLangOpts().CPlusPlus && var->hasInit()) { in CheckCompleteVariableDeclaration()
14336 if ((getLangOpts().CPlusPlus || (getLangOpts().C23 && var->isConstexpr())) && in CheckCompleteVariableDeclaration()
14458 if (!getLangOpts().CPlusPlus) { in CheckCompleteVariableDeclaration()
14670 << LangOpts.CPlusPlus << MagicValueExpr->getSourceRange(); in FinalizeDeclaration()
14676 << LangOpts.CPlusPlus << MagicValueExpr->getSourceRange(); in FinalizeDeclaration()
14759 getLangOpts().CPlusPlus) in FinalizeDeclaratorGroup()
14846 if (getLangOpts().CPlusPlus) in CheckFunctionOrTemplateParamDeclarator()
14884 assert(S.getLangOpts().CPlusPlus && in CheckExplicitObjectParameter()
14920 } else if (getLangOpts().CPlusPlus && in ActOnParamDeclarator()
15350 << FD << getLangOpts().CPlusPlus; in CheckForFunctionRedefinition()
15845 } else if (getLangOpts().CPlusPlus && isLambdaCallOperator(FD)) { in ActOnFinishFunctionBody()
15896 (!getLangOpts().CPlusPlus || !FD->isDependentContext())) in ActOnFinishFunctionBody()
16610 if ((!getLangOpts().CPlusPlus && FD->getDeclContext()->isTranslationUnit()) || in AddKnownFunctionAttributes()
16786 return getLangOpts().CPlusPlus ? NTK_NonClass : NTK_NonStruct; in getNonTagTypeDeclKind()
17132 assert(!getLangOpts().CPlusPlus && "not meant for C++ usage"); in ActOnTag()
17311 if (!getLangOpts().CPlusPlus && TUK != TagUseKind::Reference) { in ActOnTag()
17318 } else if (getLangOpts().CPlusPlus) { in ActOnTag()
17325 } else if (getLangOpts().CPlusPlus) { in ActOnTag()
17340 if (getLangOpts().CPlusPlus && Name && DC && StdNamespace && in ActOnTag()
17419 if (getLangOpts().CPlusPlus) { in ActOnTag()
17446 if (getLangOpts().CPlusPlus) { in ActOnTag()
17607 if (!getLangOpts().CPlusPlus) { in ActOnTag()
17625 if (!getLangOpts().CPlusPlus && S->containedInPrototypeScope()) in ActOnTag()
17772 else if (getLangOpts().CPlusPlus) in ActOnTag()
17795 if (getLangOpts().CPlusPlus) { in ActOnTag()
17809 !getLangOpts().CPlusPlus && !getLangOpts().C23) in ActOnTag()
17815 if (!Invalid && getLangOpts().CPlusPlus && in ActOnTag()
17823 if (!Invalid && getLangOpts().CPlusPlus && TUK == TagUseKind::Definition && in ActOnTag()
17888 if (getLangOpts().CPlusPlus) { in ActOnTag()
17972 if (Invalid && getLangOpts().CPlusPlus) { in ActOnTag()
18199 BitfieldIsOverwide && !getLangOpts().CPlusPlus; in VerifyBitField()
18250 if (getLangOpts().CPlusPlus) { in HandleField()
18390 if (!InvalidDecl && getLangOpts().CPlusPlus && !II && BitWidth && in CheckFieldDecl()
18461 if (!InvalidDecl && getLangOpts().CPlusPlus) { in CheckFieldDecl()
18519 assert(getLangOpts().CPlusPlus && "valid check only for C++"); in CheckNontrivialField()
19011 !getLangOpts().CPlusPlus && !FD->hasAttr<UnavailableAttr>() && in ActOnFields()
19040 if (Record && !getLangOpts().CPlusPlus && in ActOnFields()
19183 if (!getLangOpts().CPlusPlus && in ActOnFields()
19218 if (!getLangOpts().CPlusPlus) { in ActOnFields()
19252 Diag(RecLoc, getLangOpts().CPlusPlus ? in ActOnFields()
19260 if (NonBitFields == 0 && !getLangOpts().CPlusPlus) { in ActOnFields()
19434 } else if (getLangOpts().CPlusPlus) { in CheckEnumConstant()
19530 if (!getLangOpts().CPlusPlus && !T.isNull()) in CheckEnumConstant()
19532 } else if (!getLangOpts().CPlusPlus && in CheckEnumConstant()
19556 !getLangOpts().CPlusPlus) in shouldSkipAnonEnumBody()
19610 if (getLangOpts().CPlusPlus && !TheEnumDecl->isScoped()) in ActOnEnumConstant()
19627 assert((getLangOpts().CPlusPlus || !isa<TagDecl>(PrevDecl)) && in ActOnEnumConstant()
19970 = (NumPositiveBits == BestWidth || !getLangOpts().CPlusPlus) in ActOnEnumBody()
19976 = (NumPositiveBits == BestWidth || !getLangOpts().CPlusPlus) in ActOnEnumBody()
19989 = (NumPositiveBits == BestWidth || !getLangOpts().CPlusPlus) in ActOnEnumBody()
20014 if (!getLangOpts().CPlusPlus && in ActOnEnumBody()
20022 if (getLangOpts().CPlusPlus) in ActOnEnumBody()
20045 if (getLangOpts().CPlusPlus) in ActOnEnumBody()