Lines Matching refs:getLangOpts
392 getTargetInfo(), getLangOpts())) { in ParseMicrosoftDeclSpecArgs()
537 assert(getLangOpts().DeclSpecKeyword && "__declspec keyword is not enabled"); in ParseMicrosoftDeclSpecs()
699 if (!getLangOpts().ObjC1) in ParseNullabilityTypeSpecifiers()
1496 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_namespace)) { in ParseDeclaration()
1597 return getLangOpts().CPlusPlus; in MightBeDeclarator()
1600 return Context == Declarator::MemberContext && getLangOpts().CPlusPlus11 && in MightBeDeclarator()
1604 return Context == Declarator::MemberContext || getLangOpts().CPlusPlus; in MightBeDeclarator()
1631 (getLangOpts().CPlusPlus && Context == Declarator::FileContext); in MightBeDeclarator()
1634 return getLangOpts().CPlusPlus11 && isCXX11VirtSpecifier(NextToken()); in MightBeDeclarator()
1882 if (getLangOpts().MicrosoftExt) in ParseDeclGroup()
2044 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
2070 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
2095 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
2108 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
2119 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
2130 } else if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace) && in ParseDeclarationAfterDeclaratorAndAttributes()
2273 if (!isTypeSpecifier(DSC) && !getLangOpts().CPlusPlus && in ParseImplicitInt()
2281 if (getLangOpts().CPlusPlus && in ParseImplicitInt()
2290 if (getLangOpts().CPlusPlus && (!SS || SS->isEmpty()) && in ParseImplicitInt()
2291 getLangOpts().MSVCCompat) { in ParseImplicitInt()
2339 << TokenName << TagName << getLangOpts().CPlusPlus in ParseImplicitInt()
2422 getLangOpts().CPlusPlus && in ParseImplicitInt()
2496 if (getLangOpts().CPlusPlus11) in ParseAlignArgument()
2554 if (getLangOpts().CPlusPlus && in DiagnoseMissingSemiAfterTagDefinition()
2704 if (getLangOpts().MSVCCompat && Tok.is(tok::kw__Atomic) && in ParseDeclarationSpecifiers()
2732 if (!getLangOpts().CPlusPlus11 || !isCXX11AttributeSpecifier()) in ParseDeclarationSpecifiers()
2980 if (getLangOpts().CPlusPlus) { in ParseDeclarationSpecifiers()
3031 if (getLangOpts().CPlusPlus && DSContext == DSC_class && in ParseDeclarationSpecifiers()
3047 if (Tok.is(tok::less) && getLangOpts().ObjC1) { in ParseDeclarationSpecifiers()
3075 if (getLangOpts().CPlusPlus && DSContext == DSC_class && in ParseDeclarationSpecifiers()
3108 getLangOpts()); in ParseDeclarationSpecifiers()
3174 if (getLangOpts().CPlusPlus11) { in ParseDeclarationSpecifiers()
3230 if (!getLangOpts().C11) in ParseDeclarationSpecifiers()
3237 if (!getLangOpts().C11) in ParseDeclarationSpecifiers()
3382 if (!getLangOpts().OpenCL || (getLangOpts().OpenCLVersion < 200)) { in ParseDeclarationSpecifiers()
3434 getLangOpts()); in ParseDeclarationSpecifiers()
3438 getLangOpts()); in ParseDeclarationSpecifiers()
3442 getLangOpts()); in ParseDeclarationSpecifiers()
3494 getLangOpts()); in ParseDeclarationSpecifiers()
3501 if (Actions.getLangOpts().OpenCLVersion < 200) { in ParseDeclarationSpecifiers()
3521 if (DS.hasTypeSpecifier() || !getLangOpts().ObjC1) in ParseDeclarationSpecifiers()
3551 const int OpenCLVer = getLangOpts().OpenCLVersion; in ParseDeclarationSpecifiers()
3667 assert(!getLangOpts().CPlusPlus && "C++ declarations not supported"); in ParseStructUnionBody()
3831 Diag(Tok, getLangOpts().CPlusPlus11 ? diag::warn_cxx98_compat_scoped_enum in ParseEnumSpecifier()
3861 (getLangOpts().CPlusPlus11 || getLangOpts().MicrosoftExt || in ParseEnumSpecifier()
3862 getLangOpts().ObjC2); in ParseEnumSpecifier()
3865 if (getLangOpts().CPlusPlus) { in ParseEnumSpecifier()
3963 if ((getLangOpts().CPlusPlus && in ParseEnumSpecifier()
3965 (!getLangOpts().CPlusPlus && !isDeclarationSpecifier(true))) { in ParseEnumSpecifier()
3983 if (getLangOpts().CPlusPlus11) { in ParseEnumSpecifier()
3985 } else if (!getLangOpts().ObjC2) { in ParseEnumSpecifier()
3986 if (getLangOpts().CPlusPlus) in ParseEnumSpecifier()
4041 if (!getLangOpts().CPlusPlus11 || !SS.isSet()) { in ParseEnumSpecifier()
4172 if (Tok.is(tok::r_brace) && !getLangOpts().CPlusPlus) in ParseEnumBody()
4198 if (getLangOpts().CPlusPlus11 && isCXX11AttributeSpecifier()) { in ParseEnumBody()
4199 if (!getLangOpts().CPlusPlus1z) in ParseEnumBody()
4253 if (!getLangOpts().C99 && !getLangOpts().CPlusPlus11) in ParseEnumBody()
4254 Diag(CommaLoc, getLangOpts().CPlusPlus ? in ParseEnumBody()
4258 else if (getLangOpts().CPlusPlus11) in ParseEnumBody()
4433 return getLangOpts().ObjC1; in isTypeSpecifierQualifier()
4479 return getLangOpts().OpenCL && (getLangOpts().OpenCLVersion >= 200); in isDeclarationSpecifier()
4483 if (getLangOpts().ObjC1 && NextToken().is(tok::period)) in isDeclarationSpecifier()
4611 return getLangOpts().ObjC1; in isDeclarationSpecifier()
4692 if (getLangOpts().CPlusPlus11 && in isConstructorDeclarator()
4790 if (getLangOpts().CPlusPlus11 && (AttrReqs & AR_CXX11AttributesParsed) && in ParseTypeQualifierListOpt()
4812 getLangOpts()); in ParseTypeQualifierListOpt()
4816 getLangOpts()); in ParseTypeQualifierListOpt()
4820 getLangOpts()); in ParseTypeQualifierListOpt()
4826 getLangOpts()); in ParseTypeQualifierListOpt()
4843 getLangOpts()); in ParseTypeQualifierListOpt()
4848 if ((AttrReqs & AR_DeclspecAttributesParsed) && !getLangOpts().CPlusPlus && in ParseTypeQualifierListOpt()
4998 if (getLangOpts().CPlusPlus && in ParseDeclaratorInternal()
5052 if (!isPtrOperatorToken(Kind, getLangOpts(), D.getContext())) { in ParseDeclaratorInternal()
5101 Diag(Loc, getLangOpts().CPlusPlus11 ? in ParseDeclaratorInternal()
5210 if (getLangOpts().CPlusPlus && D.mayHaveIdentifier()) { in ParseDirectDeclarator()
5217 getLangOpts().CPlusPlus11)); in ParseDirectDeclarator()
5251 if (isPtrOperatorToken(Tok.getKind(), getLangOpts(), D.getContext())) { in ParseDirectDeclarator()
5316 assert(!getLangOpts().CPlusPlus && in ParseDirectDeclarator()
5375 } else if (getLangOpts().CPlusPlus) { in ParseDirectDeclarator()
5382 << getLangOpts().CPlusPlus; in ParseDirectDeclarator()
5386 << getLangOpts().CPlusPlus; in ParseDirectDeclarator()
5418 if (getLangOpts().CPlusPlus && D.mayBeFollowedByCXXDirectInit()) { in ParseDirectDeclarator()
5497 (getLangOpts().CPlusPlus && Tok.is(tok::ellipsis) && in ParseParenDeclarator()
5627 HasProto = ParamInfo.size() || getLangOpts().CPlusPlus; in ParseFunctionDeclarator()
5635 if (getLangOpts().CPlusPlus) { in ParseFunctionDeclarator()
5662 getLangOpts().CPlusPlus11 && in ParseFunctionDeclarator()
5673 !getLangOpts().CPlusPlus14 in ParseFunctionDeclarator()
5712 if (getLangOpts().CPlusPlus11 && Tok.is(tok::arrow)) { in ParseFunctionDeclarator()
5753 Diag(Tok, getLangOpts().CPlusPlus11 ? in ParseRefQualifier()
5770 return !getLangOpts().CPlusPlus in isFunctionDeclaratorIdentifierList()
5985 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParseParameterDeclarationClause()
6008 if (!getLangOpts().CPlusPlus) { in ParseParameterDeclarationClause()
6129 if (getLangOpts().CPlusPlus) { in ParseBracketDeclarator()
6242 << getLangOpts().CPlusPlus in ParseMisplacedBracketDeclarator()
6250 << getLangOpts().CPlusPlus in ParseMisplacedBracketDeclarator()