reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Frontend/CompilerInvocation.cpp
 2192     Opts.AsmPreprocessor = 1;
 2194     Opts.ObjC = 1;
 2246   Opts.LineComment = Std.hasLineComments();
 2247   Opts.C99 = Std.isC99();
 2248   Opts.C11 = Std.isC11();
 2249   Opts.C17 = Std.isC17();
 2250   Opts.C2x = Std.isC2x();
 2251   Opts.CPlusPlus = Std.isCPlusPlus();
 2252   Opts.CPlusPlus11 = Std.isCPlusPlus11();
 2253   Opts.CPlusPlus14 = Std.isCPlusPlus14();
 2254   Opts.CPlusPlus17 = Std.isCPlusPlus17();
 2255   Opts.CPlusPlus2a = Std.isCPlusPlus2a();
 2256   Opts.Digraphs = Std.hasDigraphs();
 2257   Opts.GNUMode = Std.isGNUMode();
 2258   Opts.GNUInline = !Opts.C99 && !Opts.CPlusPlus;
 2258   Opts.GNUInline = !Opts.C99 && !Opts.CPlusPlus;
 2258   Opts.GNUInline = !Opts.C99 && !Opts.CPlusPlus;
 2259   Opts.GNUCVersion = 0;
 2260   Opts.HexFloats = Std.hasHexFloats();
 2261   Opts.ImplicitInt = Std.hasImplicitInt();
 2264   Opts.OpenCL = Std.isOpenCL();
 2266     Opts.OpenCLVersion = 100;
 2268     Opts.OpenCLVersion = 110;
 2270     Opts.OpenCLVersion = 120;
 2272     Opts.OpenCLVersion = 200;
 2274     Opts.OpenCLCPlusPlusVersion = 100;
 2277   if (Opts.OpenCL) {
 2278     Opts.AltiVec = 0;
 2279     Opts.ZVector = 0;
 2280     Opts.setLaxVectorConversions(LangOptions::LaxVectorConversionKind::None);
 2281     Opts.setDefaultFPContractMode(LangOptions::FPC_On);
 2282     Opts.NativeHalfType = 1;
 2283     Opts.NativeHalfArgsAndReturns = 1;
 2284     Opts.OpenCLCPlusPlus = Opts.CPlusPlus;
 2284     Opts.OpenCLCPlusPlus = Opts.CPlusPlus;
 2287     if (Opts.IncludeDefaultHeader) {
 2288       if (Opts.DeclareOpenCLBuiltins) {
 2297   Opts.HIP = IK.getLanguage() == Language::HIP;
 2298   Opts.CUDA = IK.getLanguage() == Language::CUDA || Opts.HIP;
 2298   Opts.CUDA = IK.getLanguage() == Language::CUDA || Opts.HIP;
 2299   if (Opts.CUDA)
 2301     Opts.setDefaultFPContractMode(LangOptions::FPC_Fast);
 2303   Opts.RenderScript = IK.getLanguage() == Language::RenderScript;
 2304   if (Opts.RenderScript) {
 2305     Opts.NativeHalfType = 1;
 2306     Opts.NativeHalfArgsAndReturns = 1;
 2310   Opts.Bool = Opts.OpenCL || Opts.CPlusPlus;
 2310   Opts.Bool = Opts.OpenCL || Opts.CPlusPlus;
 2310   Opts.Bool = Opts.OpenCL || Opts.CPlusPlus;
 2313   Opts.Half = Opts.OpenCL;
 2313   Opts.Half = Opts.OpenCL;
 2316   Opts.WChar = Opts.CPlusPlus;
 2316   Opts.WChar = Opts.CPlusPlus;
 2318   Opts.GNUKeywords = Opts.GNUMode;
 2318   Opts.GNUKeywords = Opts.GNUMode;
 2319   Opts.CXXOperatorNames = Opts.CPlusPlus;
 2319   Opts.CXXOperatorNames = Opts.CPlusPlus;
 2321   Opts.AlignedAllocation = Opts.CPlusPlus17;
 2321   Opts.AlignedAllocation = Opts.CPlusPlus17;
 2323   Opts.DollarIdents = !Opts.AsmPreprocessor;
 2323   Opts.DollarIdents = !Opts.AsmPreprocessor;
 2326   Opts.DoubleSquareBracketAttributes = Opts.CPlusPlus11 || Opts.C2x;
 2326   Opts.DoubleSquareBracketAttributes = Opts.CPlusPlus11 || Opts.C2x;
 2326   Opts.DoubleSquareBracketAttributes = Opts.CPlusPlus11 || Opts.C2x;