Lines Matching refs:LangOpts
101 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
104 .Case("altivec", LangOpts.AltiVec) in hasFeature()
105 .Case("blocks", LangOpts.Blocks) in hasFeature()
106 .Case("coroutines", LangOpts.Coroutines) in hasFeature()
107 .Case("cplusplus", LangOpts.CPlusPlus) in hasFeature()
108 .Case("cplusplus11", LangOpts.CPlusPlus11) in hasFeature()
109 .Case("cplusplus14", LangOpts.CPlusPlus14) in hasFeature()
110 .Case("cplusplus17", LangOpts.CPlusPlus17) in hasFeature()
111 .Case("c99", LangOpts.C99) in hasFeature()
112 .Case("c11", LangOpts.C11) in hasFeature()
113 .Case("c17", LangOpts.C17) in hasFeature()
114 .Case("freestanding", LangOpts.Freestanding) in hasFeature()
115 .Case("gnuinlineasm", LangOpts.GNUAsm) in hasFeature()
116 .Case("objc", LangOpts.ObjC) in hasFeature()
117 .Case("objc_arc", LangOpts.ObjCAutoRefCount) in hasFeature()
118 .Case("opencl", LangOpts.OpenCL) in hasFeature()
120 .Case("zvector", LangOpts.ZVector) in hasFeature()
124 HasFeature = std::find(LangOpts.ModuleFeatures.begin(), in hasFeature()
125 LangOpts.ModuleFeatures.end(), in hasFeature()
126 Feature) != LangOpts.ModuleFeatures.end(); in hasFeature()
130 bool Module::isUnimportable(const LangOptions &LangOpts, in isUnimportable() argument
142 if (hasFeature(Current->Requirements[I].first, LangOpts, Target) != in isUnimportable()
153 bool Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, in isAvailable() argument
160 if (isUnimportable(LangOpts, Target, Req, ShadowingModule)) in isAvailable()
291 const LangOptions &LangOpts, in addRequirement() argument
296 if (hasFeature(Feature, LangOpts, Target) == RequiredState) in addRequirement()