Lines Matching refs:CPlusPlus
124 return getLangOpts().CPlusPlus; in isSimpleTypeSpecifier()
356 !(getLangOpts().CPlusPlus && NewSSPtr && in getTypeName()
648 if (getLangOpts().CPlusPlus) { in DiagnoseUnknownTypeName()
696 bool CheckTemplate = R.getSema().getLangOpts().CPlusPlus && in isResultTypeOrTemplate()
742 << Name << TagName << SemaRef.getLangOpts().CPlusPlus in isTagTypeWithMissingTag()
819 if (getLangOpts().CPlusPlus) in ClassifyName()
844 if (!getLangOpts().CPlusPlus && !SecondTry && in ClassifyName()
862 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
943 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
967 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
1233 if (Context.getLangOpts().CPlusPlus) in AllowOverloadingOfFunction()
1259 if (getLangOpts().CPlusPlus && D->isOutOfLine() && in PushOnScopeChains()
1739 (S->isClassScope() && !getLangOpts().CPlusPlus)) in getNonFieldDeclScope()
1808 if (getLangOpts().CPlusPlus) { in LazilyCreateBuiltin()
1886 if (S.getLangOpts().CPlusPlus && in filterNonConflictingPreviousTypedefDecls()
2005 if (getLangOpts().CPlusPlus && OldTag && NewTag && in MergeTypedefNameDecl()
2050 if (getLangOpts().CPlusPlus) { in MergeTypedefNameDecl()
2645 !LangOpts.CPlusPlus && in canRedefineFunction()
2917 if (getLangOpts().CPlusPlus) { in MergeFunctionDecl()
3119 if (!getLangOpts().CPlusPlus && in MergeFunctionDecl()
3165 if (!getLangOpts().CPlusPlus && in MergeFunctionDecl()
3286 if (getLangOpts().CPlusPlus) in MergeCompatibleFunctionDecls()
3350 if (getLangOpts().CPlusPlus) { in MergeVarDeclTypes()
3444 if (S.getLangOpts().CPlusPlus) { in mergeTypeWithPrevious()
3661 if (getLangOpts().CPlusPlus && in MergeVarDecl()
3733 if (!Context.getLangOpts().CPlusPlus) in handleTagNumbering()
3774 if (getLangOpts().CPlusPlus) in setTagNameForLinkagePurposes()
3925 if (getLangOpts().CPlusPlus || in ParsedFreeStandingDeclSpec()
3950 if (!getLangOpts().CPlusPlus && CurContext->isRecord() && in ParsedFreeStandingDeclSpec()
3985 if (getLangOpts().CPlusPlus && in ParsedFreeStandingDeclSpec()
4033 if (getLangOpts().CPlusPlus) in ParsedFreeStandingDeclSpec()
4254 if (Record->isUnion() && !getLangOpts().CPlusPlus && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
4256 else if (!Record->isUnion() && getLangOpts().CPlusPlus) in BuildAnonymousStructOrUnion()
4264 if (getLangOpts().CPlusPlus) { in BuildAnonymousStructOrUnion()
4417 << getLangOpts().CPlusPlus; in BuildAnonymousStructOrUnion()
4438 if (getLangOpts().CPlusPlus) in BuildAnonymousStructOrUnion()
4483 if (getLangOpts().CPlusPlus && NewVD->isStaticLocal()) { in BuildAnonymousStructOrUnion()
5091 if (getLangOpts().CPlusPlus) in HandleDeclarator()
5275 if (!getLangOpts().CPlusPlus && in RegisterLocallyScopedExternCDecl()
5450 if (Context.getLangOpts().CPlusPlus) { in isOutOfScopePreviousDeclaration()
5714 if (S.getLangOpts().CPlusPlus && !FD->hasAttr<GNUInlineAttr>()) in isFunctionDefinitionDiscarded()
5755 if (S.getLangOpts().CPlusPlus) { in isIncompleteDeclExternC()
5975 if (!getLangOpts().CPlusPlus) { in ActOnVariableDeclarator()
6377 if (getLangOpts().CPlusPlus && in ActOnVariableDeclarator()
6383 if (!getLangOpts().CPlusPlus) { in ActOnVariableDeclarator()
6468 if (getLangOpts().CPlusPlus && NewVD->isStaticLocal()) { in ActOnVariableDeclarator()
6486 if (getLangOpts().CPlusPlus) in ActOnVariableDeclarator()
6620 if (!getLangOpts().CPlusPlus || ShadowingDecls.empty()) in CheckShadowingDeclModification()
6645 assert(S.getLangOpts().CPlusPlus && "only C++ has extern \"C\""); in checkGlobalOrExternCConflict()
6728 if (!S.getLangOpts().CPlusPlus) { in checkForConflictWithNonVisibleExternC()
6938 if (NewVD->isThisDeclarationADefinition() || getLangOpts().CPlusPlus) { in CheckVariableDeclarationType()
7346 if (!SemaRef.getLangOpts().CPlusPlus) { in CreateNewFunctionDecl()
7463 SemaRef.getLangOpts().CPlusPlus && D.getDeclSpec().isFriendSpecified(); in CreateNewFunctionDecl()
7709 if (getLangOpts().CPlusPlus) { in ActOnFunctionDeclarator()
8210 if (!getLangOpts().CPlusPlus) { in ActOnFunctionDeclarator()
8555 if (getLangOpts().CPlusPlus) { in ActOnFunctionDeclarator()
8643 bool MergeTypeWithPrevious = !getLangOpts().CPlusPlus && in CheckFunctionDeclaration()
8678 if (!getLangOpts().CPlusPlus && !NewFD->hasAttr<OverloadableAttr>()) { in CheckFunctionDeclaration()
8708 if (!getLangOpts().CPlusPlus && !NewFD->hasAttr<OverloadableAttr>()) { in CheckFunctionDeclaration()
8811 if (getLangOpts().CPlusPlus) { in CheckFunctionDeclaration()
8913 Diag(DS.getStorageClassSpecLoc(), getLangOpts().CPlusPlus in CheckMain()
8943 if (getLangOpts().GNUMode && !getLangOpts().CPlusPlus) { in CheckMain()
9633 if (getLangOpts().CPlusPlus) { in AddInitializerToDecl()
9796 if (!getLangOpts().CPlusPlus && !VDecl->isInvalidDecl()) { in AddInitializerToDecl()
9909 (!getLangOpts().CPlusPlus || in AddInitializerToDecl()
9916 if (!getLangOpts().CPlusPlus && !VDecl->isInvalidDecl()) in AddInitializerToDecl()
10175 if (getLangOpts().CPlusPlus && Var->hasLocalStorage()) { in ActOnUninitializedDecl()
10352 } else if (getLangOpts().CPlusPlus && var->hasInit() && in CheckCompleteVariableDeclaration()
10399 if (!getLangOpts().CPlusPlus) return; in CheckCompleteVariableDeclaration()
10648 << LangOpts.CPlusPlus << MagicValueExpr->getSourceRange(); in FinalizeDeclaration()
10654 << LangOpts.CPlusPlus << MagicValueExpr->getSourceRange(); in FinalizeDeclaration()
10686 getLangOpts().CPlusPlus) in FinalizeDeclaratorGroup()
10801 } else if (getLangOpts().CPlusPlus && in ActOnParamDeclarator()
10827 if (getLangOpts().CPlusPlus) { in ActOnParamDeclarator()
11176 << FD->getDeclName() << getLangOpts().CPlusPlus; in CheckForFunctionRedefinition()
11527 if (getLangOpts().CPlusPlus && FD->getReturnType()->isRecordType() && in ActOnFinishFunctionBody()
11903 if ((!getLangOpts().CPlusPlus && in AddKnownFunctionAttributes()
12239 (LangOpts.CPlusPlus && in getTagInjectionScope()
12495 if (!getLangOpts().CPlusPlus && TUK != TUK_Reference) { in ActOnTag()
12513 if (getLangOpts().CPlusPlus && Name && DC && StdNamespace && in ActOnTag()
12583 if (getLangOpts().CPlusPlus) { in ActOnTag()
12609 if (getLangOpts().CPlusPlus) { in ActOnTag()
12768 if (SkipBody && getLangOpts().CPlusPlus && in ActOnTag()
12781 if (!getLangOpts().CPlusPlus && S->containedInPrototypeScope()) in ActOnTag()
12930 else if (getLangOpts().CPlusPlus) in ActOnTag()
12955 if (getLangOpts().CPlusPlus) { in ActOnTag()
12969 if (getLangOpts().CPlusPlus && IsTypeSpecifier && TUK == TUK_Definition) { in ActOnTag()
13035 if (getLangOpts().CPlusPlus) { in ActOnTag()
13111 return (Invalid && getLangOpts().CPlusPlus) ? nullptr : New; in ActOnTag()
13295 BitfieldIsOverwide && !getLangOpts().CPlusPlus; in VerifyBitField()
13352 if (getLangOpts().CPlusPlus) { in HandleField()
13577 if (!InvalidDecl && getLangOpts().CPlusPlus) { in CheckFieldDecl()
13630 assert(getLangOpts().CPlusPlus && "valid check only for C++"); in CheckNontrivialField()
13929 getLangOpts().CPlusPlus) && in ActOnFields()
13939 : getLangOpts().CPlusPlus in ActOnFields()
13945 : getLangOpts().CPlusPlus in ActOnFields()
14025 (!getLangOpts().CPlusPlus || Record->isUnion())) { in ActOnFields()
14152 if (!getLangOpts().CPlusPlus) { in ActOnFields()
14186 Diag(RecLoc, getLangOpts().CPlusPlus ? in ActOnFields()
14194 if (NonBitFields == 0 && !getLangOpts().CPlusPlus) { in ActOnFields()
14361 } else if (getLangOpts().CPlusPlus) { in CheckEnumConstant()
14457 if (!getLangOpts().CPlusPlus && !T.isNull()) in CheckEnumConstant()
14459 } else if (!getLangOpts().CPlusPlus && in CheckEnumConstant()
14482 !getLangOpts().CPlusPlus) in shouldSkipAnonEnumBody()
14545 assert((getLangOpts().CPlusPlus || !isa<TagDecl>(PrevDecl)) && in ActOnEnumConstant()
14907 = (NumPositiveBits == BestWidth || !getLangOpts().CPlusPlus) in ActOnEnumBody()
14913 = (NumPositiveBits == BestWidth || !getLangOpts().CPlusPlus) in ActOnEnumBody()
14921 = (NumPositiveBits == BestWidth || !getLangOpts().CPlusPlus) in ActOnEnumBody()
14946 if (!getLangOpts().CPlusPlus && in ActOnEnumBody()
14954 if (getLangOpts().CPlusPlus) in ActOnEnumBody()
14979 if (getLangOpts().CPlusPlus) in ActOnEnumBody()