| 2095 | * Description of Clang_Macro___Has_Builtin fix |
| 2096 | */ |
| 2097 | tSCC zClang_Macro___Has_BuiltinName[] = |
| 2098 | "clang_macro___has_builtin"; |
| 2099 | |
| 2100 | /* |
| 2101 | * File name selection pattern |
| 2102 | */ |
| 2103 | #define zClang_Macro___Has_BuiltinList (char*)NULL |
| 2104 | /* |
| 2105 | * Machine/OS name selection pattern |
| 2106 | */ |
| 2107 | #define apzClang_Macro___Has_BuiltinMachs (const char**)NULL |
| 2108 | |
| 2109 | /* |
| 2110 | * content selection pattern - do fix if pattern found |
| 2111 | */ |
| 2112 | tSCC zClang_Macro___Has_BuiltinSelect0[] = |
| 2113 | "__has_builtin"; |
| 2114 | |
| 2115 | /* |
| 2116 | * content bypass pattern - skip fix if pattern found |
| 2117 | */ |
| 2118 | tSCC zClang_Macro___Has_BuiltinBypass0[] = |
| 2119 | "#[ \t]*define[ \t]+__has_builtin"; |
| 2120 | |
| 2121 | #define CLANG_MACRO___HAS_BUILTIN_TEST_CT 2 |
| 2122 | static tTestDesc aClang_Macro___Has_BuiltinTests[] = { |
| 2123 | { TT_NEGREP, zClang_Macro___Has_BuiltinBypass0, (regex_t*)NULL }, |
| 2124 | { TT_EGREP, zClang_Macro___Has_BuiltinSelect0, (regex_t*)NULL }, }; |
| 2125 | |
| 2126 | /* |
| 2127 | * Fix Command Arguments for Clang_Macro___Has_Builtin |
| 2128 | */ |
| 2129 | static const char* apzClang_Macro___Has_BuiltinPatch[] = { |
| 2130 | "wrap", |
| 2131 | "#ifndef __has_builtin\n\ |
| 2132 | #define __has_builtin(x) 0\n\ |
| 2133 | #endif\n", |
| 2134 | (char*)NULL }; |
| 2135 | |
| 2136 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2137 | * |
| 2138 | * Description of Clang_Macro___Has_Feature fix |
| 2139 | */ |
| 2140 | tSCC zClang_Macro___Has_FeatureName[] = |
| 2141 | "clang_macro___has_feature"; |
| 2142 | |
| 2143 | /* |
| 2144 | * File name selection pattern |
| 2145 | */ |
| 2146 | #define zClang_Macro___Has_FeatureList (char*)NULL |
| 2147 | /* |
| 2148 | * Machine/OS name selection pattern |
| 2149 | */ |
| 2150 | #define apzClang_Macro___Has_FeatureMachs (const char**)NULL |
| 2151 | |
| 2152 | /* |
| 2153 | * content selection pattern - do fix if pattern found |
| 2154 | */ |
| 2155 | tSCC zClang_Macro___Has_FeatureSelect0[] = |
| 2156 | "__has_feature"; |
| 2157 | |
| 2158 | /* |
| 2159 | * content bypass pattern - skip fix if pattern found |
| 2160 | */ |
| 2161 | tSCC zClang_Macro___Has_FeatureBypass0[] = |
| 2162 | "#[ \t]*define[ \t]+__has_feature"; |
| 2163 | |
| 2164 | #define CLANG_MACRO___HAS_FEATURE_TEST_CT 2 |
| 2165 | static tTestDesc aClang_Macro___Has_FeatureTests[] = { |
| 2166 | { TT_NEGREP, zClang_Macro___Has_FeatureBypass0, (regex_t*)NULL }, |
| 2167 | { TT_EGREP, zClang_Macro___Has_FeatureSelect0, (regex_t*)NULL }, }; |
| 2168 | |
| 2169 | /* |
| 2170 | * Fix Command Arguments for Clang_Macro___Has_Feature |
| 2171 | */ |
| 2172 | static const char* apzClang_Macro___Has_FeaturePatch[] = { |
| 2173 | "wrap", |
| 2174 | "#ifndef __has_feature\n\ |
| 2175 | #define __has_feature(x) 0\n\ |
| 2176 | #endif\n", |
| 2177 | (char*)NULL }; |
| 2178 | |
| 2179 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2180 | * |
| 2181 | * Description of Clang_Macro___Has_Cpp_Attribute fix |
| 2182 | */ |
| 2183 | tSCC zClang_Macro___Has_Cpp_AttributeName[] = |
| 2184 | "clang_macro___has_cpp_attribute"; |
| 2185 | |
| 2186 | /* |
| 2187 | * File name selection pattern |
| 2188 | */ |
| 2189 | #define zClang_Macro___Has_Cpp_AttributeList (char*)NULL |
| 2190 | /* |
| 2191 | * Machine/OS name selection pattern |
| 2192 | */ |
| 2193 | #define apzClang_Macro___Has_Cpp_AttributeMachs (const char**)NULL |
| 2194 | |
| 2195 | /* |
| 2196 | * content selection pattern - do fix if pattern found |
| 2197 | */ |
| 2198 | tSCC zClang_Macro___Has_Cpp_AttributeSelect0[] = |
| 2199 | "__has_cpp_attribute"; |
| 2200 | |
| 2201 | /* |
| 2202 | * content bypass pattern - skip fix if pattern found |
| 2203 | */ |
| 2204 | tSCC zClang_Macro___Has_Cpp_AttributeBypass0[] = |
| 2205 | "#[ \t]*define[ \t]+__has_cpp_attribute"; |
| 2206 | |
| 2207 | #define CLANG_MACRO___HAS_CPP_ATTRIBUTE_TEST_CT 2 |
| 2208 | static tTestDesc aClang_Macro___Has_Cpp_AttributeTests[] = { |
| 2209 | { TT_NEGREP, zClang_Macro___Has_Cpp_AttributeBypass0, (regex_t*)NULL }, |
| 2210 | { TT_EGREP, zClang_Macro___Has_Cpp_AttributeSelect0, (regex_t*)NULL }, }; |
| 2211 | |
| 2212 | /* |
| 2213 | * Fix Command Arguments for Clang_Macro___Has_Cpp_Attribute |
| 2214 | */ |
| 2215 | static const char* apzClang_Macro___Has_Cpp_AttributePatch[] = { |
| 2216 | "wrap", |
| 2217 | "#ifndef __has_cpp_attribute\n\ |
| 2218 | #define __has_cpp_attribute(x) 0\n\ |
| 2219 | #endif\n", |
| 2220 | (char*)NULL }; |
| 2221 | |
| 2222 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2223 | * |
| 2224 | * Description of Clang_Macro___Has_Attribute fix |
| 2225 | */ |
| 2226 | tSCC zClang_Macro___Has_AttributeName[] = |
| 2227 | "clang_macro___has_attribute"; |
| 2228 | |
| 2229 | /* |
| 2230 | * File name selection pattern |
| 2231 | */ |
| 2232 | #define zClang_Macro___Has_AttributeList (char*)NULL |
| 2233 | /* |
| 2234 | * Machine/OS name selection pattern |
| 2235 | */ |
| 2236 | #define apzClang_Macro___Has_AttributeMachs (const char**)NULL |
| 2237 | |
| 2238 | /* |
| 2239 | * content selection pattern - do fix if pattern found |
| 2240 | */ |
| 2241 | tSCC zClang_Macro___Has_AttributeSelect0[] = |
| 2242 | "__has_attribute"; |
| 2243 | |
| 2244 | /* |
| 2245 | * content bypass pattern - skip fix if pattern found |
| 2246 | */ |
| 2247 | tSCC zClang_Macro___Has_AttributeBypass0[] = |
| 2248 | "#[ \t]*define[ \t]+__has_attribute"; |
| 2249 | |
| 2250 | #define CLANG_MACRO___HAS_ATTRIBUTE_TEST_CT 2 |
| 2251 | static tTestDesc aClang_Macro___Has_AttributeTests[] = { |
| 2252 | { TT_NEGREP, zClang_Macro___Has_AttributeBypass0, (regex_t*)NULL }, |
| 2253 | { TT_EGREP, zClang_Macro___Has_AttributeSelect0, (regex_t*)NULL }, }; |
| 2254 | |
| 2255 | /* |
| 2256 | * Fix Command Arguments for Clang_Macro___Has_Attribute |
| 2257 | */ |
| 2258 | static const char* apzClang_Macro___Has_AttributePatch[] = { |
| 2259 | "wrap", |
| 2260 | "#ifndef __has_attribute\n\ |
| 2261 | #define __has_attribute(x) 0\n\ |
| 2262 | #endif\n", |
| 2263 | (char*)NULL }; |
| 2264 | |
| 2265 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2266 | * |
| 2267 | * Description of Clang_Macro___Has_Declspec_Attribute fix |
| 2268 | */ |
| 2269 | tSCC zClang_Macro___Has_Declspec_AttributeName[] = |
| 2270 | "clang_macro___has_declspec_attribute"; |
| 2271 | |
| 2272 | /* |
| 2273 | * File name selection pattern |
| 2274 | */ |
| 2275 | #define zClang_Macro___Has_Declspec_AttributeList (char*)NULL |
| 2276 | /* |
| 2277 | * Machine/OS name selection pattern |
| 2278 | */ |
| 2279 | #define apzClang_Macro___Has_Declspec_AttributeMachs (const char**)NULL |
| 2280 | |
| 2281 | /* |
| 2282 | * content selection pattern - do fix if pattern found |
| 2283 | */ |
| 2284 | tSCC zClang_Macro___Has_Declspec_AttributeSelect0[] = |
| 2285 | "__has_declspec_attribute"; |
| 2286 | |
| 2287 | /* |
| 2288 | * content bypass pattern - skip fix if pattern found |
| 2289 | */ |
| 2290 | tSCC zClang_Macro___Has_Declspec_AttributeBypass0[] = |
| 2291 | "#[ \t]*define[ \t]+__has_declspec_attribute"; |
| 2292 | |
| 2293 | #define CLANG_MACRO___HAS_DECLSPEC_ATTRIBUTE_TEST_CT 2 |
| 2294 | static tTestDesc aClang_Macro___Has_Declspec_AttributeTests[] = { |
| 2295 | { TT_NEGREP, zClang_Macro___Has_Declspec_AttributeBypass0, (regex_t*)NULL }, |
| 2296 | { TT_EGREP, zClang_Macro___Has_Declspec_AttributeSelect0, (regex_t*)NULL }, }; |
| 2297 | |
| 2298 | /* |
| 2299 | * Fix Command Arguments for Clang_Macro___Has_Declspec_Attribute |
| 2300 | */ |
| 2301 | static const char* apzClang_Macro___Has_Declspec_AttributePatch[] = { |
| 2302 | "wrap", |
| 2303 | "#ifndef __has_declspec_attribute\n\ |
| 2304 | #define __has_declspec_attribute(x) 0\n\ |
| 2305 | #endif\n", |
| 2306 | (char*)NULL }; |
| 2307 | |
| 2308 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2309 | * |
| 10000 | { zClang_Macro___Has_BuiltinName, zClang_Macro___Has_BuiltinList, |
| 10001 | apzClang_Macro___Has_BuiltinMachs, |
| 10002 | CLANG_MACRO___HAS_BUILTIN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 10003 | aClang_Macro___Has_BuiltinTests, apzClang_Macro___Has_BuiltinPatch, 0 }, |
| 10004 | |
| 10005 | { zClang_Macro___Has_FeatureName, zClang_Macro___Has_FeatureList, |
| 10006 | apzClang_Macro___Has_FeatureMachs, |
| 10007 | CLANG_MACRO___HAS_FEATURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 10008 | aClang_Macro___Has_FeatureTests, apzClang_Macro___Has_FeaturePatch, 0 }, |
| 10009 | |
| 10010 | { zClang_Macro___Has_Cpp_AttributeName, zClang_Macro___Has_Cpp_AttributeList, |
| 10011 | apzClang_Macro___Has_Cpp_AttributeMachs, |
| 10012 | CLANG_MACRO___HAS_CPP_ATTRIBUTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 10013 | aClang_Macro___Has_Cpp_AttributeTests, apzClang_Macro___Has_Cpp_AttributePatch, 0 }, |
| 10014 | |
| 10015 | { zClang_Macro___Has_AttributeName, zClang_Macro___Has_AttributeList, |
| 10016 | apzClang_Macro___Has_AttributeMachs, |
| 10017 | CLANG_MACRO___HAS_ATTRIBUTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 10018 | aClang_Macro___Has_AttributeTests, apzClang_Macro___Has_AttributePatch, 0 }, |
| 10019 | |
| 10020 | { zClang_Macro___Has_Declspec_AttributeName, zClang_Macro___Has_Declspec_AttributeList, |
| 10021 | apzClang_Macro___Has_Declspec_AttributeMachs, |
| 10022 | CLANG_MACRO___HAS_DECLSPEC_ATTRIBUTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 10023 | aClang_Macro___Has_Declspec_AttributeTests, apzClang_Macro___Has_Declspec_AttributePatch, 0 }, |
| 10024 | |