Lines Matching refs:LangOptions
56 : LangOpts(new LangOptions()), TargetOpts(new TargetOptions()), in CompilerInvocationBase()
63 LangOpts(new LangOptions(*X.getLangOpts())), in CompilerInvocationBase()
1471 void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, in setLangDefaults()
1606 static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, in ParseLangArgs()
1731 Opts.setGC(LangOptions::GCOnly); in ParseLangArgs()
1733 Opts.setGC(LangOptions::HybridGC); in ParseLangArgs()
1754 } else if (Opts.getGC() != LangOptions::NonGC) { in ParseLangArgs()
1820 Opts.setSignedOverflowBehavior(LangOptions::SOB_Trapping); in ParseLangArgs()
1826 Opts.setSignedOverflowBehavior(LangOptions::SOB_Defined); in ParseLangArgs()
1973 .Case("target", LangOptions::ASMM_Target) in ParseLangArgs()
1974 .Case("no", LangOptions::ASMM_Off) in ParseLangArgs()
1975 .Case("yes", LangOptions::ASMM_On) in ParseLangArgs()
1981 case LangOptions::ASMM_Target: in ParseLangArgs()
1982 Opts.setAddressSpaceMapMangling(LangOptions::ASMM_Target); in ParseLangArgs()
1984 case LangOptions::ASMM_On: in ParseLangArgs()
1985 Opts.setAddressSpaceMapMangling(LangOptions::ASMM_On); in ParseLangArgs()
1987 case LangOptions::ASMM_Off: in ParseLangArgs()
1988 Opts.setAddressSpaceMapMangling(LangOptions::ASMM_Off); in ParseLangArgs()
1994 LangOptions::PragmaMSPointersToMembersKind InheritanceModel = in ParseLangArgs()
1995 llvm::StringSwitch<LangOptions::PragmaMSPointersToMembersKind>( in ParseLangArgs()
1998 LangOptions::PPTMK_FullGeneralitySingleInheritance) in ParseLangArgs()
2000 LangOptions::PPTMK_FullGeneralityMultipleInheritance) in ParseLangArgs()
2002 LangOptions::PPTMK_FullGeneralityVirtualInheritance) in ParseLangArgs()
2003 .Default(LangOptions::PPTMK_BestCase); in ParseLangArgs()
2004 if (InheritanceModel == LangOptions::PPTMK_BestCase) in ParseLangArgs()
2013 LangOptions::DefaultCallingConvention DefaultCC = in ParseLangArgs()
2014 llvm::StringSwitch<LangOptions::DefaultCallingConvention>( in ParseLangArgs()
2016 .Case("cdecl", LangOptions::DCC_CDecl) in ParseLangArgs()
2017 .Case("fastcall", LangOptions::DCC_FastCall) in ParseLangArgs()
2018 .Case("stdcall", LangOptions::DCC_StdCall) in ParseLangArgs()
2019 .Case("vectorcall", LangOptions::DCC_VectorCall) in ParseLangArgs()
2020 .Default(LangOptions::DCC_None); in ParseLangArgs()
2021 if (DefaultCC == LangOptions::DCC_None) in ParseLangArgs()
2027 bool emitError = (DefaultCC == LangOptions::DCC_FastCall || in ParseLangArgs()
2028 DefaultCC == LangOptions::DCC_StdCall) && in ParseLangArgs()
2030 emitError |= DefaultCC == LangOptions::DCC_VectorCall && in ParseLangArgs()
2041 if (Opts.getDefaultCallingConv() != LangOptions::DCC_None) in ParseLangArgs()
2050 Opts.setDefaultCallingConv(LangOptions::DCC_StdCall); in ParseLangArgs()
2138 case 0: Opts.setStackProtector(LangOptions::SSPOff); break; in ParseLangArgs()
2139 case 1: Opts.setStackProtector(LangOptions::SSPOn); break; in ParseLangArgs()
2140 case 2: Opts.setStackProtector(LangOptions::SSPStrong); break; in ParseLangArgs()
2141 case 3: Opts.setStackProtector(LangOptions::SSPReq); break; in ParseLangArgs()
2323 LangOptions &LangOpts = *Res.getLangOpts(); in CreateFromArgs()