diff --git a/CMakeLists.txt b/CMakeLists.txt index 5686753..9d2be5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,9 +49,9 @@ option(BUILD_DOCUMENTATION "Create and install the HTML based API documentation if(BUILD_DOCUMENTATION) find_package(Doxygen REQUIRED) - set(doxyfile_in ${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile.in) + set(DOXYGEN_CONFIG_DIR ${CMAKE_SOURCE_DIR}/doxygen) + set(doxyfile_in ${CMAKE_CURRENT_SOURCE_DIR}/doxygen/doxyfile.cmake) set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) - configure_file(${doxyfile_in} ${doxyfile} @ONLY) add_custom_target( doc diff --git a/docs/Doxyfile.in b/docs/Doxyfile.in deleted file mode 100644 index 3bf7df4..0000000 --- a/docs/Doxyfile.in +++ /dev/null @@ -1,20 +0,0 @@ -PROJECT_NAME = "@CMAKE_PROJECT_NAME@" -PROJECT_NUMBER = @PROJECT_VERSION@ -STRIP_FROM_PATH = @PROJECT_SOURCE_DIR@ \ - @PROJECT_BINARY_DIR@ -INPUT = @PROJECT_SOURCE_DIR@/README.md \ - @doxy_main_page@ \ - @PROJECT_SOURCE_DIR@ \ - @PROJECT_SOURCE_DIR@/doc/main.dox \ - @PROJECT_BINARY_DIR@ -FILE_PATTERNS = *.h \ - *.cpp \ - *.hpp -RECURSIVE = YES -MARKDOWN_SUPPORT = YES -USE_MDFILE_AS_MAINPAGE = @PROJECT_SOURCE_DIR@/README.md -JAVADOC_AUTOBRIEF = YES -EXAMPLE_PATH = @PROJECT_SOURCE_DIR@/tests -IMAGE_PATH = @PROJECT_BINARY_DIR@/html -AUTOLINK_SUPPORT = YES -TOC_INCLUDE_HEADINGS = 2 diff --git a/docs/_debug___o_f_f_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_f_f_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..724ddd0 --- /dev/null +++ b/docs/_debug___o_f_f_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,679 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_OFF/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23  /* __INTEL_COMPILER = VRP */
+
24 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
25 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
26 # if defined(__INTEL_COMPILER_UPDATE)
+
27 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
28 # else
+
29 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
30 # endif
+
31 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
32  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
33 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
34 # endif
+
35 # if defined(_MSC_VER)
+
36  /* _MSC_VER = VVRR */
+
37 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
38 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
39 # endif
+
40 
+
41 #elif defined(__PATHCC__)
+
42 # define COMPILER_ID "PathScale"
+
43 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
44 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
45 # if defined(__PATHCC_PATCHLEVEL__)
+
46 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
47 # endif
+
48 
+
49 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
50 # define COMPILER_ID "Embarcadero"
+
51 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
52 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
53 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
54 
+
55 #elif defined(__BORLANDC__)
+
56 # define COMPILER_ID "Borland"
+
57  /* __BORLANDC__ = 0xVRR */
+
58 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
59 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
60 
+
61 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
62 # define COMPILER_ID "Watcom"
+
63  /* __WATCOMC__ = VVRR */
+
64 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
65 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
66 # if (__WATCOMC__ % 10) > 0
+
67 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
68 # endif
+
69 
+
70 #elif defined(__WATCOMC__)
+
71 # define COMPILER_ID "OpenWatcom"
+
72  /* __WATCOMC__ = VVRP + 1100 */
+
73 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
74 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
75 # if (__WATCOMC__ % 10) > 0
+
76 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
77 # endif
+
78 
+
79 #elif defined(__SUNPRO_CC)
+
80 # define COMPILER_ID "SunPro"
+
81 # if __SUNPRO_CC >= 0x5100
+
82  /* __SUNPRO_CC = 0xVRRP */
+
83 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
84 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
85 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
86 # else
+
87  /* __SUNPRO_CC = 0xVRP */
+
88 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
89 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
90 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
91 # endif
+
92 
+
93 #elif defined(__HP_aCC)
+
94 # define COMPILER_ID "HP"
+
95  /* __HP_aCC = VVRRPP */
+
96 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
97 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
98 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
99 
+
100 #elif defined(__DECCXX)
+
101 # define COMPILER_ID "Compaq"
+
102  /* __DECCXX_VER = VVRRTPPPP */
+
103 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
104 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
105 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
106 
+
107 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
108 # define COMPILER_ID "zOS"
+
109  /* __IBMCPP__ = VRP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
111 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
112 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
113 
+
114 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
115 # define COMPILER_ID "XL"
+
116  /* __IBMCPP__ = VRP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
118 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
119 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
120 
+
121 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
122 # define COMPILER_ID "VisualAge"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__PGI)
+
129 # define COMPILER_ID "PGI"
+
130 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
131 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
132 # if defined(__PGIC_PATCHLEVEL__)
+
133 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
134 # endif
+
135 
+
136 #elif defined(_CRAYC)
+
137 # define COMPILER_ID "Cray"
+
138 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
139 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
140 
+
141 #elif defined(__TI_COMPILER_VERSION__)
+
142 # define COMPILER_ID "TI"
+
143  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
144 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
145 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
146 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
147 
+
148 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
149 # define COMPILER_ID "Fujitsu"
+
150 
+
151 #elif defined(__SCO_VERSION__)
+
152 # define COMPILER_ID "SCO"
+
153 
+
154 #elif defined(__clang__) && defined(__apple_build_version__)
+
155 # define COMPILER_ID "AppleClang"
+
156 # if defined(_MSC_VER)
+
157 # define SIMULATE_ID "MSVC"
+
158 # endif
+
159 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
160 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
161 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
162 # if defined(_MSC_VER)
+
163  /* _MSC_VER = VVRR */
+
164 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
165 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
166 # endif
+
167 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
168 
+
169 #elif defined(__clang__)
+
170 # define COMPILER_ID "Clang"
+
171 # if defined(_MSC_VER)
+
172 # define SIMULATE_ID "MSVC"
+
173 # endif
+
174 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
175 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
176 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
177 # if defined(_MSC_VER)
+
178  /* _MSC_VER = VVRR */
+
179 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
180 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
181 # endif
+
182 
+
183 #elif defined(__GNUC__) || defined(__GNUG__)
+
184 # define COMPILER_ID "GNU"
+
185 # if defined(__GNUC__)
+
186 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
187 # else
+
188 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
189 # endif
+
190 # if defined(__GNUC_MINOR__)
+
191 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
192 # endif
+
193 # if defined(__GNUC_PATCHLEVEL__)
+
194 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
195 # endif
+
196 
+
197 #elif defined(_MSC_VER)
+
198 # define COMPILER_ID "MSVC"
+
199  /* _MSC_VER = VVRR */
+
200 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
201 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
202 # if defined(_MSC_FULL_VER)
+
203 # if _MSC_VER >= 1400
+
204  /* _MSC_FULL_VER = VVRRPPPPP */
+
205 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
206 # else
+
207  /* _MSC_FULL_VER = VVRRPPPP */
+
208 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
209 # endif
+
210 # endif
+
211 # if defined(_MSC_BUILD)
+
212 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
213 # endif
+
214 
+
215 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
216 # define COMPILER_ID "ADSP"
+
217 #if defined(__VISUALDSPVERSION__)
+
218  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
219 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
220 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
221 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
222 #endif
+
223 
+
224 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
225 # define COMPILER_ID "IAR"
+
226 # if defined(__VER__)
+
227 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
230 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
231 # endif
+
232 
+
233 #elif defined(__ARMCC_VERSION)
+
234 # define COMPILER_ID "ARMCC"
+
235 #if __ARMCC_VERSION >= 1000000
+
236  /* __ARMCC_VERSION = VRRPPPP */
+
237  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
238  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
239  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
240 #else
+
241  /* __ARMCC_VERSION = VRPPPP */
+
242  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
243  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
244  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
245 #endif
+
246 
+
247 
+
248 #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
+
249 # define COMPILER_ID "MIPSpro"
+
250 # if defined(_SGI_COMPILER_VERSION)
+
251  /* _SGI_COMPILER_VERSION = VRP */
+
252 # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
+
253 # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
+
254 # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
+
255 # else
+
256  /* _COMPILER_VERSION = VRP */
+
257 # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
+
258 # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
+
259 # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
+
260 # endif
+
261 
+
262 
+
263 /* These compilers are either not known or too old to define an
+
264  identification macro. Try to identify the platform and guess that
+
265  it is the native compiler. */
+
266 #elif defined(__sgi)
+
267 # define COMPILER_ID "MIPSpro"
+
268 
+
269 #elif defined(__hpux) || defined(__hpua)
+
270 # define COMPILER_ID "HP"
+
271 
+
272 #else /* unknown compiler */
+
273 # define COMPILER_ID ""
+
274 #endif
+
275 
+
276 /* Construct the string literal in pieces to prevent the source from
+
277  getting matched. Store it in a pointer rather than an array
+
278  because some compilers will just produce instructions to fill the
+
279  array rather than assigning a pointer to a static array. */
+
280 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
281 #ifdef SIMULATE_ID
+
282 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
283 #endif
+
284 
+
285 #ifdef __QNXNTO__
+
286 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
287 #endif
+
288 
+
289 #if defined(__CRAYXE) || defined(__CRAYXC)
+
290 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
291 #endif
+
292 
+
293 #define STRINGIFY_HELPER(X) #X
+
294 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
295 
+
296 /* Identify known platforms by name. */
+
297 #if defined(__linux) || defined(__linux__) || defined(linux)
+
298 # define PLATFORM_ID "Linux"
+
299 
+
300 #elif defined(__CYGWIN__)
+
301 # define PLATFORM_ID "Cygwin"
+
302 
+
303 #elif defined(__MINGW32__)
+
304 # define PLATFORM_ID "MinGW"
+
305 
+
306 #elif defined(__APPLE__)
+
307 # define PLATFORM_ID "Darwin"
+
308 
+
309 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
310 # define PLATFORM_ID "Windows"
+
311 
+
312 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
313 # define PLATFORM_ID "FreeBSD"
+
314 
+
315 #elif defined(__NetBSD__) || defined(__NetBSD)
+
316 # define PLATFORM_ID "NetBSD"
+
317 
+
318 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
319 # define PLATFORM_ID "OpenBSD"
+
320 
+
321 #elif defined(__sun) || defined(sun)
+
322 # define PLATFORM_ID "SunOS"
+
323 
+
324 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
325 # define PLATFORM_ID "AIX"
+
326 
+
327 #elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
+
328 # define PLATFORM_ID "IRIX"
+
329 
+
330 #elif defined(__hpux) || defined(__hpux__)
+
331 # define PLATFORM_ID "HP-UX"
+
332 
+
333 #elif defined(__HAIKU__)
+
334 # define PLATFORM_ID "Haiku"
+
335 
+
336 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
337 # define PLATFORM_ID "BeOS"
+
338 
+
339 #elif defined(__QNX__) || defined(__QNXNTO__)
+
340 # define PLATFORM_ID "QNX"
+
341 
+
342 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
343 # define PLATFORM_ID "Tru64"
+
344 
+
345 #elif defined(__riscos) || defined(__riscos__)
+
346 # define PLATFORM_ID "RISCos"
+
347 
+
348 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
349 # define PLATFORM_ID "SINIX"
+
350 
+
351 #elif defined(__UNIX_SV__)
+
352 # define PLATFORM_ID "UNIX_SV"
+
353 
+
354 #elif defined(__bsdos__)
+
355 # define PLATFORM_ID "BSDOS"
+
356 
+
357 #elif defined(_MPRAS) || defined(MPRAS)
+
358 # define PLATFORM_ID "MP-RAS"
+
359 
+
360 #elif defined(__osf) || defined(__osf__)
+
361 # define PLATFORM_ID "OSF1"
+
362 
+
363 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
364 # define PLATFORM_ID "SCO_SV"
+
365 
+
366 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
367 # define PLATFORM_ID "ULTRIX"
+
368 
+
369 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
370 # define PLATFORM_ID "Xenix"
+
371 
+
372 #elif defined(__WATCOMC__)
+
373 # if defined(__LINUX__)
+
374 # define PLATFORM_ID "Linux"
+
375 
+
376 # elif defined(__DOS__)
+
377 # define PLATFORM_ID "DOS"
+
378 
+
379 # elif defined(__OS2__)
+
380 # define PLATFORM_ID "OS2"
+
381 
+
382 # elif defined(__WINDOWS__)
+
383 # define PLATFORM_ID "Windows3x"
+
384 
+
385 # else /* unknown platform */
+
386 # define PLATFORM_ID
+
387 # endif
+
388 
+
389 #else /* unknown platform */
+
390 # define PLATFORM_ID
+
391 
+
392 #endif
+
393 
+
394 /* For windows compilers MSVC and Intel we can determine
+
395  the architecture of the compiler being used. This is because
+
396  the compilers do not have flags that can change the architecture,
+
397  but rather depend on which compiler is being used
+
398 */
+
399 #if defined(_WIN32) && defined(_MSC_VER)
+
400 # if defined(_M_IA64)
+
401 # define ARCHITECTURE_ID "IA64"
+
402 
+
403 # elif defined(_M_X64) || defined(_M_AMD64)
+
404 # define ARCHITECTURE_ID "x64"
+
405 
+
406 # elif defined(_M_IX86)
+
407 # define ARCHITECTURE_ID "X86"
+
408 
+
409 # elif defined(_M_ARM64)
+
410 # define ARCHITECTURE_ID "ARM64"
+
411 
+
412 # elif defined(_M_ARM)
+
413 # if _M_ARM == 4
+
414 # define ARCHITECTURE_ID "ARMV4I"
+
415 # elif _M_ARM == 5
+
416 # define ARCHITECTURE_ID "ARMV5I"
+
417 # else
+
418 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
419 # endif
+
420 
+
421 # elif defined(_M_MIPS)
+
422 # define ARCHITECTURE_ID "MIPS"
+
423 
+
424 # elif defined(_M_SH)
+
425 # define ARCHITECTURE_ID "SHx"
+
426 
+
427 # else /* unknown architecture */
+
428 # define ARCHITECTURE_ID ""
+
429 # endif
+
430 
+
431 #elif defined(__WATCOMC__)
+
432 # if defined(_M_I86)
+
433 # define ARCHITECTURE_ID "I86"
+
434 
+
435 # elif defined(_M_IX86)
+
436 # define ARCHITECTURE_ID "X86"
+
437 
+
438 # else /* unknown architecture */
+
439 # define ARCHITECTURE_ID ""
+
440 # endif
+
441 
+
442 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
443 # if defined(__ICCARM__)
+
444 # define ARCHITECTURE_ID "ARM"
+
445 
+
446 # elif defined(__ICCAVR__)
+
447 # define ARCHITECTURE_ID "AVR"
+
448 
+
449 # else /* unknown architecture */
+
450 # define ARCHITECTURE_ID ""
+
451 # endif
+
452 #else
+
453 # define ARCHITECTURE_ID
+
454 #endif
+
455 
+
456 /* Convert integer to decimal digit literals. */
+
457 #define DEC(n) \
+
458  ('0' + (((n) / 10000000)%10)), \
+
459  ('0' + (((n) / 1000000)%10)), \
+
460  ('0' + (((n) / 100000)%10)), \
+
461  ('0' + (((n) / 10000)%10)), \
+
462  ('0' + (((n) / 1000)%10)), \
+
463  ('0' + (((n) / 100)%10)), \
+
464  ('0' + (((n) / 10)%10)), \
+
465  ('0' + ((n) % 10))
+
466 
+
467 /* Convert integer to hex digit literals. */
+
468 #define HEX(n) \
+
469  ('0' + ((n)>>28 & 0xF)), \
+
470  ('0' + ((n)>>24 & 0xF)), \
+
471  ('0' + ((n)>>20 & 0xF)), \
+
472  ('0' + ((n)>>16 & 0xF)), \
+
473  ('0' + ((n)>>12 & 0xF)), \
+
474  ('0' + ((n)>>8 & 0xF)), \
+
475  ('0' + ((n)>>4 & 0xF)), \
+
476  ('0' + ((n) & 0xF))
+
477 
+
478 /* Construct a string literal encoding the version number components. */
+
479 #ifdef COMPILER_VERSION_MAJOR
+
480 char const info_version[] = {
+
481  'I', 'N', 'F', 'O', ':',
+
482  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
483  COMPILER_VERSION_MAJOR,
+
484 # ifdef COMPILER_VERSION_MINOR
+
485  '.', COMPILER_VERSION_MINOR,
+
486 # ifdef COMPILER_VERSION_PATCH
+
487  '.', COMPILER_VERSION_PATCH,
+
488 # ifdef COMPILER_VERSION_TWEAK
+
489  '.', COMPILER_VERSION_TWEAK,
+
490 # endif
+
491 # endif
+
492 # endif
+
493  ']','\0'};
+
494 #endif
+
495 
+
496 /* Construct a string literal encoding the internal version number. */
+
497 #ifdef COMPILER_VERSION_INTERNAL
+
498 char const info_version_internal[] = {
+
499  'I', 'N', 'F', 'O', ':',
+
500  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
501  'i','n','t','e','r','n','a','l','[',
+
502  COMPILER_VERSION_INTERNAL,']','\0'};
+
503 #endif
+
504 
+
505 /* Construct a string literal encoding the version number components. */
+
506 #ifdef SIMULATE_VERSION_MAJOR
+
507 char const info_simulate_version[] = {
+
508  'I', 'N', 'F', 'O', ':',
+
509  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
510  SIMULATE_VERSION_MAJOR,
+
511 # ifdef SIMULATE_VERSION_MINOR
+
512  '.', SIMULATE_VERSION_MINOR,
+
513 # ifdef SIMULATE_VERSION_PATCH
+
514  '.', SIMULATE_VERSION_PATCH,
+
515 # ifdef SIMULATE_VERSION_TWEAK
+
516  '.', SIMULATE_VERSION_TWEAK,
+
517 # endif
+
518 # endif
+
519 # endif
+
520  ']','\0'};
+
521 #endif
+
522 
+
523 /* Construct the string literal in pieces to prevent the source from
+
524  getting matched. Store it in a pointer rather than an array
+
525  because some compilers will just produce instructions to fill the
+
526  array rather than assigning a pointer to a static array. */
+
527 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
528 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
529 
+
530 
+
531 
+
532 
+
533 #if defined(_MSC_VER) && defined(_MSVC_LANG)
+
534 #define CXX_STD _MSVC_LANG
+
535 #else
+
536 #define CXX_STD __cplusplus
+
537 #endif
+
538 
+
539 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
540 #if CXX_STD > 201402L
+
541  "17"
+
542 #elif CXX_STD >= 201402L
+
543  "14"
+
544 #elif CXX_STD >= 201103L
+
545  "11"
+
546 #else
+
547  "98"
+
548 #endif
+
549 "]";
+
550 
+
551 /*--------------------------------------------------------------------------*/
+
552 
+
553 int main(int argc, char* argv[])
+
554 {
+
555  int require = 0;
+
556  require += info_compiler[argc];
+
557  require += info_platform[argc];
+
558 #ifdef COMPILER_VERSION_MAJOR
+
559  require += info_version[argc];
+
560 #endif
+
561 #ifdef COMPILER_VERSION_INTERNAL
+
562  require += info_version_internal[argc];
+
563 #endif
+
564 #ifdef SIMULATE_ID
+
565  require += info_simulate[argc];
+
566 #endif
+
567 #ifdef SIMULATE_VERSION_MAJOR
+
568  require += info_simulate_version[argc];
+
569 #endif
+
570 #if defined(__CRAYXE) || defined(__CRAYXC)
+
571  require += info_cray[argc];
+
572 #endif
+
573  require += info_language_dialect_default[argc];
+
574  (void)argv;
+
575  return require;
+
576 }
+
+
+ + + + diff --git a/docs/_debug___o_f_f_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_f_f_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..8043697 --- /dev/null +++ b/docs/_debug___o_f_f_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,766 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_OFF/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23 # if defined(__GNUC__)
+
24 # define SIMULATE_ID "GNU"
+
25 # endif
+
26  /* __INTEL_COMPILER = VRP */
+
27 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
28 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
29 # if defined(__INTEL_COMPILER_UPDATE)
+
30 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
31 # else
+
32 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
33 # endif
+
34 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
35  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
36 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
37 # endif
+
38 # if defined(_MSC_VER)
+
39  /* _MSC_VER = VVRR */
+
40 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
41 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
42 # endif
+
43 # if defined(__GNUC__)
+
44 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
45 # elif defined(__GNUG__)
+
46 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
47 # endif
+
48 # if defined(__GNUC_MINOR__)
+
49 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
50 # endif
+
51 # if defined(__GNUC_PATCHLEVEL__)
+
52 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
53 # endif
+
54 
+
55 #elif defined(__PATHCC__)
+
56 # define COMPILER_ID "PathScale"
+
57 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
58 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
59 # if defined(__PATHCC_PATCHLEVEL__)
+
60 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
61 # endif
+
62 
+
63 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
64 # define COMPILER_ID "Embarcadero"
+
65 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
66 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
67 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
68 
+
69 #elif defined(__BORLANDC__)
+
70 # define COMPILER_ID "Borland"
+
71  /* __BORLANDC__ = 0xVRR */
+
72 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
73 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
74 
+
75 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
76 # define COMPILER_ID "Watcom"
+
77  /* __WATCOMC__ = VVRR */
+
78 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
79 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
80 # if (__WATCOMC__ % 10) > 0
+
81 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
82 # endif
+
83 
+
84 #elif defined(__WATCOMC__)
+
85 # define COMPILER_ID "OpenWatcom"
+
86  /* __WATCOMC__ = VVRP + 1100 */
+
87 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
88 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
89 # if (__WATCOMC__ % 10) > 0
+
90 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
91 # endif
+
92 
+
93 #elif defined(__SUNPRO_CC)
+
94 # define COMPILER_ID "SunPro"
+
95 # if __SUNPRO_CC >= 0x5100
+
96  /* __SUNPRO_CC = 0xVRRP */
+
97 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
98 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
99 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
100 # else
+
101  /* __SUNPRO_CC = 0xVRP */
+
102 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
103 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
104 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
105 # endif
+
106 
+
107 #elif defined(__HP_aCC)
+
108 # define COMPILER_ID "HP"
+
109  /* __HP_aCC = VVRRPP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
111 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
112 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
113 
+
114 #elif defined(__DECCXX)
+
115 # define COMPILER_ID "Compaq"
+
116  /* __DECCXX_VER = VVRRTPPPP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
118 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
119 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
120 
+
121 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
122 # define COMPILER_ID "zOS"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__ibmxl__) && defined(__clang__)
+
129 # define COMPILER_ID "XLClang"
+
130 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
131 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
132 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
133 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
134 
+
135 
+
136 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
137 # define COMPILER_ID "XL"
+
138  /* __IBMCPP__ = VRP */
+
139 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
140 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
141 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
142 
+
143 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
144 # define COMPILER_ID "VisualAge"
+
145  /* __IBMCPP__ = VRP */
+
146 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
147 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
148 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
149 
+
150 #elif defined(__PGI)
+
151 # define COMPILER_ID "PGI"
+
152 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
153 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
154 # if defined(__PGIC_PATCHLEVEL__)
+
155 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
156 # endif
+
157 
+
158 #elif defined(_CRAYC)
+
159 # define COMPILER_ID "Cray"
+
160 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
161 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
162 
+
163 #elif defined(__TI_COMPILER_VERSION__)
+
164 # define COMPILER_ID "TI"
+
165  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
166 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
167 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
168 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
169 
+
170 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
171 # define COMPILER_ID "Fujitsu"
+
172 
+
173 #elif defined(__ghs__)
+
174 # define COMPILER_ID "GHS"
+
175 /* __GHS_VERSION_NUMBER = VVVVRP */
+
176 # ifdef __GHS_VERSION_NUMBER
+
177 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
178 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
180 # endif
+
181 
+
182 #elif defined(__SCO_VERSION__)
+
183 # define COMPILER_ID "SCO"
+
184 
+
185 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
186 # define COMPILER_ID "ARMCC"
+
187 #if __ARMCC_VERSION >= 1000000
+
188  /* __ARMCC_VERSION = VRRPPPP */
+
189  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
190  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
191  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
192 #else
+
193  /* __ARMCC_VERSION = VRPPPP */
+
194  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
195  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
196  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
197 #endif
+
198 
+
199 
+
200 #elif defined(__clang__) && defined(__apple_build_version__)
+
201 # define COMPILER_ID "AppleClang"
+
202 # if defined(_MSC_VER)
+
203 # define SIMULATE_ID "MSVC"
+
204 # endif
+
205 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
206 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
207 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
208 # if defined(_MSC_VER)
+
209  /* _MSC_VER = VVRR */
+
210 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
211 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
212 # endif
+
213 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
214 
+
215 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
216 # define COMPILER_ID "ARMClang"
+
217  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
218  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
219  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
220 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
221 
+
222 #elif defined(__clang__)
+
223 # define COMPILER_ID "Clang"
+
224 # if defined(_MSC_VER)
+
225 # define SIMULATE_ID "MSVC"
+
226 # endif
+
227 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
228 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
229 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
230 # if defined(_MSC_VER)
+
231  /* _MSC_VER = VVRR */
+
232 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
233 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
234 # endif
+
235 
+
236 #elif defined(__GNUC__) || defined(__GNUG__)
+
237 # define COMPILER_ID "GNU"
+
238 # if defined(__GNUC__)
+
239 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
240 # else
+
241 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
242 # endif
+
243 # if defined(__GNUC_MINOR__)
+
244 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
245 # endif
+
246 # if defined(__GNUC_PATCHLEVEL__)
+
247 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
248 # endif
+
249 
+
250 #elif defined(_MSC_VER)
+
251 # define COMPILER_ID "MSVC"
+
252  /* _MSC_VER = VVRR */
+
253 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
254 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
255 # if defined(_MSC_FULL_VER)
+
256 # if _MSC_VER >= 1400
+
257  /* _MSC_FULL_VER = VVRRPPPPP */
+
258 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
259 # else
+
260  /* _MSC_FULL_VER = VVRRPPPP */
+
261 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
262 # endif
+
263 # endif
+
264 # if defined(_MSC_BUILD)
+
265 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
266 # endif
+
267 
+
268 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
269 # define COMPILER_ID "ADSP"
+
270 #if defined(__VISUALDSPVERSION__)
+
271  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
272 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
273 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
274 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
275 #endif
+
276 
+
277 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
278 # define COMPILER_ID "IAR"
+
279 # if defined(__VER__) && defined(__ICCARM__)
+
280 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
281 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
282 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
283 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
284 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__))
+
285 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
286 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
287 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
288 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
289 # endif
+
290 
+
291 
+
292 /* These compilers are either not known or too old to define an
+
293  identification macro. Try to identify the platform and guess that
+
294  it is the native compiler. */
+
295 #elif defined(__hpux) || defined(__hpua)
+
296 # define COMPILER_ID "HP"
+
297 
+
298 #else /* unknown compiler */
+
299 # define COMPILER_ID ""
+
300 #endif
+
301 
+
302 /* Construct the string literal in pieces to prevent the source from
+
303  getting matched. Store it in a pointer rather than an array
+
304  because some compilers will just produce instructions to fill the
+
305  array rather than assigning a pointer to a static array. */
+
306 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
307 #ifdef SIMULATE_ID
+
308 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
309 #endif
+
310 
+
311 #ifdef __QNXNTO__
+
312 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
313 #endif
+
314 
+
315 #if defined(__CRAYXE) || defined(__CRAYXC)
+
316 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
317 #endif
+
318 
+
319 #define STRINGIFY_HELPER(X) #X
+
320 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
321 
+
322 /* Identify known platforms by name. */
+
323 #if defined(__linux) || defined(__linux__) || defined(linux)
+
324 # define PLATFORM_ID "Linux"
+
325 
+
326 #elif defined(__CYGWIN__)
+
327 # define PLATFORM_ID "Cygwin"
+
328 
+
329 #elif defined(__MINGW32__)
+
330 # define PLATFORM_ID "MinGW"
+
331 
+
332 #elif defined(__APPLE__)
+
333 # define PLATFORM_ID "Darwin"
+
334 
+
335 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
336 # define PLATFORM_ID "Windows"
+
337 
+
338 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
339 # define PLATFORM_ID "FreeBSD"
+
340 
+
341 #elif defined(__NetBSD__) || defined(__NetBSD)
+
342 # define PLATFORM_ID "NetBSD"
+
343 
+
344 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
345 # define PLATFORM_ID "OpenBSD"
+
346 
+
347 #elif defined(__sun) || defined(sun)
+
348 # define PLATFORM_ID "SunOS"
+
349 
+
350 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
351 # define PLATFORM_ID "AIX"
+
352 
+
353 #elif defined(__hpux) || defined(__hpux__)
+
354 # define PLATFORM_ID "HP-UX"
+
355 
+
356 #elif defined(__HAIKU__)
+
357 # define PLATFORM_ID "Haiku"
+
358 
+
359 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
360 # define PLATFORM_ID "BeOS"
+
361 
+
362 #elif defined(__QNX__) || defined(__QNXNTO__)
+
363 # define PLATFORM_ID "QNX"
+
364 
+
365 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
366 # define PLATFORM_ID "Tru64"
+
367 
+
368 #elif defined(__riscos) || defined(__riscos__)
+
369 # define PLATFORM_ID "RISCos"
+
370 
+
371 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
372 # define PLATFORM_ID "SINIX"
+
373 
+
374 #elif defined(__UNIX_SV__)
+
375 # define PLATFORM_ID "UNIX_SV"
+
376 
+
377 #elif defined(__bsdos__)
+
378 # define PLATFORM_ID "BSDOS"
+
379 
+
380 #elif defined(_MPRAS) || defined(MPRAS)
+
381 # define PLATFORM_ID "MP-RAS"
+
382 
+
383 #elif defined(__osf) || defined(__osf__)
+
384 # define PLATFORM_ID "OSF1"
+
385 
+
386 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
387 # define PLATFORM_ID "SCO_SV"
+
388 
+
389 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
390 # define PLATFORM_ID "ULTRIX"
+
391 
+
392 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
393 # define PLATFORM_ID "Xenix"
+
394 
+
395 #elif defined(__WATCOMC__)
+
396 # if defined(__LINUX__)
+
397 # define PLATFORM_ID "Linux"
+
398 
+
399 # elif defined(__DOS__)
+
400 # define PLATFORM_ID "DOS"
+
401 
+
402 # elif defined(__OS2__)
+
403 # define PLATFORM_ID "OS2"
+
404 
+
405 # elif defined(__WINDOWS__)
+
406 # define PLATFORM_ID "Windows3x"
+
407 
+
408 # elif defined(__VXWORKS__)
+
409 # define PLATFORM_ID "VxWorks"
+
410 
+
411 # else /* unknown platform */
+
412 # define PLATFORM_ID
+
413 # endif
+
414 
+
415 #elif defined(__INTEGRITY)
+
416 # if defined(INT_178B)
+
417 # define PLATFORM_ID "Integrity178"
+
418 
+
419 # else /* regular Integrity */
+
420 # define PLATFORM_ID "Integrity"
+
421 # endif
+
422 
+
423 #else /* unknown platform */
+
424 # define PLATFORM_ID
+
425 
+
426 #endif
+
427 
+
428 /* For windows compilers MSVC and Intel we can determine
+
429  the architecture of the compiler being used. This is because
+
430  the compilers do not have flags that can change the architecture,
+
431  but rather depend on which compiler is being used
+
432 */
+
433 #if defined(_WIN32) && defined(_MSC_VER)
+
434 # if defined(_M_IA64)
+
435 # define ARCHITECTURE_ID "IA64"
+
436 
+
437 # elif defined(_M_X64) || defined(_M_AMD64)
+
438 # define ARCHITECTURE_ID "x64"
+
439 
+
440 # elif defined(_M_IX86)
+
441 # define ARCHITECTURE_ID "X86"
+
442 
+
443 # elif defined(_M_ARM64)
+
444 # define ARCHITECTURE_ID "ARM64"
+
445 
+
446 # elif defined(_M_ARM)
+
447 # if _M_ARM == 4
+
448 # define ARCHITECTURE_ID "ARMV4I"
+
449 # elif _M_ARM == 5
+
450 # define ARCHITECTURE_ID "ARMV5I"
+
451 # else
+
452 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
453 # endif
+
454 
+
455 # elif defined(_M_MIPS)
+
456 # define ARCHITECTURE_ID "MIPS"
+
457 
+
458 # elif defined(_M_SH)
+
459 # define ARCHITECTURE_ID "SHx"
+
460 
+
461 # else /* unknown architecture */
+
462 # define ARCHITECTURE_ID ""
+
463 # endif
+
464 
+
465 #elif defined(__WATCOMC__)
+
466 # if defined(_M_I86)
+
467 # define ARCHITECTURE_ID "I86"
+
468 
+
469 # elif defined(_M_IX86)
+
470 # define ARCHITECTURE_ID "X86"
+
471 
+
472 # else /* unknown architecture */
+
473 # define ARCHITECTURE_ID ""
+
474 # endif
+
475 
+
476 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
477 # if defined(__ICCARM__)
+
478 # define ARCHITECTURE_ID "ARM"
+
479 
+
480 # elif defined(__ICCRX__)
+
481 # define ARCHITECTURE_ID "RX"
+
482 
+
483 # elif defined(__ICCRH850__)
+
484 # define ARCHITECTURE_ID "RH850"
+
485 
+
486 # elif defined(__ICCRL78__)
+
487 # define ARCHITECTURE_ID "RL78"
+
488 
+
489 # elif defined(__ICCRISCV__)
+
490 # define ARCHITECTURE_ID "RISCV"
+
491 
+
492 # elif defined(__ICCAVR__)
+
493 # define ARCHITECTURE_ID "AVR"
+
494 
+
495 # elif defined(__ICC430__)
+
496 # define ARCHITECTURE_ID "MSP430"
+
497 
+
498 # elif defined(__ICCV850__)
+
499 # define ARCHITECTURE_ID "V850"
+
500 
+
501 # elif defined(__ICC8051__)
+
502 # define ARCHITECTURE_ID "8051"
+
503 
+
504 # else /* unknown architecture */
+
505 # define ARCHITECTURE_ID ""
+
506 # endif
+
507 
+
508 #elif defined(__ghs__)
+
509 # if defined(__PPC64__)
+
510 # define ARCHITECTURE_ID "PPC64"
+
511 
+
512 # elif defined(__ppc__)
+
513 # define ARCHITECTURE_ID "PPC"
+
514 
+
515 # elif defined(__ARM__)
+
516 # define ARCHITECTURE_ID "ARM"
+
517 
+
518 # elif defined(__x86_64__)
+
519 # define ARCHITECTURE_ID "x64"
+
520 
+
521 # elif defined(__i386__)
+
522 # define ARCHITECTURE_ID "X86"
+
523 
+
524 # else /* unknown architecture */
+
525 # define ARCHITECTURE_ID ""
+
526 # endif
+
527 #else
+
528 # define ARCHITECTURE_ID
+
529 #endif
+
530 
+
531 /* Convert integer to decimal digit literals. */
+
532 #define DEC(n) \
+
533  ('0' + (((n) / 10000000)%10)), \
+
534  ('0' + (((n) / 1000000)%10)), \
+
535  ('0' + (((n) / 100000)%10)), \
+
536  ('0' + (((n) / 10000)%10)), \
+
537  ('0' + (((n) / 1000)%10)), \
+
538  ('0' + (((n) / 100)%10)), \
+
539  ('0' + (((n) / 10)%10)), \
+
540  ('0' + ((n) % 10))
+
541 
+
542 /* Convert integer to hex digit literals. */
+
543 #define HEX(n) \
+
544  ('0' + ((n)>>28 & 0xF)), \
+
545  ('0' + ((n)>>24 & 0xF)), \
+
546  ('0' + ((n)>>20 & 0xF)), \
+
547  ('0' + ((n)>>16 & 0xF)), \
+
548  ('0' + ((n)>>12 & 0xF)), \
+
549  ('0' + ((n)>>8 & 0xF)), \
+
550  ('0' + ((n)>>4 & 0xF)), \
+
551  ('0' + ((n) & 0xF))
+
552 
+
553 /* Construct a string literal encoding the version number components. */
+
554 #ifdef COMPILER_VERSION_MAJOR
+
555 char const info_version[] = {
+
556  'I', 'N', 'F', 'O', ':',
+
557  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
558  COMPILER_VERSION_MAJOR,
+
559 # ifdef COMPILER_VERSION_MINOR
+
560  '.', COMPILER_VERSION_MINOR,
+
561 # ifdef COMPILER_VERSION_PATCH
+
562  '.', COMPILER_VERSION_PATCH,
+
563 # ifdef COMPILER_VERSION_TWEAK
+
564  '.', COMPILER_VERSION_TWEAK,
+
565 # endif
+
566 # endif
+
567 # endif
+
568  ']','\0'};
+
569 #endif
+
570 
+
571 /* Construct a string literal encoding the internal version number. */
+
572 #ifdef COMPILER_VERSION_INTERNAL
+
573 char const info_version_internal[] = {
+
574  'I', 'N', 'F', 'O', ':',
+
575  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
576  'i','n','t','e','r','n','a','l','[',
+
577  COMPILER_VERSION_INTERNAL,']','\0'};
+
578 #endif
+
579 
+
580 /* Construct a string literal encoding the version number components. */
+
581 #ifdef SIMULATE_VERSION_MAJOR
+
582 char const info_simulate_version[] = {
+
583  'I', 'N', 'F', 'O', ':',
+
584  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
585  SIMULATE_VERSION_MAJOR,
+
586 # ifdef SIMULATE_VERSION_MINOR
+
587  '.', SIMULATE_VERSION_MINOR,
+
588 # ifdef SIMULATE_VERSION_PATCH
+
589  '.', SIMULATE_VERSION_PATCH,
+
590 # ifdef SIMULATE_VERSION_TWEAK
+
591  '.', SIMULATE_VERSION_TWEAK,
+
592 # endif
+
593 # endif
+
594 # endif
+
595  ']','\0'};
+
596 #endif
+
597 
+
598 /* Construct the string literal in pieces to prevent the source from
+
599  getting matched. Store it in a pointer rather than an array
+
600  because some compilers will just produce instructions to fill the
+
601  array rather than assigning a pointer to a static array. */
+
602 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
603 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
604 
+
605 
+
606 
+
607 
+
608 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
609 # if defined(__INTEL_CXX11_MODE__)
+
610 # if defined(__cpp_aggregate_nsdmi)
+
611 # define CXX_STD 201402L
+
612 # else
+
613 # define CXX_STD 201103L
+
614 # endif
+
615 # else
+
616 # define CXX_STD 199711L
+
617 # endif
+
618 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
619 # define CXX_STD _MSVC_LANG
+
620 #else
+
621 # define CXX_STD __cplusplus
+
622 #endif
+
623 
+
624 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
625 #if CXX_STD > 201703L
+
626  "20"
+
627 #elif CXX_STD >= 201703L
+
628  "17"
+
629 #elif CXX_STD >= 201402L
+
630  "14"
+
631 #elif CXX_STD >= 201103L
+
632  "11"
+
633 #else
+
634  "98"
+
635 #endif
+
636 "]";
+
637 
+
638 /*--------------------------------------------------------------------------*/
+
639 
+
640 int main(int argc, char* argv[])
+
641 {
+
642  int require = 0;
+
643  require += info_compiler[argc];
+
644  require += info_platform[argc];
+
645 #ifdef COMPILER_VERSION_MAJOR
+
646  require += info_version[argc];
+
647 #endif
+
648 #ifdef COMPILER_VERSION_INTERNAL
+
649  require += info_version_internal[argc];
+
650 #endif
+
651 #ifdef SIMULATE_ID
+
652  require += info_simulate[argc];
+
653 #endif
+
654 #ifdef SIMULATE_VERSION_MAJOR
+
655  require += info_simulate_version[argc];
+
656 #endif
+
657 #if defined(__CRAYXE) || defined(__CRAYXC)
+
658  require += info_cray[argc];
+
659 #endif
+
660  require += info_language_dialect_default[argc];
+
661  (void)argv;
+
662  return require;
+
663 }
+
+
+ + + + diff --git a/docs/_debug___o_f_f_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_f_f_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..c5388e4 --- /dev/null +++ b/docs/_debug___o_f_f_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,894 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_OFF/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__ibmxl__) && defined(__clang__)
+
182 # define COMPILER_ID "XLClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
190 # define COMPILER_ID "XL"
+
191  /* __IBMCPP__ = VRP */
+
192 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
193 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
194 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
195 
+
196 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
197 # define COMPILER_ID "VisualAge"
+
198  /* __IBMCPP__ = VRP */
+
199 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
200 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
201 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
202 
+
203 #elif defined(__NVCOMPILER)
+
204 # define COMPILER_ID "NVHPC"
+
205 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
206 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
207 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
208 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
209 # endif
+
210 
+
211 #elif defined(__PGI)
+
212 # define COMPILER_ID "PGI"
+
213 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
214 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
215 # if defined(__PGIC_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(_CRAYC)
+
220 # define COMPILER_ID "Cray"
+
221 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
222 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
223 
+
224 #elif defined(__TI_COMPILER_VERSION__)
+
225 # define COMPILER_ID "TI"
+
226  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
227 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
230 
+
231 #elif defined(__CLANG_FUJITSU)
+
232 # define COMPILER_ID "FujitsuClang"
+
233 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
234 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
235 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
236 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
237 
+
238 
+
239 #elif defined(__FUJITSU)
+
240 # define COMPILER_ID "Fujitsu"
+
241 # if defined(__FCC_version__)
+
242 # define COMPILER_VERSION __FCC_version__
+
243 # elif defined(__FCC_major__)
+
244 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
245 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
246 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
247 # endif
+
248 # if defined(__fcc_version)
+
249 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
250 # elif defined(__FCC_VERSION)
+
251 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
252 # endif
+
253 
+
254 
+
255 #elif defined(__ghs__)
+
256 # define COMPILER_ID "GHS"
+
257 /* __GHS_VERSION_NUMBER = VVVVRP */
+
258 # ifdef __GHS_VERSION_NUMBER
+
259 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
260 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
261 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
262 # endif
+
263 
+
264 #elif defined(__SCO_VERSION__)
+
265 # define COMPILER_ID "SCO"
+
266 
+
267 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
268 # define COMPILER_ID "ARMCC"
+
269 #if __ARMCC_VERSION >= 1000000
+
270  /* __ARMCC_VERSION = VRRPPPP */
+
271  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
272  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
273  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
274 #else
+
275  /* __ARMCC_VERSION = VRPPPP */
+
276  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
277  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
278  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
279 #endif
+
280 
+
281 
+
282 #elif defined(__clang__) && defined(__apple_build_version__)
+
283 # define COMPILER_ID "AppleClang"
+
284 # if defined(_MSC_VER)
+
285 # define SIMULATE_ID "MSVC"
+
286 # endif
+
287 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
288 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
289 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
290 # if defined(_MSC_VER)
+
291  /* _MSC_VER = VVRR */
+
292 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
293 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
294 # endif
+
295 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
296 
+
297 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
298 # define COMPILER_ID "ARMClang"
+
299  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
300  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
301  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
302 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
303 
+
304 #elif defined(__clang__)
+
305 # define COMPILER_ID "Clang"
+
306 # if defined(_MSC_VER)
+
307 # define SIMULATE_ID "MSVC"
+
308 # endif
+
309 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
310 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
311 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
312 # if defined(_MSC_VER)
+
313  /* _MSC_VER = VVRR */
+
314 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
315 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
316 # endif
+
317 
+
318 #elif defined(__GNUC__) || defined(__GNUG__)
+
319 # define COMPILER_ID "GNU"
+
320 # if defined(__GNUC__)
+
321 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
322 # else
+
323 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
324 # endif
+
325 # if defined(__GNUC_MINOR__)
+
326 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
327 # endif
+
328 # if defined(__GNUC_PATCHLEVEL__)
+
329 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
330 # endif
+
331 
+
332 #elif defined(_MSC_VER)
+
333 # define COMPILER_ID "MSVC"
+
334  /* _MSC_VER = VVRR */
+
335 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
336 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
337 # if defined(_MSC_FULL_VER)
+
338 # if _MSC_VER >= 1400
+
339  /* _MSC_FULL_VER = VVRRPPPPP */
+
340 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
341 # else
+
342  /* _MSC_FULL_VER = VVRRPPPP */
+
343 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
344 # endif
+
345 # endif
+
346 # if defined(_MSC_BUILD)
+
347 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
348 # endif
+
349 
+
350 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
351 # define COMPILER_ID "ADSP"
+
352 #if defined(__VISUALDSPVERSION__)
+
353  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
354 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
355 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
356 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
357 #endif
+
358 
+
359 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
360 # define COMPILER_ID "IAR"
+
361 # if defined(__VER__) && defined(__ICCARM__)
+
362 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
363 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
364 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
365 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
366 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
367 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
368 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
369 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
370 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
371 # endif
+
372 
+
373 
+
374 /* These compilers are either not known or too old to define an
+
375  identification macro. Try to identify the platform and guess that
+
376  it is the native compiler. */
+
377 #elif defined(__hpux) || defined(__hpua)
+
378 # define COMPILER_ID "HP"
+
379 
+
380 #else /* unknown compiler */
+
381 # define COMPILER_ID ""
+
382 #endif
+
383 
+
384 /* Construct the string literal in pieces to prevent the source from
+
385  getting matched. Store it in a pointer rather than an array
+
386  because some compilers will just produce instructions to fill the
+
387  array rather than assigning a pointer to a static array. */
+
388 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
389 #ifdef SIMULATE_ID
+
390 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
391 #endif
+
392 
+
393 #ifdef __QNXNTO__
+
394 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
395 #endif
+
396 
+
397 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
398 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
399 #endif
+
400 
+
401 #define STRINGIFY_HELPER(X) #X
+
402 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
403 
+
404 /* Identify known platforms by name. */
+
405 #if defined(__linux) || defined(__linux__) || defined(linux)
+
406 # define PLATFORM_ID "Linux"
+
407 
+
408 #elif defined(__MSYS__)
+
409 # define PLATFORM_ID "MSYS"
+
410 
+
411 #elif defined(__CYGWIN__)
+
412 # define PLATFORM_ID "Cygwin"
+
413 
+
414 #elif defined(__MINGW32__)
+
415 # define PLATFORM_ID "MinGW"
+
416 
+
417 #elif defined(__APPLE__)
+
418 # define PLATFORM_ID "Darwin"
+
419 
+
420 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
421 # define PLATFORM_ID "Windows"
+
422 
+
423 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
424 # define PLATFORM_ID "FreeBSD"
+
425 
+
426 #elif defined(__NetBSD__) || defined(__NetBSD)
+
427 # define PLATFORM_ID "NetBSD"
+
428 
+
429 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
430 # define PLATFORM_ID "OpenBSD"
+
431 
+
432 #elif defined(__sun) || defined(sun)
+
433 # define PLATFORM_ID "SunOS"
+
434 
+
435 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
436 # define PLATFORM_ID "AIX"
+
437 
+
438 #elif defined(__hpux) || defined(__hpux__)
+
439 # define PLATFORM_ID "HP-UX"
+
440 
+
441 #elif defined(__HAIKU__)
+
442 # define PLATFORM_ID "Haiku"
+
443 
+
444 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
445 # define PLATFORM_ID "BeOS"
+
446 
+
447 #elif defined(__QNX__) || defined(__QNXNTO__)
+
448 # define PLATFORM_ID "QNX"
+
449 
+
450 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
451 # define PLATFORM_ID "Tru64"
+
452 
+
453 #elif defined(__riscos) || defined(__riscos__)
+
454 # define PLATFORM_ID "RISCos"
+
455 
+
456 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
457 # define PLATFORM_ID "SINIX"
+
458 
+
459 #elif defined(__UNIX_SV__)
+
460 # define PLATFORM_ID "UNIX_SV"
+
461 
+
462 #elif defined(__bsdos__)
+
463 # define PLATFORM_ID "BSDOS"
+
464 
+
465 #elif defined(_MPRAS) || defined(MPRAS)
+
466 # define PLATFORM_ID "MP-RAS"
+
467 
+
468 #elif defined(__osf) || defined(__osf__)
+
469 # define PLATFORM_ID "OSF1"
+
470 
+
471 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
472 # define PLATFORM_ID "SCO_SV"
+
473 
+
474 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
475 # define PLATFORM_ID "ULTRIX"
+
476 
+
477 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
478 # define PLATFORM_ID "Xenix"
+
479 
+
480 #elif defined(__WATCOMC__)
+
481 # if defined(__LINUX__)
+
482 # define PLATFORM_ID "Linux"
+
483 
+
484 # elif defined(__DOS__)
+
485 # define PLATFORM_ID "DOS"
+
486 
+
487 # elif defined(__OS2__)
+
488 # define PLATFORM_ID "OS2"
+
489 
+
490 # elif defined(__WINDOWS__)
+
491 # define PLATFORM_ID "Windows3x"
+
492 
+
493 # elif defined(__VXWORKS__)
+
494 # define PLATFORM_ID "VxWorks"
+
495 
+
496 # else /* unknown platform */
+
497 # define PLATFORM_ID
+
498 # endif
+
499 
+
500 #elif defined(__INTEGRITY)
+
501 # if defined(INT_178B)
+
502 # define PLATFORM_ID "Integrity178"
+
503 
+
504 # else /* regular Integrity */
+
505 # define PLATFORM_ID "Integrity"
+
506 # endif
+
507 
+
508 #else /* unknown platform */
+
509 # define PLATFORM_ID
+
510 
+
511 #endif
+
512 
+
513 /* For windows compilers MSVC and Intel we can determine
+
514  the architecture of the compiler being used. This is because
+
515  the compilers do not have flags that can change the architecture,
+
516  but rather depend on which compiler is being used
+
517 */
+
518 #if defined(_WIN32) && defined(_MSC_VER)
+
519 # if defined(_M_IA64)
+
520 # define ARCHITECTURE_ID "IA64"
+
521 
+
522 # elif defined(_M_ARM64EC)
+
523 # define ARCHITECTURE_ID "ARM64EC"
+
524 
+
525 # elif defined(_M_X64) || defined(_M_AMD64)
+
526 # define ARCHITECTURE_ID "x64"
+
527 
+
528 # elif defined(_M_IX86)
+
529 # define ARCHITECTURE_ID "X86"
+
530 
+
531 # elif defined(_M_ARM64)
+
532 # define ARCHITECTURE_ID "ARM64"
+
533 
+
534 # elif defined(_M_ARM)
+
535 # if _M_ARM == 4
+
536 # define ARCHITECTURE_ID "ARMV4I"
+
537 # elif _M_ARM == 5
+
538 # define ARCHITECTURE_ID "ARMV5I"
+
539 # else
+
540 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
541 # endif
+
542 
+
543 # elif defined(_M_MIPS)
+
544 # define ARCHITECTURE_ID "MIPS"
+
545 
+
546 # elif defined(_M_SH)
+
547 # define ARCHITECTURE_ID "SHx"
+
548 
+
549 # else /* unknown architecture */
+
550 # define ARCHITECTURE_ID ""
+
551 # endif
+
552 
+
553 #elif defined(__WATCOMC__)
+
554 # if defined(_M_I86)
+
555 # define ARCHITECTURE_ID "I86"
+
556 
+
557 # elif defined(_M_IX86)
+
558 # define ARCHITECTURE_ID "X86"
+
559 
+
560 # else /* unknown architecture */
+
561 # define ARCHITECTURE_ID ""
+
562 # endif
+
563 
+
564 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
565 # if defined(__ICCARM__)
+
566 # define ARCHITECTURE_ID "ARM"
+
567 
+
568 # elif defined(__ICCRX__)
+
569 # define ARCHITECTURE_ID "RX"
+
570 
+
571 # elif defined(__ICCRH850__)
+
572 # define ARCHITECTURE_ID "RH850"
+
573 
+
574 # elif defined(__ICCRL78__)
+
575 # define ARCHITECTURE_ID "RL78"
+
576 
+
577 # elif defined(__ICCRISCV__)
+
578 # define ARCHITECTURE_ID "RISCV"
+
579 
+
580 # elif defined(__ICCAVR__)
+
581 # define ARCHITECTURE_ID "AVR"
+
582 
+
583 # elif defined(__ICC430__)
+
584 # define ARCHITECTURE_ID "MSP430"
+
585 
+
586 # elif defined(__ICCV850__)
+
587 # define ARCHITECTURE_ID "V850"
+
588 
+
589 # elif defined(__ICC8051__)
+
590 # define ARCHITECTURE_ID "8051"
+
591 
+
592 # elif defined(__ICCSTM8__)
+
593 # define ARCHITECTURE_ID "STM8"
+
594 
+
595 # else /* unknown architecture */
+
596 # define ARCHITECTURE_ID ""
+
597 # endif
+
598 
+
599 #elif defined(__ghs__)
+
600 # if defined(__PPC64__)
+
601 # define ARCHITECTURE_ID "PPC64"
+
602 
+
603 # elif defined(__ppc__)
+
604 # define ARCHITECTURE_ID "PPC"
+
605 
+
606 # elif defined(__ARM__)
+
607 # define ARCHITECTURE_ID "ARM"
+
608 
+
609 # elif defined(__x86_64__)
+
610 # define ARCHITECTURE_ID "x64"
+
611 
+
612 # elif defined(__i386__)
+
613 # define ARCHITECTURE_ID "X86"
+
614 
+
615 # else /* unknown architecture */
+
616 # define ARCHITECTURE_ID ""
+
617 # endif
+
618 
+
619 #elif defined(__TI_COMPILER_VERSION__)
+
620 # if defined(__TI_ARM__)
+
621 # define ARCHITECTURE_ID "ARM"
+
622 
+
623 # elif defined(__MSP430__)
+
624 # define ARCHITECTURE_ID "MSP430"
+
625 
+
626 # elif defined(__TMS320C28XX__)
+
627 # define ARCHITECTURE_ID "TMS320C28x"
+
628 
+
629 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
630 # define ARCHITECTURE_ID "TMS320C6x"
+
631 
+
632 # else /* unknown architecture */
+
633 # define ARCHITECTURE_ID ""
+
634 # endif
+
635 
+
636 #else
+
637 # define ARCHITECTURE_ID
+
638 #endif
+
639 
+
640 /* Convert integer to decimal digit literals. */
+
641 #define DEC(n) \
+
642  ('0' + (((n) / 10000000)%10)), \
+
643  ('0' + (((n) / 1000000)%10)), \
+
644  ('0' + (((n) / 100000)%10)), \
+
645  ('0' + (((n) / 10000)%10)), \
+
646  ('0' + (((n) / 1000)%10)), \
+
647  ('0' + (((n) / 100)%10)), \
+
648  ('0' + (((n) / 10)%10)), \
+
649  ('0' + ((n) % 10))
+
650 
+
651 /* Convert integer to hex digit literals. */
+
652 #define HEX(n) \
+
653  ('0' + ((n)>>28 & 0xF)), \
+
654  ('0' + ((n)>>24 & 0xF)), \
+
655  ('0' + ((n)>>20 & 0xF)), \
+
656  ('0' + ((n)>>16 & 0xF)), \
+
657  ('0' + ((n)>>12 & 0xF)), \
+
658  ('0' + ((n)>>8 & 0xF)), \
+
659  ('0' + ((n)>>4 & 0xF)), \
+
660  ('0' + ((n) & 0xF))
+
661 
+
662 /* Construct a string literal encoding the version number. */
+
663 #ifdef COMPILER_VERSION
+
664 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
665 
+
666 /* Construct a string literal encoding the version number components. */
+
667 #elif defined(COMPILER_VERSION_MAJOR)
+
668 char const info_version[] = {
+
669  'I', 'N', 'F', 'O', ':',
+
670  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
671  COMPILER_VERSION_MAJOR,
+
672 # ifdef COMPILER_VERSION_MINOR
+
673  '.', COMPILER_VERSION_MINOR,
+
674 # ifdef COMPILER_VERSION_PATCH
+
675  '.', COMPILER_VERSION_PATCH,
+
676 # ifdef COMPILER_VERSION_TWEAK
+
677  '.', COMPILER_VERSION_TWEAK,
+
678 # endif
+
679 # endif
+
680 # endif
+
681  ']','\0'};
+
682 #endif
+
683 
+
684 /* Construct a string literal encoding the internal version number. */
+
685 #ifdef COMPILER_VERSION_INTERNAL
+
686 char const info_version_internal[] = {
+
687  'I', 'N', 'F', 'O', ':',
+
688  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
689  'i','n','t','e','r','n','a','l','[',
+
690  COMPILER_VERSION_INTERNAL,']','\0'};
+
691 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
692 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
693 #endif
+
694 
+
695 /* Construct a string literal encoding the version number components. */
+
696 #ifdef SIMULATE_VERSION_MAJOR
+
697 char const info_simulate_version[] = {
+
698  'I', 'N', 'F', 'O', ':',
+
699  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
700  SIMULATE_VERSION_MAJOR,
+
701 # ifdef SIMULATE_VERSION_MINOR
+
702  '.', SIMULATE_VERSION_MINOR,
+
703 # ifdef SIMULATE_VERSION_PATCH
+
704  '.', SIMULATE_VERSION_PATCH,
+
705 # ifdef SIMULATE_VERSION_TWEAK
+
706  '.', SIMULATE_VERSION_TWEAK,
+
707 # endif
+
708 # endif
+
709 # endif
+
710  ']','\0'};
+
711 #endif
+
712 
+
713 /* Construct the string literal in pieces to prevent the source from
+
714  getting matched. Store it in a pointer rather than an array
+
715  because some compilers will just produce instructions to fill the
+
716  array rather than assigning a pointer to a static array. */
+
717 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
718 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
719 
+
720 
+
721 
+
722 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
723 # if defined(__INTEL_CXX11_MODE__)
+
724 # if defined(__cpp_aggregate_nsdmi)
+
725 # define CXX_STD 201402L
+
726 # else
+
727 # define CXX_STD 201103L
+
728 # endif
+
729 # else
+
730 # define CXX_STD 199711L
+
731 # endif
+
732 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
733 # define CXX_STD _MSVC_LANG
+
734 #else
+
735 # define CXX_STD __cplusplus
+
736 #endif
+
737 
+
738 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
739 #if CXX_STD > 202002L
+
740  "23"
+
741 #elif CXX_STD > 201703L
+
742  "20"
+
743 #elif CXX_STD >= 201703L
+
744  "17"
+
745 #elif CXX_STD >= 201402L
+
746  "14"
+
747 #elif CXX_STD >= 201103L
+
748  "11"
+
749 #else
+
750  "98"
+
751 #endif
+
752 "]";
+
753 
+
754 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
755 /* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */
+
756 #if (defined(__clang__) || defined(__GNUC__) || \
+
757  defined(__TI_COMPILER_VERSION__)) && \
+
758  !defined(__STRICT_ANSI__) && !defined(_MSC_VER)
+
759  "ON"
+
760 #else
+
761  "OFF"
+
762 #endif
+
763 "]";
+
764 
+
765 /*--------------------------------------------------------------------------*/
+
766 
+
767 int main(int argc, char* argv[])
+
768 {
+
769  int require = 0;
+
770  require += info_compiler[argc];
+
771  require += info_platform[argc];
+
772 #ifdef COMPILER_VERSION_MAJOR
+
773  require += info_version[argc];
+
774 #endif
+
775 #ifdef COMPILER_VERSION_INTERNAL
+
776  require += info_version_internal[argc];
+
777 #endif
+
778 #ifdef SIMULATE_ID
+
779  require += info_simulate[argc];
+
780 #endif
+
781 #ifdef SIMULATE_VERSION_MAJOR
+
782  require += info_simulate_version[argc];
+
783 #endif
+
784 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
785  require += info_cray[argc];
+
786 #endif
+
787  require += info_language_standard_default[argc];
+
788  require += info_language_extensions_default[argc];
+
789  (void)argv;
+
790  return require;
+
791 }
+
+
+ + + + diff --git a/docs/_debug___o_f_f_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_f_f_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..ac8c5d2 --- /dev/null +++ b/docs/_debug___o_f_f_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,929 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_OFF/CMakeFiles/3.24.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__SCO_VERSION__)
+
273 # define COMPILER_ID "SCO"
+
274 
+
275 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
276 # define COMPILER_ID "ARMCC"
+
277 #if __ARMCC_VERSION >= 1000000
+
278  /* __ARMCC_VERSION = VRRPPPP */
+
279  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
280  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
281  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
282 #else
+
283  /* __ARMCC_VERSION = VRPPPP */
+
284  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
285  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
286  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
287 #endif
+
288 
+
289 
+
290 #elif defined(__clang__) && defined(__apple_build_version__)
+
291 # define COMPILER_ID "AppleClang"
+
292 # if defined(_MSC_VER)
+
293 # define SIMULATE_ID "MSVC"
+
294 # endif
+
295 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
296 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
297 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
298 # if defined(_MSC_VER)
+
299  /* _MSC_VER = VVRR */
+
300 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
301 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
302 # endif
+
303 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
304 
+
305 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
306 # define COMPILER_ID "ARMClang"
+
307  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
308  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
309  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
310 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
311 
+
312 #elif defined(__clang__)
+
313 # define COMPILER_ID "Clang"
+
314 # if defined(_MSC_VER)
+
315 # define SIMULATE_ID "MSVC"
+
316 # endif
+
317 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
318 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
319 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
320 # if defined(_MSC_VER)
+
321  /* _MSC_VER = VVRR */
+
322 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
323 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
324 # endif
+
325 
+
326 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
327 # define COMPILER_ID "LCC"
+
328 # define COMPILER_VERSION_MAJOR DEC(1)
+
329 # if defined(__LCC__)
+
330 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
331 # endif
+
332 # if defined(__LCC_MINOR__)
+
333 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
334 # endif
+
335 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
336 # define SIMULATE_ID "GNU"
+
337 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
338 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
339 # if defined(__GNUC_PATCHLEVEL__)
+
340 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
341 # endif
+
342 # endif
+
343 
+
344 #elif defined(__GNUC__) || defined(__GNUG__)
+
345 # define COMPILER_ID "GNU"
+
346 # if defined(__GNUC__)
+
347 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
348 # else
+
349 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
350 # endif
+
351 # if defined(__GNUC_MINOR__)
+
352 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
353 # endif
+
354 # if defined(__GNUC_PATCHLEVEL__)
+
355 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
356 # endif
+
357 
+
358 #elif defined(_MSC_VER)
+
359 # define COMPILER_ID "MSVC"
+
360  /* _MSC_VER = VVRR */
+
361 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
362 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
363 # if defined(_MSC_FULL_VER)
+
364 # if _MSC_VER >= 1400
+
365  /* _MSC_FULL_VER = VVRRPPPPP */
+
366 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
367 # else
+
368  /* _MSC_FULL_VER = VVRRPPPP */
+
369 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
370 # endif
+
371 # endif
+
372 # if defined(_MSC_BUILD)
+
373 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
374 # endif
+
375 
+
376 #elif defined(_ADI_COMPILER)
+
377 # define COMPILER_ID "ADSP"
+
378 #if defined(__VERSIONNUM__)
+
379  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
380 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
381 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
382 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
383 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
384 #endif
+
385 
+
386 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
387 # define COMPILER_ID "IAR"
+
388 # if defined(__VER__) && defined(__ICCARM__)
+
389 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
390 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
391 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
392 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
393 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
394 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
395 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
396 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
397 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
398 # endif
+
399 
+
400 
+
401 /* These compilers are either not known or too old to define an
+
402  identification macro. Try to identify the platform and guess that
+
403  it is the native compiler. */
+
404 #elif defined(__hpux) || defined(__hpua)
+
405 # define COMPILER_ID "HP"
+
406 
+
407 #else /* unknown compiler */
+
408 # define COMPILER_ID ""
+
409 #endif
+
410 
+
411 /* Construct the string literal in pieces to prevent the source from
+
412  getting matched. Store it in a pointer rather than an array
+
413  because some compilers will just produce instructions to fill the
+
414  array rather than assigning a pointer to a static array. */
+
415 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
416 #ifdef SIMULATE_ID
+
417 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
418 #endif
+
419 
+
420 #ifdef __QNXNTO__
+
421 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
422 #endif
+
423 
+
424 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
425 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
426 #endif
+
427 
+
428 #define STRINGIFY_HELPER(X) #X
+
429 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
430 
+
431 /* Identify known platforms by name. */
+
432 #if defined(__linux) || defined(__linux__) || defined(linux)
+
433 # define PLATFORM_ID "Linux"
+
434 
+
435 #elif defined(__MSYS__)
+
436 # define PLATFORM_ID "MSYS"
+
437 
+
438 #elif defined(__CYGWIN__)
+
439 # define PLATFORM_ID "Cygwin"
+
440 
+
441 #elif defined(__MINGW32__)
+
442 # define PLATFORM_ID "MinGW"
+
443 
+
444 #elif defined(__APPLE__)
+
445 # define PLATFORM_ID "Darwin"
+
446 
+
447 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
448 # define PLATFORM_ID "Windows"
+
449 
+
450 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
451 # define PLATFORM_ID "FreeBSD"
+
452 
+
453 #elif defined(__NetBSD__) || defined(__NetBSD)
+
454 # define PLATFORM_ID "NetBSD"
+
455 
+
456 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
457 # define PLATFORM_ID "OpenBSD"
+
458 
+
459 #elif defined(__sun) || defined(sun)
+
460 # define PLATFORM_ID "SunOS"
+
461 
+
462 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
463 # define PLATFORM_ID "AIX"
+
464 
+
465 #elif defined(__hpux) || defined(__hpux__)
+
466 # define PLATFORM_ID "HP-UX"
+
467 
+
468 #elif defined(__HAIKU__)
+
469 # define PLATFORM_ID "Haiku"
+
470 
+
471 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
472 # define PLATFORM_ID "BeOS"
+
473 
+
474 #elif defined(__QNX__) || defined(__QNXNTO__)
+
475 # define PLATFORM_ID "QNX"
+
476 
+
477 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
478 # define PLATFORM_ID "Tru64"
+
479 
+
480 #elif defined(__riscos) || defined(__riscos__)
+
481 # define PLATFORM_ID "RISCos"
+
482 
+
483 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
484 # define PLATFORM_ID "SINIX"
+
485 
+
486 #elif defined(__UNIX_SV__)
+
487 # define PLATFORM_ID "UNIX_SV"
+
488 
+
489 #elif defined(__bsdos__)
+
490 # define PLATFORM_ID "BSDOS"
+
491 
+
492 #elif defined(_MPRAS) || defined(MPRAS)
+
493 # define PLATFORM_ID "MP-RAS"
+
494 
+
495 #elif defined(__osf) || defined(__osf__)
+
496 # define PLATFORM_ID "OSF1"
+
497 
+
498 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
499 # define PLATFORM_ID "SCO_SV"
+
500 
+
501 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
502 # define PLATFORM_ID "ULTRIX"
+
503 
+
504 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
505 # define PLATFORM_ID "Xenix"
+
506 
+
507 #elif defined(__WATCOMC__)
+
508 # if defined(__LINUX__)
+
509 # define PLATFORM_ID "Linux"
+
510 
+
511 # elif defined(__DOS__)
+
512 # define PLATFORM_ID "DOS"
+
513 
+
514 # elif defined(__OS2__)
+
515 # define PLATFORM_ID "OS2"
+
516 
+
517 # elif defined(__WINDOWS__)
+
518 # define PLATFORM_ID "Windows3x"
+
519 
+
520 # elif defined(__VXWORKS__)
+
521 # define PLATFORM_ID "VxWorks"
+
522 
+
523 # else /* unknown platform */
+
524 # define PLATFORM_ID
+
525 # endif
+
526 
+
527 #elif defined(__INTEGRITY)
+
528 # if defined(INT_178B)
+
529 # define PLATFORM_ID "Integrity178"
+
530 
+
531 # else /* regular Integrity */
+
532 # define PLATFORM_ID "Integrity"
+
533 # endif
+
534 
+
535 # elif defined(_ADI_COMPILER)
+
536 # define PLATFORM_ID "ADSP"
+
537 
+
538 #else /* unknown platform */
+
539 # define PLATFORM_ID
+
540 
+
541 #endif
+
542 
+
543 /* For windows compilers MSVC and Intel we can determine
+
544  the architecture of the compiler being used. This is because
+
545  the compilers do not have flags that can change the architecture,
+
546  but rather depend on which compiler is being used
+
547 */
+
548 #if defined(_WIN32) && defined(_MSC_VER)
+
549 # if defined(_M_IA64)
+
550 # define ARCHITECTURE_ID "IA64"
+
551 
+
552 # elif defined(_M_ARM64EC)
+
553 # define ARCHITECTURE_ID "ARM64EC"
+
554 
+
555 # elif defined(_M_X64) || defined(_M_AMD64)
+
556 # define ARCHITECTURE_ID "x64"
+
557 
+
558 # elif defined(_M_IX86)
+
559 # define ARCHITECTURE_ID "X86"
+
560 
+
561 # elif defined(_M_ARM64)
+
562 # define ARCHITECTURE_ID "ARM64"
+
563 
+
564 # elif defined(_M_ARM)
+
565 # if _M_ARM == 4
+
566 # define ARCHITECTURE_ID "ARMV4I"
+
567 # elif _M_ARM == 5
+
568 # define ARCHITECTURE_ID "ARMV5I"
+
569 # else
+
570 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
571 # endif
+
572 
+
573 # elif defined(_M_MIPS)
+
574 # define ARCHITECTURE_ID "MIPS"
+
575 
+
576 # elif defined(_M_SH)
+
577 # define ARCHITECTURE_ID "SHx"
+
578 
+
579 # else /* unknown architecture */
+
580 # define ARCHITECTURE_ID ""
+
581 # endif
+
582 
+
583 #elif defined(__WATCOMC__)
+
584 # if defined(_M_I86)
+
585 # define ARCHITECTURE_ID "I86"
+
586 
+
587 # elif defined(_M_IX86)
+
588 # define ARCHITECTURE_ID "X86"
+
589 
+
590 # else /* unknown architecture */
+
591 # define ARCHITECTURE_ID ""
+
592 # endif
+
593 
+
594 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
595 # if defined(__ICCARM__)
+
596 # define ARCHITECTURE_ID "ARM"
+
597 
+
598 # elif defined(__ICCRX__)
+
599 # define ARCHITECTURE_ID "RX"
+
600 
+
601 # elif defined(__ICCRH850__)
+
602 # define ARCHITECTURE_ID "RH850"
+
603 
+
604 # elif defined(__ICCRL78__)
+
605 # define ARCHITECTURE_ID "RL78"
+
606 
+
607 # elif defined(__ICCRISCV__)
+
608 # define ARCHITECTURE_ID "RISCV"
+
609 
+
610 # elif defined(__ICCAVR__)
+
611 # define ARCHITECTURE_ID "AVR"
+
612 
+
613 # elif defined(__ICC430__)
+
614 # define ARCHITECTURE_ID "MSP430"
+
615 
+
616 # elif defined(__ICCV850__)
+
617 # define ARCHITECTURE_ID "V850"
+
618 
+
619 # elif defined(__ICC8051__)
+
620 # define ARCHITECTURE_ID "8051"
+
621 
+
622 # elif defined(__ICCSTM8__)
+
623 # define ARCHITECTURE_ID "STM8"
+
624 
+
625 # else /* unknown architecture */
+
626 # define ARCHITECTURE_ID ""
+
627 # endif
+
628 
+
629 #elif defined(__ghs__)
+
630 # if defined(__PPC64__)
+
631 # define ARCHITECTURE_ID "PPC64"
+
632 
+
633 # elif defined(__ppc__)
+
634 # define ARCHITECTURE_ID "PPC"
+
635 
+
636 # elif defined(__ARM__)
+
637 # define ARCHITECTURE_ID "ARM"
+
638 
+
639 # elif defined(__x86_64__)
+
640 # define ARCHITECTURE_ID "x64"
+
641 
+
642 # elif defined(__i386__)
+
643 # define ARCHITECTURE_ID "X86"
+
644 
+
645 # else /* unknown architecture */
+
646 # define ARCHITECTURE_ID ""
+
647 # endif
+
648 
+
649 #elif defined(__TI_COMPILER_VERSION__)
+
650 # if defined(__TI_ARM__)
+
651 # define ARCHITECTURE_ID "ARM"
+
652 
+
653 # elif defined(__MSP430__)
+
654 # define ARCHITECTURE_ID "MSP430"
+
655 
+
656 # elif defined(__TMS320C28XX__)
+
657 # define ARCHITECTURE_ID "TMS320C28x"
+
658 
+
659 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
660 # define ARCHITECTURE_ID "TMS320C6x"
+
661 
+
662 # else /* unknown architecture */
+
663 # define ARCHITECTURE_ID ""
+
664 # endif
+
665 
+
666 # elif defined(__ADSPSHARC__)
+
667 # define ARCHITECTURE_ID "SHARC"
+
668 
+
669 # elif defined(__ADSPBLACKFIN__)
+
670 # define ARCHITECTURE_ID "Blackfin"
+
671 
+
672 #else
+
673 # define ARCHITECTURE_ID
+
674 #endif
+
675 
+
676 /* Convert integer to decimal digit literals. */
+
677 #define DEC(n) \
+
678  ('0' + (((n) / 10000000)%10)), \
+
679  ('0' + (((n) / 1000000)%10)), \
+
680  ('0' + (((n) / 100000)%10)), \
+
681  ('0' + (((n) / 10000)%10)), \
+
682  ('0' + (((n) / 1000)%10)), \
+
683  ('0' + (((n) / 100)%10)), \
+
684  ('0' + (((n) / 10)%10)), \
+
685  ('0' + ((n) % 10))
+
686 
+
687 /* Convert integer to hex digit literals. */
+
688 #define HEX(n) \
+
689  ('0' + ((n)>>28 & 0xF)), \
+
690  ('0' + ((n)>>24 & 0xF)), \
+
691  ('0' + ((n)>>20 & 0xF)), \
+
692  ('0' + ((n)>>16 & 0xF)), \
+
693  ('0' + ((n)>>12 & 0xF)), \
+
694  ('0' + ((n)>>8 & 0xF)), \
+
695  ('0' + ((n)>>4 & 0xF)), \
+
696  ('0' + ((n) & 0xF))
+
697 
+
698 /* Construct a string literal encoding the version number. */
+
699 #ifdef COMPILER_VERSION
+
700 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
701 
+
702 /* Construct a string literal encoding the version number components. */
+
703 #elif defined(COMPILER_VERSION_MAJOR)
+
704 char const info_version[] = {
+
705  'I', 'N', 'F', 'O', ':',
+
706  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
707  COMPILER_VERSION_MAJOR,
+
708 # ifdef COMPILER_VERSION_MINOR
+
709  '.', COMPILER_VERSION_MINOR,
+
710 # ifdef COMPILER_VERSION_PATCH
+
711  '.', COMPILER_VERSION_PATCH,
+
712 # ifdef COMPILER_VERSION_TWEAK
+
713  '.', COMPILER_VERSION_TWEAK,
+
714 # endif
+
715 # endif
+
716 # endif
+
717  ']','\0'};
+
718 #endif
+
719 
+
720 /* Construct a string literal encoding the internal version number. */
+
721 #ifdef COMPILER_VERSION_INTERNAL
+
722 char const info_version_internal[] = {
+
723  'I', 'N', 'F', 'O', ':',
+
724  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
725  'i','n','t','e','r','n','a','l','[',
+
726  COMPILER_VERSION_INTERNAL,']','\0'};
+
727 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
728 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
729 #endif
+
730 
+
731 /* Construct a string literal encoding the version number components. */
+
732 #ifdef SIMULATE_VERSION_MAJOR
+
733 char const info_simulate_version[] = {
+
734  'I', 'N', 'F', 'O', ':',
+
735  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
736  SIMULATE_VERSION_MAJOR,
+
737 # ifdef SIMULATE_VERSION_MINOR
+
738  '.', SIMULATE_VERSION_MINOR,
+
739 # ifdef SIMULATE_VERSION_PATCH
+
740  '.', SIMULATE_VERSION_PATCH,
+
741 # ifdef SIMULATE_VERSION_TWEAK
+
742  '.', SIMULATE_VERSION_TWEAK,
+
743 # endif
+
744 # endif
+
745 # endif
+
746  ']','\0'};
+
747 #endif
+
748 
+
749 /* Construct the string literal in pieces to prevent the source from
+
750  getting matched. Store it in a pointer rather than an array
+
751  because some compilers will just produce instructions to fill the
+
752  array rather than assigning a pointer to a static array. */
+
753 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
754 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
755 
+
756 
+
757 
+
758 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
759 # if defined(__INTEL_CXX11_MODE__)
+
760 # if defined(__cpp_aggregate_nsdmi)
+
761 # define CXX_STD 201402L
+
762 # else
+
763 # define CXX_STD 201103L
+
764 # endif
+
765 # else
+
766 # define CXX_STD 199711L
+
767 # endif
+
768 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
769 # define CXX_STD _MSVC_LANG
+
770 #else
+
771 # define CXX_STD __cplusplus
+
772 #endif
+
773 
+
774 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
775 #if CXX_STD > 202002L
+
776  "23"
+
777 #elif CXX_STD > 201703L
+
778  "20"
+
779 #elif CXX_STD >= 201703L
+
780  "17"
+
781 #elif CXX_STD >= 201402L
+
782  "14"
+
783 #elif CXX_STD >= 201103L
+
784  "11"
+
785 #else
+
786  "98"
+
787 #endif
+
788 "]";
+
789 
+
790 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
791 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
792  defined(__TI_COMPILER_VERSION__)) && \
+
793  !defined(__STRICT_ANSI__)
+
794  "ON"
+
795 #else
+
796  "OFF"
+
797 #endif
+
798 "]";
+
799 
+
800 /*--------------------------------------------------------------------------*/
+
801 
+
802 int main(int argc, char* argv[])
+
803 {
+
804  int require = 0;
+
805  require += info_compiler[argc];
+
806  require += info_platform[argc];
+
807 #ifdef COMPILER_VERSION_MAJOR
+
808  require += info_version[argc];
+
809 #endif
+
810 #ifdef COMPILER_VERSION_INTERNAL
+
811  require += info_version_internal[argc];
+
812 #endif
+
813 #ifdef SIMULATE_ID
+
814  require += info_simulate[argc];
+
815 #endif
+
816 #ifdef SIMULATE_VERSION_MAJOR
+
817  require += info_simulate_version[argc];
+
818 #endif
+
819 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
820  require += info_cray[argc];
+
821 #endif
+
822  require += info_language_standard_default[argc];
+
823  require += info_language_extensions_default[argc];
+
824  (void)argv;
+
825  return require;
+
826 }
+
+
+ + + + diff --git a/docs/_debug___o_f_f_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_f_f_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..e547e9e --- /dev/null +++ b/docs/_debug___o_f_f_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_OFF/CMakeFiles/3.25.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/_debug___o_f_f_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_f_f_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..1c9689c --- /dev/null +++ b/docs/_debug___o_f_f_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_OFF/CMakeFiles/3.25.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/_debug___o_n_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_n_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..e1b2230 --- /dev/null +++ b/docs/_debug___o_n_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,679 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_ON/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23  /* __INTEL_COMPILER = VRP */
+
24 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
25 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
26 # if defined(__INTEL_COMPILER_UPDATE)
+
27 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
28 # else
+
29 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
30 # endif
+
31 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
32  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
33 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
34 # endif
+
35 # if defined(_MSC_VER)
+
36  /* _MSC_VER = VVRR */
+
37 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
38 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
39 # endif
+
40 
+
41 #elif defined(__PATHCC__)
+
42 # define COMPILER_ID "PathScale"
+
43 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
44 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
45 # if defined(__PATHCC_PATCHLEVEL__)
+
46 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
47 # endif
+
48 
+
49 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
50 # define COMPILER_ID "Embarcadero"
+
51 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
52 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
53 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
54 
+
55 #elif defined(__BORLANDC__)
+
56 # define COMPILER_ID "Borland"
+
57  /* __BORLANDC__ = 0xVRR */
+
58 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
59 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
60 
+
61 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
62 # define COMPILER_ID "Watcom"
+
63  /* __WATCOMC__ = VVRR */
+
64 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
65 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
66 # if (__WATCOMC__ % 10) > 0
+
67 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
68 # endif
+
69 
+
70 #elif defined(__WATCOMC__)
+
71 # define COMPILER_ID "OpenWatcom"
+
72  /* __WATCOMC__ = VVRP + 1100 */
+
73 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
74 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
75 # if (__WATCOMC__ % 10) > 0
+
76 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
77 # endif
+
78 
+
79 #elif defined(__SUNPRO_CC)
+
80 # define COMPILER_ID "SunPro"
+
81 # if __SUNPRO_CC >= 0x5100
+
82  /* __SUNPRO_CC = 0xVRRP */
+
83 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
84 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
85 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
86 # else
+
87  /* __SUNPRO_CC = 0xVRP */
+
88 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
89 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
90 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
91 # endif
+
92 
+
93 #elif defined(__HP_aCC)
+
94 # define COMPILER_ID "HP"
+
95  /* __HP_aCC = VVRRPP */
+
96 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
97 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
98 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
99 
+
100 #elif defined(__DECCXX)
+
101 # define COMPILER_ID "Compaq"
+
102  /* __DECCXX_VER = VVRRTPPPP */
+
103 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
104 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
105 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
106 
+
107 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
108 # define COMPILER_ID "zOS"
+
109  /* __IBMCPP__ = VRP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
111 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
112 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
113 
+
114 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
115 # define COMPILER_ID "XL"
+
116  /* __IBMCPP__ = VRP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
118 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
119 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
120 
+
121 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
122 # define COMPILER_ID "VisualAge"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__PGI)
+
129 # define COMPILER_ID "PGI"
+
130 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
131 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
132 # if defined(__PGIC_PATCHLEVEL__)
+
133 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
134 # endif
+
135 
+
136 #elif defined(_CRAYC)
+
137 # define COMPILER_ID "Cray"
+
138 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
139 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
140 
+
141 #elif defined(__TI_COMPILER_VERSION__)
+
142 # define COMPILER_ID "TI"
+
143  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
144 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
145 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
146 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
147 
+
148 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
149 # define COMPILER_ID "Fujitsu"
+
150 
+
151 #elif defined(__SCO_VERSION__)
+
152 # define COMPILER_ID "SCO"
+
153 
+
154 #elif defined(__clang__) && defined(__apple_build_version__)
+
155 # define COMPILER_ID "AppleClang"
+
156 # if defined(_MSC_VER)
+
157 # define SIMULATE_ID "MSVC"
+
158 # endif
+
159 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
160 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
161 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
162 # if defined(_MSC_VER)
+
163  /* _MSC_VER = VVRR */
+
164 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
165 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
166 # endif
+
167 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
168 
+
169 #elif defined(__clang__)
+
170 # define COMPILER_ID "Clang"
+
171 # if defined(_MSC_VER)
+
172 # define SIMULATE_ID "MSVC"
+
173 # endif
+
174 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
175 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
176 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
177 # if defined(_MSC_VER)
+
178  /* _MSC_VER = VVRR */
+
179 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
180 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
181 # endif
+
182 
+
183 #elif defined(__GNUC__) || defined(__GNUG__)
+
184 # define COMPILER_ID "GNU"
+
185 # if defined(__GNUC__)
+
186 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
187 # else
+
188 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
189 # endif
+
190 # if defined(__GNUC_MINOR__)
+
191 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
192 # endif
+
193 # if defined(__GNUC_PATCHLEVEL__)
+
194 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
195 # endif
+
196 
+
197 #elif defined(_MSC_VER)
+
198 # define COMPILER_ID "MSVC"
+
199  /* _MSC_VER = VVRR */
+
200 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
201 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
202 # if defined(_MSC_FULL_VER)
+
203 # if _MSC_VER >= 1400
+
204  /* _MSC_FULL_VER = VVRRPPPPP */
+
205 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
206 # else
+
207  /* _MSC_FULL_VER = VVRRPPPP */
+
208 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
209 # endif
+
210 # endif
+
211 # if defined(_MSC_BUILD)
+
212 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
213 # endif
+
214 
+
215 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
216 # define COMPILER_ID "ADSP"
+
217 #if defined(__VISUALDSPVERSION__)
+
218  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
219 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
220 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
221 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
222 #endif
+
223 
+
224 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
225 # define COMPILER_ID "IAR"
+
226 # if defined(__VER__)
+
227 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
230 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
231 # endif
+
232 
+
233 #elif defined(__ARMCC_VERSION)
+
234 # define COMPILER_ID "ARMCC"
+
235 #if __ARMCC_VERSION >= 1000000
+
236  /* __ARMCC_VERSION = VRRPPPP */
+
237  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
238  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
239  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
240 #else
+
241  /* __ARMCC_VERSION = VRPPPP */
+
242  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
243  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
244  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
245 #endif
+
246 
+
247 
+
248 #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
+
249 # define COMPILER_ID "MIPSpro"
+
250 # if defined(_SGI_COMPILER_VERSION)
+
251  /* _SGI_COMPILER_VERSION = VRP */
+
252 # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
+
253 # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
+
254 # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
+
255 # else
+
256  /* _COMPILER_VERSION = VRP */
+
257 # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
+
258 # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
+
259 # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
+
260 # endif
+
261 
+
262 
+
263 /* These compilers are either not known or too old to define an
+
264  identification macro. Try to identify the platform and guess that
+
265  it is the native compiler. */
+
266 #elif defined(__sgi)
+
267 # define COMPILER_ID "MIPSpro"
+
268 
+
269 #elif defined(__hpux) || defined(__hpua)
+
270 # define COMPILER_ID "HP"
+
271 
+
272 #else /* unknown compiler */
+
273 # define COMPILER_ID ""
+
274 #endif
+
275 
+
276 /* Construct the string literal in pieces to prevent the source from
+
277  getting matched. Store it in a pointer rather than an array
+
278  because some compilers will just produce instructions to fill the
+
279  array rather than assigning a pointer to a static array. */
+
280 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
281 #ifdef SIMULATE_ID
+
282 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
283 #endif
+
284 
+
285 #ifdef __QNXNTO__
+
286 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
287 #endif
+
288 
+
289 #if defined(__CRAYXE) || defined(__CRAYXC)
+
290 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
291 #endif
+
292 
+
293 #define STRINGIFY_HELPER(X) #X
+
294 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
295 
+
296 /* Identify known platforms by name. */
+
297 #if defined(__linux) || defined(__linux__) || defined(linux)
+
298 # define PLATFORM_ID "Linux"
+
299 
+
300 #elif defined(__CYGWIN__)
+
301 # define PLATFORM_ID "Cygwin"
+
302 
+
303 #elif defined(__MINGW32__)
+
304 # define PLATFORM_ID "MinGW"
+
305 
+
306 #elif defined(__APPLE__)
+
307 # define PLATFORM_ID "Darwin"
+
308 
+
309 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
310 # define PLATFORM_ID "Windows"
+
311 
+
312 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
313 # define PLATFORM_ID "FreeBSD"
+
314 
+
315 #elif defined(__NetBSD__) || defined(__NetBSD)
+
316 # define PLATFORM_ID "NetBSD"
+
317 
+
318 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
319 # define PLATFORM_ID "OpenBSD"
+
320 
+
321 #elif defined(__sun) || defined(sun)
+
322 # define PLATFORM_ID "SunOS"
+
323 
+
324 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
325 # define PLATFORM_ID "AIX"
+
326 
+
327 #elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
+
328 # define PLATFORM_ID "IRIX"
+
329 
+
330 #elif defined(__hpux) || defined(__hpux__)
+
331 # define PLATFORM_ID "HP-UX"
+
332 
+
333 #elif defined(__HAIKU__)
+
334 # define PLATFORM_ID "Haiku"
+
335 
+
336 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
337 # define PLATFORM_ID "BeOS"
+
338 
+
339 #elif defined(__QNX__) || defined(__QNXNTO__)
+
340 # define PLATFORM_ID "QNX"
+
341 
+
342 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
343 # define PLATFORM_ID "Tru64"
+
344 
+
345 #elif defined(__riscos) || defined(__riscos__)
+
346 # define PLATFORM_ID "RISCos"
+
347 
+
348 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
349 # define PLATFORM_ID "SINIX"
+
350 
+
351 #elif defined(__UNIX_SV__)
+
352 # define PLATFORM_ID "UNIX_SV"
+
353 
+
354 #elif defined(__bsdos__)
+
355 # define PLATFORM_ID "BSDOS"
+
356 
+
357 #elif defined(_MPRAS) || defined(MPRAS)
+
358 # define PLATFORM_ID "MP-RAS"
+
359 
+
360 #elif defined(__osf) || defined(__osf__)
+
361 # define PLATFORM_ID "OSF1"
+
362 
+
363 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
364 # define PLATFORM_ID "SCO_SV"
+
365 
+
366 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
367 # define PLATFORM_ID "ULTRIX"
+
368 
+
369 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
370 # define PLATFORM_ID "Xenix"
+
371 
+
372 #elif defined(__WATCOMC__)
+
373 # if defined(__LINUX__)
+
374 # define PLATFORM_ID "Linux"
+
375 
+
376 # elif defined(__DOS__)
+
377 # define PLATFORM_ID "DOS"
+
378 
+
379 # elif defined(__OS2__)
+
380 # define PLATFORM_ID "OS2"
+
381 
+
382 # elif defined(__WINDOWS__)
+
383 # define PLATFORM_ID "Windows3x"
+
384 
+
385 # else /* unknown platform */
+
386 # define PLATFORM_ID
+
387 # endif
+
388 
+
389 #else /* unknown platform */
+
390 # define PLATFORM_ID
+
391 
+
392 #endif
+
393 
+
394 /* For windows compilers MSVC and Intel we can determine
+
395  the architecture of the compiler being used. This is because
+
396  the compilers do not have flags that can change the architecture,
+
397  but rather depend on which compiler is being used
+
398 */
+
399 #if defined(_WIN32) && defined(_MSC_VER)
+
400 # if defined(_M_IA64)
+
401 # define ARCHITECTURE_ID "IA64"
+
402 
+
403 # elif defined(_M_X64) || defined(_M_AMD64)
+
404 # define ARCHITECTURE_ID "x64"
+
405 
+
406 # elif defined(_M_IX86)
+
407 # define ARCHITECTURE_ID "X86"
+
408 
+
409 # elif defined(_M_ARM64)
+
410 # define ARCHITECTURE_ID "ARM64"
+
411 
+
412 # elif defined(_M_ARM)
+
413 # if _M_ARM == 4
+
414 # define ARCHITECTURE_ID "ARMV4I"
+
415 # elif _M_ARM == 5
+
416 # define ARCHITECTURE_ID "ARMV5I"
+
417 # else
+
418 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
419 # endif
+
420 
+
421 # elif defined(_M_MIPS)
+
422 # define ARCHITECTURE_ID "MIPS"
+
423 
+
424 # elif defined(_M_SH)
+
425 # define ARCHITECTURE_ID "SHx"
+
426 
+
427 # else /* unknown architecture */
+
428 # define ARCHITECTURE_ID ""
+
429 # endif
+
430 
+
431 #elif defined(__WATCOMC__)
+
432 # if defined(_M_I86)
+
433 # define ARCHITECTURE_ID "I86"
+
434 
+
435 # elif defined(_M_IX86)
+
436 # define ARCHITECTURE_ID "X86"
+
437 
+
438 # else /* unknown architecture */
+
439 # define ARCHITECTURE_ID ""
+
440 # endif
+
441 
+
442 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
443 # if defined(__ICCARM__)
+
444 # define ARCHITECTURE_ID "ARM"
+
445 
+
446 # elif defined(__ICCAVR__)
+
447 # define ARCHITECTURE_ID "AVR"
+
448 
+
449 # else /* unknown architecture */
+
450 # define ARCHITECTURE_ID ""
+
451 # endif
+
452 #else
+
453 # define ARCHITECTURE_ID
+
454 #endif
+
455 
+
456 /* Convert integer to decimal digit literals. */
+
457 #define DEC(n) \
+
458  ('0' + (((n) / 10000000)%10)), \
+
459  ('0' + (((n) / 1000000)%10)), \
+
460  ('0' + (((n) / 100000)%10)), \
+
461  ('0' + (((n) / 10000)%10)), \
+
462  ('0' + (((n) / 1000)%10)), \
+
463  ('0' + (((n) / 100)%10)), \
+
464  ('0' + (((n) / 10)%10)), \
+
465  ('0' + ((n) % 10))
+
466 
+
467 /* Convert integer to hex digit literals. */
+
468 #define HEX(n) \
+
469  ('0' + ((n)>>28 & 0xF)), \
+
470  ('0' + ((n)>>24 & 0xF)), \
+
471  ('0' + ((n)>>20 & 0xF)), \
+
472  ('0' + ((n)>>16 & 0xF)), \
+
473  ('0' + ((n)>>12 & 0xF)), \
+
474  ('0' + ((n)>>8 & 0xF)), \
+
475  ('0' + ((n)>>4 & 0xF)), \
+
476  ('0' + ((n) & 0xF))
+
477 
+
478 /* Construct a string literal encoding the version number components. */
+
479 #ifdef COMPILER_VERSION_MAJOR
+
480 char const info_version[] = {
+
481  'I', 'N', 'F', 'O', ':',
+
482  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
483  COMPILER_VERSION_MAJOR,
+
484 # ifdef COMPILER_VERSION_MINOR
+
485  '.', COMPILER_VERSION_MINOR,
+
486 # ifdef COMPILER_VERSION_PATCH
+
487  '.', COMPILER_VERSION_PATCH,
+
488 # ifdef COMPILER_VERSION_TWEAK
+
489  '.', COMPILER_VERSION_TWEAK,
+
490 # endif
+
491 # endif
+
492 # endif
+
493  ']','\0'};
+
494 #endif
+
495 
+
496 /* Construct a string literal encoding the internal version number. */
+
497 #ifdef COMPILER_VERSION_INTERNAL
+
498 char const info_version_internal[] = {
+
499  'I', 'N', 'F', 'O', ':',
+
500  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
501  'i','n','t','e','r','n','a','l','[',
+
502  COMPILER_VERSION_INTERNAL,']','\0'};
+
503 #endif
+
504 
+
505 /* Construct a string literal encoding the version number components. */
+
506 #ifdef SIMULATE_VERSION_MAJOR
+
507 char const info_simulate_version[] = {
+
508  'I', 'N', 'F', 'O', ':',
+
509  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
510  SIMULATE_VERSION_MAJOR,
+
511 # ifdef SIMULATE_VERSION_MINOR
+
512  '.', SIMULATE_VERSION_MINOR,
+
513 # ifdef SIMULATE_VERSION_PATCH
+
514  '.', SIMULATE_VERSION_PATCH,
+
515 # ifdef SIMULATE_VERSION_TWEAK
+
516  '.', SIMULATE_VERSION_TWEAK,
+
517 # endif
+
518 # endif
+
519 # endif
+
520  ']','\0'};
+
521 #endif
+
522 
+
523 /* Construct the string literal in pieces to prevent the source from
+
524  getting matched. Store it in a pointer rather than an array
+
525  because some compilers will just produce instructions to fill the
+
526  array rather than assigning a pointer to a static array. */
+
527 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
528 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
529 
+
530 
+
531 
+
532 
+
533 #if defined(_MSC_VER) && defined(_MSVC_LANG)
+
534 #define CXX_STD _MSVC_LANG
+
535 #else
+
536 #define CXX_STD __cplusplus
+
537 #endif
+
538 
+
539 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
540 #if CXX_STD > 201402L
+
541  "17"
+
542 #elif CXX_STD >= 201402L
+
543  "14"
+
544 #elif CXX_STD >= 201103L
+
545  "11"
+
546 #else
+
547  "98"
+
548 #endif
+
549 "]";
+
550 
+
551 /*--------------------------------------------------------------------------*/
+
552 
+
553 int main(int argc, char* argv[])
+
554 {
+
555  int require = 0;
+
556  require += info_compiler[argc];
+
557  require += info_platform[argc];
+
558 #ifdef COMPILER_VERSION_MAJOR
+
559  require += info_version[argc];
+
560 #endif
+
561 #ifdef COMPILER_VERSION_INTERNAL
+
562  require += info_version_internal[argc];
+
563 #endif
+
564 #ifdef SIMULATE_ID
+
565  require += info_simulate[argc];
+
566 #endif
+
567 #ifdef SIMULATE_VERSION_MAJOR
+
568  require += info_simulate_version[argc];
+
569 #endif
+
570 #if defined(__CRAYXE) || defined(__CRAYXC)
+
571  require += info_cray[argc];
+
572 #endif
+
573  require += info_language_dialect_default[argc];
+
574  (void)argv;
+
575  return require;
+
576 }
+
+
+ + + + diff --git a/docs/_debug___o_n_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_n_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..8fe10c6 --- /dev/null +++ b/docs/_debug___o_n_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,766 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_ON/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23 # if defined(__GNUC__)
+
24 # define SIMULATE_ID "GNU"
+
25 # endif
+
26  /* __INTEL_COMPILER = VRP */
+
27 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
28 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
29 # if defined(__INTEL_COMPILER_UPDATE)
+
30 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
31 # else
+
32 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
33 # endif
+
34 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
35  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
36 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
37 # endif
+
38 # if defined(_MSC_VER)
+
39  /* _MSC_VER = VVRR */
+
40 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
41 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
42 # endif
+
43 # if defined(__GNUC__)
+
44 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
45 # elif defined(__GNUG__)
+
46 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
47 # endif
+
48 # if defined(__GNUC_MINOR__)
+
49 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
50 # endif
+
51 # if defined(__GNUC_PATCHLEVEL__)
+
52 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
53 # endif
+
54 
+
55 #elif defined(__PATHCC__)
+
56 # define COMPILER_ID "PathScale"
+
57 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
58 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
59 # if defined(__PATHCC_PATCHLEVEL__)
+
60 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
61 # endif
+
62 
+
63 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
64 # define COMPILER_ID "Embarcadero"
+
65 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
66 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
67 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
68 
+
69 #elif defined(__BORLANDC__)
+
70 # define COMPILER_ID "Borland"
+
71  /* __BORLANDC__ = 0xVRR */
+
72 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
73 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
74 
+
75 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
76 # define COMPILER_ID "Watcom"
+
77  /* __WATCOMC__ = VVRR */
+
78 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
79 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
80 # if (__WATCOMC__ % 10) > 0
+
81 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
82 # endif
+
83 
+
84 #elif defined(__WATCOMC__)
+
85 # define COMPILER_ID "OpenWatcom"
+
86  /* __WATCOMC__ = VVRP + 1100 */
+
87 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
88 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
89 # if (__WATCOMC__ % 10) > 0
+
90 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
91 # endif
+
92 
+
93 #elif defined(__SUNPRO_CC)
+
94 # define COMPILER_ID "SunPro"
+
95 # if __SUNPRO_CC >= 0x5100
+
96  /* __SUNPRO_CC = 0xVRRP */
+
97 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
98 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
99 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
100 # else
+
101  /* __SUNPRO_CC = 0xVRP */
+
102 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
103 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
104 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
105 # endif
+
106 
+
107 #elif defined(__HP_aCC)
+
108 # define COMPILER_ID "HP"
+
109  /* __HP_aCC = VVRRPP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
111 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
112 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
113 
+
114 #elif defined(__DECCXX)
+
115 # define COMPILER_ID "Compaq"
+
116  /* __DECCXX_VER = VVRRTPPPP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
118 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
119 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
120 
+
121 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
122 # define COMPILER_ID "zOS"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__ibmxl__) && defined(__clang__)
+
129 # define COMPILER_ID "XLClang"
+
130 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
131 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
132 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
133 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
134 
+
135 
+
136 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
137 # define COMPILER_ID "XL"
+
138  /* __IBMCPP__ = VRP */
+
139 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
140 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
141 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
142 
+
143 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
144 # define COMPILER_ID "VisualAge"
+
145  /* __IBMCPP__ = VRP */
+
146 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
147 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
148 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
149 
+
150 #elif defined(__PGI)
+
151 # define COMPILER_ID "PGI"
+
152 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
153 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
154 # if defined(__PGIC_PATCHLEVEL__)
+
155 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
156 # endif
+
157 
+
158 #elif defined(_CRAYC)
+
159 # define COMPILER_ID "Cray"
+
160 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
161 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
162 
+
163 #elif defined(__TI_COMPILER_VERSION__)
+
164 # define COMPILER_ID "TI"
+
165  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
166 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
167 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
168 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
169 
+
170 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
171 # define COMPILER_ID "Fujitsu"
+
172 
+
173 #elif defined(__ghs__)
+
174 # define COMPILER_ID "GHS"
+
175 /* __GHS_VERSION_NUMBER = VVVVRP */
+
176 # ifdef __GHS_VERSION_NUMBER
+
177 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
178 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
180 # endif
+
181 
+
182 #elif defined(__SCO_VERSION__)
+
183 # define COMPILER_ID "SCO"
+
184 
+
185 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
186 # define COMPILER_ID "ARMCC"
+
187 #if __ARMCC_VERSION >= 1000000
+
188  /* __ARMCC_VERSION = VRRPPPP */
+
189  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
190  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
191  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
192 #else
+
193  /* __ARMCC_VERSION = VRPPPP */
+
194  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
195  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
196  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
197 #endif
+
198 
+
199 
+
200 #elif defined(__clang__) && defined(__apple_build_version__)
+
201 # define COMPILER_ID "AppleClang"
+
202 # if defined(_MSC_VER)
+
203 # define SIMULATE_ID "MSVC"
+
204 # endif
+
205 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
206 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
207 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
208 # if defined(_MSC_VER)
+
209  /* _MSC_VER = VVRR */
+
210 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
211 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
212 # endif
+
213 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
214 
+
215 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
216 # define COMPILER_ID "ARMClang"
+
217  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
218  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
219  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
220 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
221 
+
222 #elif defined(__clang__)
+
223 # define COMPILER_ID "Clang"
+
224 # if defined(_MSC_VER)
+
225 # define SIMULATE_ID "MSVC"
+
226 # endif
+
227 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
228 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
229 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
230 # if defined(_MSC_VER)
+
231  /* _MSC_VER = VVRR */
+
232 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
233 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
234 # endif
+
235 
+
236 #elif defined(__GNUC__) || defined(__GNUG__)
+
237 # define COMPILER_ID "GNU"
+
238 # if defined(__GNUC__)
+
239 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
240 # else
+
241 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
242 # endif
+
243 # if defined(__GNUC_MINOR__)
+
244 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
245 # endif
+
246 # if defined(__GNUC_PATCHLEVEL__)
+
247 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
248 # endif
+
249 
+
250 #elif defined(_MSC_VER)
+
251 # define COMPILER_ID "MSVC"
+
252  /* _MSC_VER = VVRR */
+
253 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
254 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
255 # if defined(_MSC_FULL_VER)
+
256 # if _MSC_VER >= 1400
+
257  /* _MSC_FULL_VER = VVRRPPPPP */
+
258 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
259 # else
+
260  /* _MSC_FULL_VER = VVRRPPPP */
+
261 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
262 # endif
+
263 # endif
+
264 # if defined(_MSC_BUILD)
+
265 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
266 # endif
+
267 
+
268 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
269 # define COMPILER_ID "ADSP"
+
270 #if defined(__VISUALDSPVERSION__)
+
271  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
272 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
273 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
274 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
275 #endif
+
276 
+
277 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
278 # define COMPILER_ID "IAR"
+
279 # if defined(__VER__) && defined(__ICCARM__)
+
280 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
281 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
282 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
283 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
284 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__))
+
285 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
286 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
287 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
288 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
289 # endif
+
290 
+
291 
+
292 /* These compilers are either not known or too old to define an
+
293  identification macro. Try to identify the platform and guess that
+
294  it is the native compiler. */
+
295 #elif defined(__hpux) || defined(__hpua)
+
296 # define COMPILER_ID "HP"
+
297 
+
298 #else /* unknown compiler */
+
299 # define COMPILER_ID ""
+
300 #endif
+
301 
+
302 /* Construct the string literal in pieces to prevent the source from
+
303  getting matched. Store it in a pointer rather than an array
+
304  because some compilers will just produce instructions to fill the
+
305  array rather than assigning a pointer to a static array. */
+
306 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
307 #ifdef SIMULATE_ID
+
308 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
309 #endif
+
310 
+
311 #ifdef __QNXNTO__
+
312 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
313 #endif
+
314 
+
315 #if defined(__CRAYXE) || defined(__CRAYXC)
+
316 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
317 #endif
+
318 
+
319 #define STRINGIFY_HELPER(X) #X
+
320 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
321 
+
322 /* Identify known platforms by name. */
+
323 #if defined(__linux) || defined(__linux__) || defined(linux)
+
324 # define PLATFORM_ID "Linux"
+
325 
+
326 #elif defined(__CYGWIN__)
+
327 # define PLATFORM_ID "Cygwin"
+
328 
+
329 #elif defined(__MINGW32__)
+
330 # define PLATFORM_ID "MinGW"
+
331 
+
332 #elif defined(__APPLE__)
+
333 # define PLATFORM_ID "Darwin"
+
334 
+
335 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
336 # define PLATFORM_ID "Windows"
+
337 
+
338 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
339 # define PLATFORM_ID "FreeBSD"
+
340 
+
341 #elif defined(__NetBSD__) || defined(__NetBSD)
+
342 # define PLATFORM_ID "NetBSD"
+
343 
+
344 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
345 # define PLATFORM_ID "OpenBSD"
+
346 
+
347 #elif defined(__sun) || defined(sun)
+
348 # define PLATFORM_ID "SunOS"
+
349 
+
350 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
351 # define PLATFORM_ID "AIX"
+
352 
+
353 #elif defined(__hpux) || defined(__hpux__)
+
354 # define PLATFORM_ID "HP-UX"
+
355 
+
356 #elif defined(__HAIKU__)
+
357 # define PLATFORM_ID "Haiku"
+
358 
+
359 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
360 # define PLATFORM_ID "BeOS"
+
361 
+
362 #elif defined(__QNX__) || defined(__QNXNTO__)
+
363 # define PLATFORM_ID "QNX"
+
364 
+
365 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
366 # define PLATFORM_ID "Tru64"
+
367 
+
368 #elif defined(__riscos) || defined(__riscos__)
+
369 # define PLATFORM_ID "RISCos"
+
370 
+
371 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
372 # define PLATFORM_ID "SINIX"
+
373 
+
374 #elif defined(__UNIX_SV__)
+
375 # define PLATFORM_ID "UNIX_SV"
+
376 
+
377 #elif defined(__bsdos__)
+
378 # define PLATFORM_ID "BSDOS"
+
379 
+
380 #elif defined(_MPRAS) || defined(MPRAS)
+
381 # define PLATFORM_ID "MP-RAS"
+
382 
+
383 #elif defined(__osf) || defined(__osf__)
+
384 # define PLATFORM_ID "OSF1"
+
385 
+
386 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
387 # define PLATFORM_ID "SCO_SV"
+
388 
+
389 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
390 # define PLATFORM_ID "ULTRIX"
+
391 
+
392 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
393 # define PLATFORM_ID "Xenix"
+
394 
+
395 #elif defined(__WATCOMC__)
+
396 # if defined(__LINUX__)
+
397 # define PLATFORM_ID "Linux"
+
398 
+
399 # elif defined(__DOS__)
+
400 # define PLATFORM_ID "DOS"
+
401 
+
402 # elif defined(__OS2__)
+
403 # define PLATFORM_ID "OS2"
+
404 
+
405 # elif defined(__WINDOWS__)
+
406 # define PLATFORM_ID "Windows3x"
+
407 
+
408 # elif defined(__VXWORKS__)
+
409 # define PLATFORM_ID "VxWorks"
+
410 
+
411 # else /* unknown platform */
+
412 # define PLATFORM_ID
+
413 # endif
+
414 
+
415 #elif defined(__INTEGRITY)
+
416 # if defined(INT_178B)
+
417 # define PLATFORM_ID "Integrity178"
+
418 
+
419 # else /* regular Integrity */
+
420 # define PLATFORM_ID "Integrity"
+
421 # endif
+
422 
+
423 #else /* unknown platform */
+
424 # define PLATFORM_ID
+
425 
+
426 #endif
+
427 
+
428 /* For windows compilers MSVC and Intel we can determine
+
429  the architecture of the compiler being used. This is because
+
430  the compilers do not have flags that can change the architecture,
+
431  but rather depend on which compiler is being used
+
432 */
+
433 #if defined(_WIN32) && defined(_MSC_VER)
+
434 # if defined(_M_IA64)
+
435 # define ARCHITECTURE_ID "IA64"
+
436 
+
437 # elif defined(_M_X64) || defined(_M_AMD64)
+
438 # define ARCHITECTURE_ID "x64"
+
439 
+
440 # elif defined(_M_IX86)
+
441 # define ARCHITECTURE_ID "X86"
+
442 
+
443 # elif defined(_M_ARM64)
+
444 # define ARCHITECTURE_ID "ARM64"
+
445 
+
446 # elif defined(_M_ARM)
+
447 # if _M_ARM == 4
+
448 # define ARCHITECTURE_ID "ARMV4I"
+
449 # elif _M_ARM == 5
+
450 # define ARCHITECTURE_ID "ARMV5I"
+
451 # else
+
452 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
453 # endif
+
454 
+
455 # elif defined(_M_MIPS)
+
456 # define ARCHITECTURE_ID "MIPS"
+
457 
+
458 # elif defined(_M_SH)
+
459 # define ARCHITECTURE_ID "SHx"
+
460 
+
461 # else /* unknown architecture */
+
462 # define ARCHITECTURE_ID ""
+
463 # endif
+
464 
+
465 #elif defined(__WATCOMC__)
+
466 # if defined(_M_I86)
+
467 # define ARCHITECTURE_ID "I86"
+
468 
+
469 # elif defined(_M_IX86)
+
470 # define ARCHITECTURE_ID "X86"
+
471 
+
472 # else /* unknown architecture */
+
473 # define ARCHITECTURE_ID ""
+
474 # endif
+
475 
+
476 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
477 # if defined(__ICCARM__)
+
478 # define ARCHITECTURE_ID "ARM"
+
479 
+
480 # elif defined(__ICCRX__)
+
481 # define ARCHITECTURE_ID "RX"
+
482 
+
483 # elif defined(__ICCRH850__)
+
484 # define ARCHITECTURE_ID "RH850"
+
485 
+
486 # elif defined(__ICCRL78__)
+
487 # define ARCHITECTURE_ID "RL78"
+
488 
+
489 # elif defined(__ICCRISCV__)
+
490 # define ARCHITECTURE_ID "RISCV"
+
491 
+
492 # elif defined(__ICCAVR__)
+
493 # define ARCHITECTURE_ID "AVR"
+
494 
+
495 # elif defined(__ICC430__)
+
496 # define ARCHITECTURE_ID "MSP430"
+
497 
+
498 # elif defined(__ICCV850__)
+
499 # define ARCHITECTURE_ID "V850"
+
500 
+
501 # elif defined(__ICC8051__)
+
502 # define ARCHITECTURE_ID "8051"
+
503 
+
504 # else /* unknown architecture */
+
505 # define ARCHITECTURE_ID ""
+
506 # endif
+
507 
+
508 #elif defined(__ghs__)
+
509 # if defined(__PPC64__)
+
510 # define ARCHITECTURE_ID "PPC64"
+
511 
+
512 # elif defined(__ppc__)
+
513 # define ARCHITECTURE_ID "PPC"
+
514 
+
515 # elif defined(__ARM__)
+
516 # define ARCHITECTURE_ID "ARM"
+
517 
+
518 # elif defined(__x86_64__)
+
519 # define ARCHITECTURE_ID "x64"
+
520 
+
521 # elif defined(__i386__)
+
522 # define ARCHITECTURE_ID "X86"
+
523 
+
524 # else /* unknown architecture */
+
525 # define ARCHITECTURE_ID ""
+
526 # endif
+
527 #else
+
528 # define ARCHITECTURE_ID
+
529 #endif
+
530 
+
531 /* Convert integer to decimal digit literals. */
+
532 #define DEC(n) \
+
533  ('0' + (((n) / 10000000)%10)), \
+
534  ('0' + (((n) / 1000000)%10)), \
+
535  ('0' + (((n) / 100000)%10)), \
+
536  ('0' + (((n) / 10000)%10)), \
+
537  ('0' + (((n) / 1000)%10)), \
+
538  ('0' + (((n) / 100)%10)), \
+
539  ('0' + (((n) / 10)%10)), \
+
540  ('0' + ((n) % 10))
+
541 
+
542 /* Convert integer to hex digit literals. */
+
543 #define HEX(n) \
+
544  ('0' + ((n)>>28 & 0xF)), \
+
545  ('0' + ((n)>>24 & 0xF)), \
+
546  ('0' + ((n)>>20 & 0xF)), \
+
547  ('0' + ((n)>>16 & 0xF)), \
+
548  ('0' + ((n)>>12 & 0xF)), \
+
549  ('0' + ((n)>>8 & 0xF)), \
+
550  ('0' + ((n)>>4 & 0xF)), \
+
551  ('0' + ((n) & 0xF))
+
552 
+
553 /* Construct a string literal encoding the version number components. */
+
554 #ifdef COMPILER_VERSION_MAJOR
+
555 char const info_version[] = {
+
556  'I', 'N', 'F', 'O', ':',
+
557  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
558  COMPILER_VERSION_MAJOR,
+
559 # ifdef COMPILER_VERSION_MINOR
+
560  '.', COMPILER_VERSION_MINOR,
+
561 # ifdef COMPILER_VERSION_PATCH
+
562  '.', COMPILER_VERSION_PATCH,
+
563 # ifdef COMPILER_VERSION_TWEAK
+
564  '.', COMPILER_VERSION_TWEAK,
+
565 # endif
+
566 # endif
+
567 # endif
+
568  ']','\0'};
+
569 #endif
+
570 
+
571 /* Construct a string literal encoding the internal version number. */
+
572 #ifdef COMPILER_VERSION_INTERNAL
+
573 char const info_version_internal[] = {
+
574  'I', 'N', 'F', 'O', ':',
+
575  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
576  'i','n','t','e','r','n','a','l','[',
+
577  COMPILER_VERSION_INTERNAL,']','\0'};
+
578 #endif
+
579 
+
580 /* Construct a string literal encoding the version number components. */
+
581 #ifdef SIMULATE_VERSION_MAJOR
+
582 char const info_simulate_version[] = {
+
583  'I', 'N', 'F', 'O', ':',
+
584  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
585  SIMULATE_VERSION_MAJOR,
+
586 # ifdef SIMULATE_VERSION_MINOR
+
587  '.', SIMULATE_VERSION_MINOR,
+
588 # ifdef SIMULATE_VERSION_PATCH
+
589  '.', SIMULATE_VERSION_PATCH,
+
590 # ifdef SIMULATE_VERSION_TWEAK
+
591  '.', SIMULATE_VERSION_TWEAK,
+
592 # endif
+
593 # endif
+
594 # endif
+
595  ']','\0'};
+
596 #endif
+
597 
+
598 /* Construct the string literal in pieces to prevent the source from
+
599  getting matched. Store it in a pointer rather than an array
+
600  because some compilers will just produce instructions to fill the
+
601  array rather than assigning a pointer to a static array. */
+
602 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
603 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
604 
+
605 
+
606 
+
607 
+
608 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
609 # if defined(__INTEL_CXX11_MODE__)
+
610 # if defined(__cpp_aggregate_nsdmi)
+
611 # define CXX_STD 201402L
+
612 # else
+
613 # define CXX_STD 201103L
+
614 # endif
+
615 # else
+
616 # define CXX_STD 199711L
+
617 # endif
+
618 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
619 # define CXX_STD _MSVC_LANG
+
620 #else
+
621 # define CXX_STD __cplusplus
+
622 #endif
+
623 
+
624 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
625 #if CXX_STD > 201703L
+
626  "20"
+
627 #elif CXX_STD >= 201703L
+
628  "17"
+
629 #elif CXX_STD >= 201402L
+
630  "14"
+
631 #elif CXX_STD >= 201103L
+
632  "11"
+
633 #else
+
634  "98"
+
635 #endif
+
636 "]";
+
637 
+
638 /*--------------------------------------------------------------------------*/
+
639 
+
640 int main(int argc, char* argv[])
+
641 {
+
642  int require = 0;
+
643  require += info_compiler[argc];
+
644  require += info_platform[argc];
+
645 #ifdef COMPILER_VERSION_MAJOR
+
646  require += info_version[argc];
+
647 #endif
+
648 #ifdef COMPILER_VERSION_INTERNAL
+
649  require += info_version_internal[argc];
+
650 #endif
+
651 #ifdef SIMULATE_ID
+
652  require += info_simulate[argc];
+
653 #endif
+
654 #ifdef SIMULATE_VERSION_MAJOR
+
655  require += info_simulate_version[argc];
+
656 #endif
+
657 #if defined(__CRAYXE) || defined(__CRAYXC)
+
658  require += info_cray[argc];
+
659 #endif
+
660  require += info_language_dialect_default[argc];
+
661  (void)argv;
+
662  return require;
+
663 }
+
+
+ + + + diff --git a/docs/_debug___o_n_2_c_make_files_23_820_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_n_2_c_make_files_23_820_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..8a84d07 --- /dev/null +++ b/docs/_debug___o_n_2_c_make_files_23_820_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,846 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_ON/CMakeFiles/3.20.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23 # if defined(__GNUC__)
+
24 # define SIMULATE_ID "GNU"
+
25 # endif
+
26  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
27  except that a few beta releases use the old format with V=2021. */
+
28 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
29 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
30 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
31 # if defined(__INTEL_COMPILER_UPDATE)
+
32 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
33 # else
+
34 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
35 # endif
+
36 # else
+
37 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
38 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
39  /* The third version component from --version is an update index,
+
40  but no macro is provided for it. */
+
41 # define COMPILER_VERSION_PATCH DEC(0)
+
42 # endif
+
43 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
44  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
45 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
46 # endif
+
47 # if defined(_MSC_VER)
+
48  /* _MSC_VER = VVRR */
+
49 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
50 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
51 # endif
+
52 # if defined(__GNUC__)
+
53 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
54 # elif defined(__GNUG__)
+
55 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
56 # endif
+
57 # if defined(__GNUC_MINOR__)
+
58 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
59 # endif
+
60 # if defined(__GNUC_PATCHLEVEL__)
+
61 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
62 # endif
+
63 
+
64 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
65 # define COMPILER_ID "IntelLLVM"
+
66 #if defined(_MSC_VER)
+
67 # define SIMULATE_ID "MSVC"
+
68 #endif
+
69 #if defined(__GNUC__)
+
70 # define SIMULATE_ID "GNU"
+
71 #endif
+
72 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
73  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
74  * VVVV is no smaller than the current year when a versio is released.
+
75  */
+
76 #if __INTEL_LLVM_COMPILER < 1000000L
+
77 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
78 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
79 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
80 #else
+
81 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
82 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
83 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
84 #endif
+
85 #if defined(_MSC_VER)
+
86  /* _MSC_VER = VVRR */
+
87 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
88 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
89 #endif
+
90 #if defined(__GNUC__)
+
91 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
92 #elif defined(__GNUG__)
+
93 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
94 #endif
+
95 #if defined(__GNUC_MINOR__)
+
96 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
97 #endif
+
98 #if defined(__GNUC_PATCHLEVEL__)
+
99 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
100 #endif
+
101 
+
102 #elif defined(__PATHCC__)
+
103 # define COMPILER_ID "PathScale"
+
104 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
105 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
106 # if defined(__PATHCC_PATCHLEVEL__)
+
107 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
108 # endif
+
109 
+
110 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
111 # define COMPILER_ID "Embarcadero"
+
112 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
113 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
114 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
115 
+
116 #elif defined(__BORLANDC__)
+
117 # define COMPILER_ID "Borland"
+
118  /* __BORLANDC__ = 0xVRR */
+
119 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
120 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
121 
+
122 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
123 # define COMPILER_ID "Watcom"
+
124  /* __WATCOMC__ = VVRR */
+
125 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
126 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
127 # if (__WATCOMC__ % 10) > 0
+
128 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
129 # endif
+
130 
+
131 #elif defined(__WATCOMC__)
+
132 # define COMPILER_ID "OpenWatcom"
+
133  /* __WATCOMC__ = VVRP + 1100 */
+
134 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
135 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
136 # if (__WATCOMC__ % 10) > 0
+
137 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
138 # endif
+
139 
+
140 #elif defined(__SUNPRO_CC)
+
141 # define COMPILER_ID "SunPro"
+
142 # if __SUNPRO_CC >= 0x5100
+
143  /* __SUNPRO_CC = 0xVRRP */
+
144 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
145 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
146 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
147 # else
+
148  /* __SUNPRO_CC = 0xVRP */
+
149 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
150 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
151 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
152 # endif
+
153 
+
154 #elif defined(__HP_aCC)
+
155 # define COMPILER_ID "HP"
+
156  /* __HP_aCC = VVRRPP */
+
157 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
158 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
159 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
160 
+
161 #elif defined(__DECCXX)
+
162 # define COMPILER_ID "Compaq"
+
163  /* __DECCXX_VER = VVRRTPPPP */
+
164 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
165 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
166 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
167 
+
168 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
169 # define COMPILER_ID "zOS"
+
170  /* __IBMCPP__ = VRP */
+
171 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
172 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
173 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
174 
+
175 #elif defined(__ibmxl__) && defined(__clang__)
+
176 # define COMPILER_ID "XLClang"
+
177 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
178 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
179 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
180 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
181 
+
182 
+
183 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
184 # define COMPILER_ID "XL"
+
185  /* __IBMCPP__ = VRP */
+
186 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
187 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
188 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
189 
+
190 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
191 # define COMPILER_ID "VisualAge"
+
192  /* __IBMCPP__ = VRP */
+
193 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
194 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
195 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
196 
+
197 #elif defined(__NVCOMPILER)
+
198 # define COMPILER_ID "NVHPC"
+
199 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
200 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
201 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
202 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
203 # endif
+
204 
+
205 #elif defined(__PGI)
+
206 # define COMPILER_ID "PGI"
+
207 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
208 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
209 # if defined(__PGIC_PATCHLEVEL__)
+
210 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
211 # endif
+
212 
+
213 #elif defined(_CRAYC)
+
214 # define COMPILER_ID "Cray"
+
215 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
216 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
217 
+
218 #elif defined(__TI_COMPILER_VERSION__)
+
219 # define COMPILER_ID "TI"
+
220  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
221 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
222 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
223 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
224 
+
225 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
226 # define COMPILER_ID "Fujitsu"
+
227 
+
228 #elif defined(__ghs__)
+
229 # define COMPILER_ID "GHS"
+
230 /* __GHS_VERSION_NUMBER = VVVVRP */
+
231 # ifdef __GHS_VERSION_NUMBER
+
232 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
233 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
234 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
235 # endif
+
236 
+
237 #elif defined(__SCO_VERSION__)
+
238 # define COMPILER_ID "SCO"
+
239 
+
240 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
241 # define COMPILER_ID "ARMCC"
+
242 #if __ARMCC_VERSION >= 1000000
+
243  /* __ARMCC_VERSION = VRRPPPP */
+
244  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
245  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
246  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
247 #else
+
248  /* __ARMCC_VERSION = VRPPPP */
+
249  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
250  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
251  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
252 #endif
+
253 
+
254 
+
255 #elif defined(__clang__) && defined(__apple_build_version__)
+
256 # define COMPILER_ID "AppleClang"
+
257 # if defined(_MSC_VER)
+
258 # define SIMULATE_ID "MSVC"
+
259 # endif
+
260 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
261 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
262 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
263 # if defined(_MSC_VER)
+
264  /* _MSC_VER = VVRR */
+
265 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
266 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
267 # endif
+
268 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
269 
+
270 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
271 # define COMPILER_ID "ARMClang"
+
272  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
273  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
274  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
275 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
276 
+
277 #elif defined(__clang__)
+
278 # define COMPILER_ID "Clang"
+
279 # if defined(_MSC_VER)
+
280 # define SIMULATE_ID "MSVC"
+
281 # endif
+
282 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
283 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
284 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
285 # if defined(_MSC_VER)
+
286  /* _MSC_VER = VVRR */
+
287 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
288 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
289 # endif
+
290 
+
291 #elif defined(__GNUC__) || defined(__GNUG__)
+
292 # define COMPILER_ID "GNU"
+
293 # if defined(__GNUC__)
+
294 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
295 # else
+
296 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
297 # endif
+
298 # if defined(__GNUC_MINOR__)
+
299 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
300 # endif
+
301 # if defined(__GNUC_PATCHLEVEL__)
+
302 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
303 # endif
+
304 
+
305 #elif defined(_MSC_VER)
+
306 # define COMPILER_ID "MSVC"
+
307  /* _MSC_VER = VVRR */
+
308 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
309 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
310 # if defined(_MSC_FULL_VER)
+
311 # if _MSC_VER >= 1400
+
312  /* _MSC_FULL_VER = VVRRPPPPP */
+
313 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
314 # else
+
315  /* _MSC_FULL_VER = VVRRPPPP */
+
316 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
317 # endif
+
318 # endif
+
319 # if defined(_MSC_BUILD)
+
320 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
321 # endif
+
322 
+
323 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
324 # define COMPILER_ID "ADSP"
+
325 #if defined(__VISUALDSPVERSION__)
+
326  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
327 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
328 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
329 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
330 #endif
+
331 
+
332 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
333 # define COMPILER_ID "IAR"
+
334 # if defined(__VER__) && defined(__ICCARM__)
+
335 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
336 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
337 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
338 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
339 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
340 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
341 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
342 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
343 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
344 # endif
+
345 
+
346 
+
347 /* These compilers are either not known or too old to define an
+
348  identification macro. Try to identify the platform and guess that
+
349  it is the native compiler. */
+
350 #elif defined(__hpux) || defined(__hpua)
+
351 # define COMPILER_ID "HP"
+
352 
+
353 #else /* unknown compiler */
+
354 # define COMPILER_ID ""
+
355 #endif
+
356 
+
357 /* Construct the string literal in pieces to prevent the source from
+
358  getting matched. Store it in a pointer rather than an array
+
359  because some compilers will just produce instructions to fill the
+
360  array rather than assigning a pointer to a static array. */
+
361 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
362 #ifdef SIMULATE_ID
+
363 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
364 #endif
+
365 
+
366 #ifdef __QNXNTO__
+
367 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
368 #endif
+
369 
+
370 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
371 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
372 #endif
+
373 
+
374 #define STRINGIFY_HELPER(X) #X
+
375 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
376 
+
377 /* Identify known platforms by name. */
+
378 #if defined(__linux) || defined(__linux__) || defined(linux)
+
379 # define PLATFORM_ID "Linux"
+
380 
+
381 #elif defined(__CYGWIN__)
+
382 # define PLATFORM_ID "Cygwin"
+
383 
+
384 #elif defined(__MINGW32__)
+
385 # define PLATFORM_ID "MinGW"
+
386 
+
387 #elif defined(__APPLE__)
+
388 # define PLATFORM_ID "Darwin"
+
389 
+
390 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
391 # define PLATFORM_ID "Windows"
+
392 
+
393 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
394 # define PLATFORM_ID "FreeBSD"
+
395 
+
396 #elif defined(__NetBSD__) || defined(__NetBSD)
+
397 # define PLATFORM_ID "NetBSD"
+
398 
+
399 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
400 # define PLATFORM_ID "OpenBSD"
+
401 
+
402 #elif defined(__sun) || defined(sun)
+
403 # define PLATFORM_ID "SunOS"
+
404 
+
405 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
406 # define PLATFORM_ID "AIX"
+
407 
+
408 #elif defined(__hpux) || defined(__hpux__)
+
409 # define PLATFORM_ID "HP-UX"
+
410 
+
411 #elif defined(__HAIKU__)
+
412 # define PLATFORM_ID "Haiku"
+
413 
+
414 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
415 # define PLATFORM_ID "BeOS"
+
416 
+
417 #elif defined(__QNX__) || defined(__QNXNTO__)
+
418 # define PLATFORM_ID "QNX"
+
419 
+
420 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
421 # define PLATFORM_ID "Tru64"
+
422 
+
423 #elif defined(__riscos) || defined(__riscos__)
+
424 # define PLATFORM_ID "RISCos"
+
425 
+
426 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
427 # define PLATFORM_ID "SINIX"
+
428 
+
429 #elif defined(__UNIX_SV__)
+
430 # define PLATFORM_ID "UNIX_SV"
+
431 
+
432 #elif defined(__bsdos__)
+
433 # define PLATFORM_ID "BSDOS"
+
434 
+
435 #elif defined(_MPRAS) || defined(MPRAS)
+
436 # define PLATFORM_ID "MP-RAS"
+
437 
+
438 #elif defined(__osf) || defined(__osf__)
+
439 # define PLATFORM_ID "OSF1"
+
440 
+
441 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
442 # define PLATFORM_ID "SCO_SV"
+
443 
+
444 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
445 # define PLATFORM_ID "ULTRIX"
+
446 
+
447 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
448 # define PLATFORM_ID "Xenix"
+
449 
+
450 #elif defined(__WATCOMC__)
+
451 # if defined(__LINUX__)
+
452 # define PLATFORM_ID "Linux"
+
453 
+
454 # elif defined(__DOS__)
+
455 # define PLATFORM_ID "DOS"
+
456 
+
457 # elif defined(__OS2__)
+
458 # define PLATFORM_ID "OS2"
+
459 
+
460 # elif defined(__WINDOWS__)
+
461 # define PLATFORM_ID "Windows3x"
+
462 
+
463 # elif defined(__VXWORKS__)
+
464 # define PLATFORM_ID "VxWorks"
+
465 
+
466 # else /* unknown platform */
+
467 # define PLATFORM_ID
+
468 # endif
+
469 
+
470 #elif defined(__INTEGRITY)
+
471 # if defined(INT_178B)
+
472 # define PLATFORM_ID "Integrity178"
+
473 
+
474 # else /* regular Integrity */
+
475 # define PLATFORM_ID "Integrity"
+
476 # endif
+
477 
+
478 #else /* unknown platform */
+
479 # define PLATFORM_ID
+
480 
+
481 #endif
+
482 
+
483 /* For windows compilers MSVC and Intel we can determine
+
484  the architecture of the compiler being used. This is because
+
485  the compilers do not have flags that can change the architecture,
+
486  but rather depend on which compiler is being used
+
487 */
+
488 #if defined(_WIN32) && defined(_MSC_VER)
+
489 # if defined(_M_IA64)
+
490 # define ARCHITECTURE_ID "IA64"
+
491 
+
492 # elif defined(_M_ARM64EC)
+
493 # define ARCHITECTURE_ID "ARM64EC"
+
494 
+
495 # elif defined(_M_X64) || defined(_M_AMD64)
+
496 # define ARCHITECTURE_ID "x64"
+
497 
+
498 # elif defined(_M_IX86)
+
499 # define ARCHITECTURE_ID "X86"
+
500 
+
501 # elif defined(_M_ARM64)
+
502 # define ARCHITECTURE_ID "ARM64"
+
503 
+
504 # elif defined(_M_ARM)
+
505 # if _M_ARM == 4
+
506 # define ARCHITECTURE_ID "ARMV4I"
+
507 # elif _M_ARM == 5
+
508 # define ARCHITECTURE_ID "ARMV5I"
+
509 # else
+
510 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
511 # endif
+
512 
+
513 # elif defined(_M_MIPS)
+
514 # define ARCHITECTURE_ID "MIPS"
+
515 
+
516 # elif defined(_M_SH)
+
517 # define ARCHITECTURE_ID "SHx"
+
518 
+
519 # else /* unknown architecture */
+
520 # define ARCHITECTURE_ID ""
+
521 # endif
+
522 
+
523 #elif defined(__WATCOMC__)
+
524 # if defined(_M_I86)
+
525 # define ARCHITECTURE_ID "I86"
+
526 
+
527 # elif defined(_M_IX86)
+
528 # define ARCHITECTURE_ID "X86"
+
529 
+
530 # else /* unknown architecture */
+
531 # define ARCHITECTURE_ID ""
+
532 # endif
+
533 
+
534 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
535 # if defined(__ICCARM__)
+
536 # define ARCHITECTURE_ID "ARM"
+
537 
+
538 # elif defined(__ICCRX__)
+
539 # define ARCHITECTURE_ID "RX"
+
540 
+
541 # elif defined(__ICCRH850__)
+
542 # define ARCHITECTURE_ID "RH850"
+
543 
+
544 # elif defined(__ICCRL78__)
+
545 # define ARCHITECTURE_ID "RL78"
+
546 
+
547 # elif defined(__ICCRISCV__)
+
548 # define ARCHITECTURE_ID "RISCV"
+
549 
+
550 # elif defined(__ICCAVR__)
+
551 # define ARCHITECTURE_ID "AVR"
+
552 
+
553 # elif defined(__ICC430__)
+
554 # define ARCHITECTURE_ID "MSP430"
+
555 
+
556 # elif defined(__ICCV850__)
+
557 # define ARCHITECTURE_ID "V850"
+
558 
+
559 # elif defined(__ICC8051__)
+
560 # define ARCHITECTURE_ID "8051"
+
561 
+
562 # elif defined(__ICCSTM8__)
+
563 # define ARCHITECTURE_ID "STM8"
+
564 
+
565 # else /* unknown architecture */
+
566 # define ARCHITECTURE_ID ""
+
567 # endif
+
568 
+
569 #elif defined(__ghs__)
+
570 # if defined(__PPC64__)
+
571 # define ARCHITECTURE_ID "PPC64"
+
572 
+
573 # elif defined(__ppc__)
+
574 # define ARCHITECTURE_ID "PPC"
+
575 
+
576 # elif defined(__ARM__)
+
577 # define ARCHITECTURE_ID "ARM"
+
578 
+
579 # elif defined(__x86_64__)
+
580 # define ARCHITECTURE_ID "x64"
+
581 
+
582 # elif defined(__i386__)
+
583 # define ARCHITECTURE_ID "X86"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__TI_COMPILER_VERSION__)
+
590 # if defined(__TI_ARM__)
+
591 # define ARCHITECTURE_ID "ARM"
+
592 
+
593 # elif defined(__MSP430__)
+
594 # define ARCHITECTURE_ID "MSP430"
+
595 
+
596 # elif defined(__TMS320C28XX__)
+
597 # define ARCHITECTURE_ID "TMS320C28x"
+
598 
+
599 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
600 # define ARCHITECTURE_ID "TMS320C6x"
+
601 
+
602 # else /* unknown architecture */
+
603 # define ARCHITECTURE_ID ""
+
604 # endif
+
605 
+
606 #else
+
607 # define ARCHITECTURE_ID
+
608 #endif
+
609 
+
610 /* Convert integer to decimal digit literals. */
+
611 #define DEC(n) \
+
612  ('0' + (((n) / 10000000)%10)), \
+
613  ('0' + (((n) / 1000000)%10)), \
+
614  ('0' + (((n) / 100000)%10)), \
+
615  ('0' + (((n) / 10000)%10)), \
+
616  ('0' + (((n) / 1000)%10)), \
+
617  ('0' + (((n) / 100)%10)), \
+
618  ('0' + (((n) / 10)%10)), \
+
619  ('0' + ((n) % 10))
+
620 
+
621 /* Convert integer to hex digit literals. */
+
622 #define HEX(n) \
+
623  ('0' + ((n)>>28 & 0xF)), \
+
624  ('0' + ((n)>>24 & 0xF)), \
+
625  ('0' + ((n)>>20 & 0xF)), \
+
626  ('0' + ((n)>>16 & 0xF)), \
+
627  ('0' + ((n)>>12 & 0xF)), \
+
628  ('0' + ((n)>>8 & 0xF)), \
+
629  ('0' + ((n)>>4 & 0xF)), \
+
630  ('0' + ((n) & 0xF))
+
631 
+
632 /* Construct a string literal encoding the version number components. */
+
633 #ifdef COMPILER_VERSION_MAJOR
+
634 char const info_version[] = {
+
635  'I', 'N', 'F', 'O', ':',
+
636  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
637  COMPILER_VERSION_MAJOR,
+
638 # ifdef COMPILER_VERSION_MINOR
+
639  '.', COMPILER_VERSION_MINOR,
+
640 # ifdef COMPILER_VERSION_PATCH
+
641  '.', COMPILER_VERSION_PATCH,
+
642 # ifdef COMPILER_VERSION_TWEAK
+
643  '.', COMPILER_VERSION_TWEAK,
+
644 # endif
+
645 # endif
+
646 # endif
+
647  ']','\0'};
+
648 #endif
+
649 
+
650 /* Construct a string literal encoding the internal version number. */
+
651 #ifdef COMPILER_VERSION_INTERNAL
+
652 char const info_version_internal[] = {
+
653  'I', 'N', 'F', 'O', ':',
+
654  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
655  'i','n','t','e','r','n','a','l','[',
+
656  COMPILER_VERSION_INTERNAL,']','\0'};
+
657 #endif
+
658 
+
659 /* Construct a string literal encoding the version number components. */
+
660 #ifdef SIMULATE_VERSION_MAJOR
+
661 char const info_simulate_version[] = {
+
662  'I', 'N', 'F', 'O', ':',
+
663  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
664  SIMULATE_VERSION_MAJOR,
+
665 # ifdef SIMULATE_VERSION_MINOR
+
666  '.', SIMULATE_VERSION_MINOR,
+
667 # ifdef SIMULATE_VERSION_PATCH
+
668  '.', SIMULATE_VERSION_PATCH,
+
669 # ifdef SIMULATE_VERSION_TWEAK
+
670  '.', SIMULATE_VERSION_TWEAK,
+
671 # endif
+
672 # endif
+
673 # endif
+
674  ']','\0'};
+
675 #endif
+
676 
+
677 /* Construct the string literal in pieces to prevent the source from
+
678  getting matched. Store it in a pointer rather than an array
+
679  because some compilers will just produce instructions to fill the
+
680  array rather than assigning a pointer to a static array. */
+
681 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
682 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
683 
+
684 
+
685 
+
686 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
687 # if defined(__INTEL_CXX11_MODE__)
+
688 # if defined(__cpp_aggregate_nsdmi)
+
689 # define CXX_STD 201402L
+
690 # else
+
691 # define CXX_STD 201103L
+
692 # endif
+
693 # else
+
694 # define CXX_STD 199711L
+
695 # endif
+
696 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
697 # define CXX_STD _MSVC_LANG
+
698 #else
+
699 # define CXX_STD __cplusplus
+
700 #endif
+
701 
+
702 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
703 #if CXX_STD > 202002L
+
704  "23"
+
705 #elif CXX_STD > 201703L
+
706  "20"
+
707 #elif CXX_STD >= 201703L
+
708  "17"
+
709 #elif CXX_STD >= 201402L
+
710  "14"
+
711 #elif CXX_STD >= 201103L
+
712  "11"
+
713 #else
+
714  "98"
+
715 #endif
+
716 "]";
+
717 
+
718 /*--------------------------------------------------------------------------*/
+
719 
+
720 int main(int argc, char* argv[])
+
721 {
+
722  int require = 0;
+
723  require += info_compiler[argc];
+
724  require += info_platform[argc];
+
725 #ifdef COMPILER_VERSION_MAJOR
+
726  require += info_version[argc];
+
727 #endif
+
728 #ifdef COMPILER_VERSION_INTERNAL
+
729  require += info_version_internal[argc];
+
730 #endif
+
731 #ifdef SIMULATE_ID
+
732  require += info_simulate[argc];
+
733 #endif
+
734 #ifdef SIMULATE_VERSION_MAJOR
+
735  require += info_simulate_version[argc];
+
736 #endif
+
737 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
738  require += info_cray[argc];
+
739 #endif
+
740  require += info_language_dialect_default[argc];
+
741  (void)argv;
+
742  return require;
+
743 }
+
+
+ + + + diff --git a/docs/_debug___o_n_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_n_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..dc26847 --- /dev/null +++ b/docs/_debug___o_n_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,894 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_ON/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__ibmxl__) && defined(__clang__)
+
182 # define COMPILER_ID "XLClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
190 # define COMPILER_ID "XL"
+
191  /* __IBMCPP__ = VRP */
+
192 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
193 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
194 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
195 
+
196 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
197 # define COMPILER_ID "VisualAge"
+
198  /* __IBMCPP__ = VRP */
+
199 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
200 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
201 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
202 
+
203 #elif defined(__NVCOMPILER)
+
204 # define COMPILER_ID "NVHPC"
+
205 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
206 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
207 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
208 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
209 # endif
+
210 
+
211 #elif defined(__PGI)
+
212 # define COMPILER_ID "PGI"
+
213 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
214 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
215 # if defined(__PGIC_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(_CRAYC)
+
220 # define COMPILER_ID "Cray"
+
221 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
222 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
223 
+
224 #elif defined(__TI_COMPILER_VERSION__)
+
225 # define COMPILER_ID "TI"
+
226  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
227 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
230 
+
231 #elif defined(__CLANG_FUJITSU)
+
232 # define COMPILER_ID "FujitsuClang"
+
233 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
234 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
235 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
236 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
237 
+
238 
+
239 #elif defined(__FUJITSU)
+
240 # define COMPILER_ID "Fujitsu"
+
241 # if defined(__FCC_version__)
+
242 # define COMPILER_VERSION __FCC_version__
+
243 # elif defined(__FCC_major__)
+
244 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
245 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
246 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
247 # endif
+
248 # if defined(__fcc_version)
+
249 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
250 # elif defined(__FCC_VERSION)
+
251 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
252 # endif
+
253 
+
254 
+
255 #elif defined(__ghs__)
+
256 # define COMPILER_ID "GHS"
+
257 /* __GHS_VERSION_NUMBER = VVVVRP */
+
258 # ifdef __GHS_VERSION_NUMBER
+
259 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
260 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
261 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
262 # endif
+
263 
+
264 #elif defined(__SCO_VERSION__)
+
265 # define COMPILER_ID "SCO"
+
266 
+
267 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
268 # define COMPILER_ID "ARMCC"
+
269 #if __ARMCC_VERSION >= 1000000
+
270  /* __ARMCC_VERSION = VRRPPPP */
+
271  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
272  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
273  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
274 #else
+
275  /* __ARMCC_VERSION = VRPPPP */
+
276  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
277  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
278  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
279 #endif
+
280 
+
281 
+
282 #elif defined(__clang__) && defined(__apple_build_version__)
+
283 # define COMPILER_ID "AppleClang"
+
284 # if defined(_MSC_VER)
+
285 # define SIMULATE_ID "MSVC"
+
286 # endif
+
287 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
288 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
289 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
290 # if defined(_MSC_VER)
+
291  /* _MSC_VER = VVRR */
+
292 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
293 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
294 # endif
+
295 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
296 
+
297 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
298 # define COMPILER_ID "ARMClang"
+
299  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
300  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
301  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
302 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
303 
+
304 #elif defined(__clang__)
+
305 # define COMPILER_ID "Clang"
+
306 # if defined(_MSC_VER)
+
307 # define SIMULATE_ID "MSVC"
+
308 # endif
+
309 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
310 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
311 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
312 # if defined(_MSC_VER)
+
313  /* _MSC_VER = VVRR */
+
314 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
315 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
316 # endif
+
317 
+
318 #elif defined(__GNUC__) || defined(__GNUG__)
+
319 # define COMPILER_ID "GNU"
+
320 # if defined(__GNUC__)
+
321 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
322 # else
+
323 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
324 # endif
+
325 # if defined(__GNUC_MINOR__)
+
326 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
327 # endif
+
328 # if defined(__GNUC_PATCHLEVEL__)
+
329 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
330 # endif
+
331 
+
332 #elif defined(_MSC_VER)
+
333 # define COMPILER_ID "MSVC"
+
334  /* _MSC_VER = VVRR */
+
335 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
336 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
337 # if defined(_MSC_FULL_VER)
+
338 # if _MSC_VER >= 1400
+
339  /* _MSC_FULL_VER = VVRRPPPPP */
+
340 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
341 # else
+
342  /* _MSC_FULL_VER = VVRRPPPP */
+
343 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
344 # endif
+
345 # endif
+
346 # if defined(_MSC_BUILD)
+
347 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
348 # endif
+
349 
+
350 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
351 # define COMPILER_ID "ADSP"
+
352 #if defined(__VISUALDSPVERSION__)
+
353  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
354 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
355 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
356 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
357 #endif
+
358 
+
359 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
360 # define COMPILER_ID "IAR"
+
361 # if defined(__VER__) && defined(__ICCARM__)
+
362 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
363 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
364 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
365 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
366 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
367 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
368 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
369 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
370 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
371 # endif
+
372 
+
373 
+
374 /* These compilers are either not known or too old to define an
+
375  identification macro. Try to identify the platform and guess that
+
376  it is the native compiler. */
+
377 #elif defined(__hpux) || defined(__hpua)
+
378 # define COMPILER_ID "HP"
+
379 
+
380 #else /* unknown compiler */
+
381 # define COMPILER_ID ""
+
382 #endif
+
383 
+
384 /* Construct the string literal in pieces to prevent the source from
+
385  getting matched. Store it in a pointer rather than an array
+
386  because some compilers will just produce instructions to fill the
+
387  array rather than assigning a pointer to a static array. */
+
388 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
389 #ifdef SIMULATE_ID
+
390 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
391 #endif
+
392 
+
393 #ifdef __QNXNTO__
+
394 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
395 #endif
+
396 
+
397 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
398 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
399 #endif
+
400 
+
401 #define STRINGIFY_HELPER(X) #X
+
402 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
403 
+
404 /* Identify known platforms by name. */
+
405 #if defined(__linux) || defined(__linux__) || defined(linux)
+
406 # define PLATFORM_ID "Linux"
+
407 
+
408 #elif defined(__MSYS__)
+
409 # define PLATFORM_ID "MSYS"
+
410 
+
411 #elif defined(__CYGWIN__)
+
412 # define PLATFORM_ID "Cygwin"
+
413 
+
414 #elif defined(__MINGW32__)
+
415 # define PLATFORM_ID "MinGW"
+
416 
+
417 #elif defined(__APPLE__)
+
418 # define PLATFORM_ID "Darwin"
+
419 
+
420 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
421 # define PLATFORM_ID "Windows"
+
422 
+
423 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
424 # define PLATFORM_ID "FreeBSD"
+
425 
+
426 #elif defined(__NetBSD__) || defined(__NetBSD)
+
427 # define PLATFORM_ID "NetBSD"
+
428 
+
429 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
430 # define PLATFORM_ID "OpenBSD"
+
431 
+
432 #elif defined(__sun) || defined(sun)
+
433 # define PLATFORM_ID "SunOS"
+
434 
+
435 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
436 # define PLATFORM_ID "AIX"
+
437 
+
438 #elif defined(__hpux) || defined(__hpux__)
+
439 # define PLATFORM_ID "HP-UX"
+
440 
+
441 #elif defined(__HAIKU__)
+
442 # define PLATFORM_ID "Haiku"
+
443 
+
444 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
445 # define PLATFORM_ID "BeOS"
+
446 
+
447 #elif defined(__QNX__) || defined(__QNXNTO__)
+
448 # define PLATFORM_ID "QNX"
+
449 
+
450 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
451 # define PLATFORM_ID "Tru64"
+
452 
+
453 #elif defined(__riscos) || defined(__riscos__)
+
454 # define PLATFORM_ID "RISCos"
+
455 
+
456 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
457 # define PLATFORM_ID "SINIX"
+
458 
+
459 #elif defined(__UNIX_SV__)
+
460 # define PLATFORM_ID "UNIX_SV"
+
461 
+
462 #elif defined(__bsdos__)
+
463 # define PLATFORM_ID "BSDOS"
+
464 
+
465 #elif defined(_MPRAS) || defined(MPRAS)
+
466 # define PLATFORM_ID "MP-RAS"
+
467 
+
468 #elif defined(__osf) || defined(__osf__)
+
469 # define PLATFORM_ID "OSF1"
+
470 
+
471 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
472 # define PLATFORM_ID "SCO_SV"
+
473 
+
474 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
475 # define PLATFORM_ID "ULTRIX"
+
476 
+
477 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
478 # define PLATFORM_ID "Xenix"
+
479 
+
480 #elif defined(__WATCOMC__)
+
481 # if defined(__LINUX__)
+
482 # define PLATFORM_ID "Linux"
+
483 
+
484 # elif defined(__DOS__)
+
485 # define PLATFORM_ID "DOS"
+
486 
+
487 # elif defined(__OS2__)
+
488 # define PLATFORM_ID "OS2"
+
489 
+
490 # elif defined(__WINDOWS__)
+
491 # define PLATFORM_ID "Windows3x"
+
492 
+
493 # elif defined(__VXWORKS__)
+
494 # define PLATFORM_ID "VxWorks"
+
495 
+
496 # else /* unknown platform */
+
497 # define PLATFORM_ID
+
498 # endif
+
499 
+
500 #elif defined(__INTEGRITY)
+
501 # if defined(INT_178B)
+
502 # define PLATFORM_ID "Integrity178"
+
503 
+
504 # else /* regular Integrity */
+
505 # define PLATFORM_ID "Integrity"
+
506 # endif
+
507 
+
508 #else /* unknown platform */
+
509 # define PLATFORM_ID
+
510 
+
511 #endif
+
512 
+
513 /* For windows compilers MSVC and Intel we can determine
+
514  the architecture of the compiler being used. This is because
+
515  the compilers do not have flags that can change the architecture,
+
516  but rather depend on which compiler is being used
+
517 */
+
518 #if defined(_WIN32) && defined(_MSC_VER)
+
519 # if defined(_M_IA64)
+
520 # define ARCHITECTURE_ID "IA64"
+
521 
+
522 # elif defined(_M_ARM64EC)
+
523 # define ARCHITECTURE_ID "ARM64EC"
+
524 
+
525 # elif defined(_M_X64) || defined(_M_AMD64)
+
526 # define ARCHITECTURE_ID "x64"
+
527 
+
528 # elif defined(_M_IX86)
+
529 # define ARCHITECTURE_ID "X86"
+
530 
+
531 # elif defined(_M_ARM64)
+
532 # define ARCHITECTURE_ID "ARM64"
+
533 
+
534 # elif defined(_M_ARM)
+
535 # if _M_ARM == 4
+
536 # define ARCHITECTURE_ID "ARMV4I"
+
537 # elif _M_ARM == 5
+
538 # define ARCHITECTURE_ID "ARMV5I"
+
539 # else
+
540 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
541 # endif
+
542 
+
543 # elif defined(_M_MIPS)
+
544 # define ARCHITECTURE_ID "MIPS"
+
545 
+
546 # elif defined(_M_SH)
+
547 # define ARCHITECTURE_ID "SHx"
+
548 
+
549 # else /* unknown architecture */
+
550 # define ARCHITECTURE_ID ""
+
551 # endif
+
552 
+
553 #elif defined(__WATCOMC__)
+
554 # if defined(_M_I86)
+
555 # define ARCHITECTURE_ID "I86"
+
556 
+
557 # elif defined(_M_IX86)
+
558 # define ARCHITECTURE_ID "X86"
+
559 
+
560 # else /* unknown architecture */
+
561 # define ARCHITECTURE_ID ""
+
562 # endif
+
563 
+
564 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
565 # if defined(__ICCARM__)
+
566 # define ARCHITECTURE_ID "ARM"
+
567 
+
568 # elif defined(__ICCRX__)
+
569 # define ARCHITECTURE_ID "RX"
+
570 
+
571 # elif defined(__ICCRH850__)
+
572 # define ARCHITECTURE_ID "RH850"
+
573 
+
574 # elif defined(__ICCRL78__)
+
575 # define ARCHITECTURE_ID "RL78"
+
576 
+
577 # elif defined(__ICCRISCV__)
+
578 # define ARCHITECTURE_ID "RISCV"
+
579 
+
580 # elif defined(__ICCAVR__)
+
581 # define ARCHITECTURE_ID "AVR"
+
582 
+
583 # elif defined(__ICC430__)
+
584 # define ARCHITECTURE_ID "MSP430"
+
585 
+
586 # elif defined(__ICCV850__)
+
587 # define ARCHITECTURE_ID "V850"
+
588 
+
589 # elif defined(__ICC8051__)
+
590 # define ARCHITECTURE_ID "8051"
+
591 
+
592 # elif defined(__ICCSTM8__)
+
593 # define ARCHITECTURE_ID "STM8"
+
594 
+
595 # else /* unknown architecture */
+
596 # define ARCHITECTURE_ID ""
+
597 # endif
+
598 
+
599 #elif defined(__ghs__)
+
600 # if defined(__PPC64__)
+
601 # define ARCHITECTURE_ID "PPC64"
+
602 
+
603 # elif defined(__ppc__)
+
604 # define ARCHITECTURE_ID "PPC"
+
605 
+
606 # elif defined(__ARM__)
+
607 # define ARCHITECTURE_ID "ARM"
+
608 
+
609 # elif defined(__x86_64__)
+
610 # define ARCHITECTURE_ID "x64"
+
611 
+
612 # elif defined(__i386__)
+
613 # define ARCHITECTURE_ID "X86"
+
614 
+
615 # else /* unknown architecture */
+
616 # define ARCHITECTURE_ID ""
+
617 # endif
+
618 
+
619 #elif defined(__TI_COMPILER_VERSION__)
+
620 # if defined(__TI_ARM__)
+
621 # define ARCHITECTURE_ID "ARM"
+
622 
+
623 # elif defined(__MSP430__)
+
624 # define ARCHITECTURE_ID "MSP430"
+
625 
+
626 # elif defined(__TMS320C28XX__)
+
627 # define ARCHITECTURE_ID "TMS320C28x"
+
628 
+
629 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
630 # define ARCHITECTURE_ID "TMS320C6x"
+
631 
+
632 # else /* unknown architecture */
+
633 # define ARCHITECTURE_ID ""
+
634 # endif
+
635 
+
636 #else
+
637 # define ARCHITECTURE_ID
+
638 #endif
+
639 
+
640 /* Convert integer to decimal digit literals. */
+
641 #define DEC(n) \
+
642  ('0' + (((n) / 10000000)%10)), \
+
643  ('0' + (((n) / 1000000)%10)), \
+
644  ('0' + (((n) / 100000)%10)), \
+
645  ('0' + (((n) / 10000)%10)), \
+
646  ('0' + (((n) / 1000)%10)), \
+
647  ('0' + (((n) / 100)%10)), \
+
648  ('0' + (((n) / 10)%10)), \
+
649  ('0' + ((n) % 10))
+
650 
+
651 /* Convert integer to hex digit literals. */
+
652 #define HEX(n) \
+
653  ('0' + ((n)>>28 & 0xF)), \
+
654  ('0' + ((n)>>24 & 0xF)), \
+
655  ('0' + ((n)>>20 & 0xF)), \
+
656  ('0' + ((n)>>16 & 0xF)), \
+
657  ('0' + ((n)>>12 & 0xF)), \
+
658  ('0' + ((n)>>8 & 0xF)), \
+
659  ('0' + ((n)>>4 & 0xF)), \
+
660  ('0' + ((n) & 0xF))
+
661 
+
662 /* Construct a string literal encoding the version number. */
+
663 #ifdef COMPILER_VERSION
+
664 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
665 
+
666 /* Construct a string literal encoding the version number components. */
+
667 #elif defined(COMPILER_VERSION_MAJOR)
+
668 char const info_version[] = {
+
669  'I', 'N', 'F', 'O', ':',
+
670  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
671  COMPILER_VERSION_MAJOR,
+
672 # ifdef COMPILER_VERSION_MINOR
+
673  '.', COMPILER_VERSION_MINOR,
+
674 # ifdef COMPILER_VERSION_PATCH
+
675  '.', COMPILER_VERSION_PATCH,
+
676 # ifdef COMPILER_VERSION_TWEAK
+
677  '.', COMPILER_VERSION_TWEAK,
+
678 # endif
+
679 # endif
+
680 # endif
+
681  ']','\0'};
+
682 #endif
+
683 
+
684 /* Construct a string literal encoding the internal version number. */
+
685 #ifdef COMPILER_VERSION_INTERNAL
+
686 char const info_version_internal[] = {
+
687  'I', 'N', 'F', 'O', ':',
+
688  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
689  'i','n','t','e','r','n','a','l','[',
+
690  COMPILER_VERSION_INTERNAL,']','\0'};
+
691 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
692 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
693 #endif
+
694 
+
695 /* Construct a string literal encoding the version number components. */
+
696 #ifdef SIMULATE_VERSION_MAJOR
+
697 char const info_simulate_version[] = {
+
698  'I', 'N', 'F', 'O', ':',
+
699  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
700  SIMULATE_VERSION_MAJOR,
+
701 # ifdef SIMULATE_VERSION_MINOR
+
702  '.', SIMULATE_VERSION_MINOR,
+
703 # ifdef SIMULATE_VERSION_PATCH
+
704  '.', SIMULATE_VERSION_PATCH,
+
705 # ifdef SIMULATE_VERSION_TWEAK
+
706  '.', SIMULATE_VERSION_TWEAK,
+
707 # endif
+
708 # endif
+
709 # endif
+
710  ']','\0'};
+
711 #endif
+
712 
+
713 /* Construct the string literal in pieces to prevent the source from
+
714  getting matched. Store it in a pointer rather than an array
+
715  because some compilers will just produce instructions to fill the
+
716  array rather than assigning a pointer to a static array. */
+
717 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
718 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
719 
+
720 
+
721 
+
722 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
723 # if defined(__INTEL_CXX11_MODE__)
+
724 # if defined(__cpp_aggregate_nsdmi)
+
725 # define CXX_STD 201402L
+
726 # else
+
727 # define CXX_STD 201103L
+
728 # endif
+
729 # else
+
730 # define CXX_STD 199711L
+
731 # endif
+
732 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
733 # define CXX_STD _MSVC_LANG
+
734 #else
+
735 # define CXX_STD __cplusplus
+
736 #endif
+
737 
+
738 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
739 #if CXX_STD > 202002L
+
740  "23"
+
741 #elif CXX_STD > 201703L
+
742  "20"
+
743 #elif CXX_STD >= 201703L
+
744  "17"
+
745 #elif CXX_STD >= 201402L
+
746  "14"
+
747 #elif CXX_STD >= 201103L
+
748  "11"
+
749 #else
+
750  "98"
+
751 #endif
+
752 "]";
+
753 
+
754 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
755 /* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */
+
756 #if (defined(__clang__) || defined(__GNUC__) || \
+
757  defined(__TI_COMPILER_VERSION__)) && \
+
758  !defined(__STRICT_ANSI__) && !defined(_MSC_VER)
+
759  "ON"
+
760 #else
+
761  "OFF"
+
762 #endif
+
763 "]";
+
764 
+
765 /*--------------------------------------------------------------------------*/
+
766 
+
767 int main(int argc, char* argv[])
+
768 {
+
769  int require = 0;
+
770  require += info_compiler[argc];
+
771  require += info_platform[argc];
+
772 #ifdef COMPILER_VERSION_MAJOR
+
773  require += info_version[argc];
+
774 #endif
+
775 #ifdef COMPILER_VERSION_INTERNAL
+
776  require += info_version_internal[argc];
+
777 #endif
+
778 #ifdef SIMULATE_ID
+
779  require += info_simulate[argc];
+
780 #endif
+
781 #ifdef SIMULATE_VERSION_MAJOR
+
782  require += info_simulate_version[argc];
+
783 #endif
+
784 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
785  require += info_cray[argc];
+
786 #endif
+
787  require += info_language_standard_default[argc];
+
788  require += info_language_extensions_default[argc];
+
789  (void)argv;
+
790  return require;
+
791 }
+
+
+ + + + diff --git a/docs/_debug___o_n_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_n_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..91318e4 --- /dev/null +++ b/docs/_debug___o_n_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,929 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_ON/CMakeFiles/3.24.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__SCO_VERSION__)
+
273 # define COMPILER_ID "SCO"
+
274 
+
275 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
276 # define COMPILER_ID "ARMCC"
+
277 #if __ARMCC_VERSION >= 1000000
+
278  /* __ARMCC_VERSION = VRRPPPP */
+
279  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
280  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
281  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
282 #else
+
283  /* __ARMCC_VERSION = VRPPPP */
+
284  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
285  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
286  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
287 #endif
+
288 
+
289 
+
290 #elif defined(__clang__) && defined(__apple_build_version__)
+
291 # define COMPILER_ID "AppleClang"
+
292 # if defined(_MSC_VER)
+
293 # define SIMULATE_ID "MSVC"
+
294 # endif
+
295 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
296 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
297 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
298 # if defined(_MSC_VER)
+
299  /* _MSC_VER = VVRR */
+
300 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
301 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
302 # endif
+
303 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
304 
+
305 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
306 # define COMPILER_ID "ARMClang"
+
307  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
308  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
309  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
310 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
311 
+
312 #elif defined(__clang__)
+
313 # define COMPILER_ID "Clang"
+
314 # if defined(_MSC_VER)
+
315 # define SIMULATE_ID "MSVC"
+
316 # endif
+
317 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
318 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
319 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
320 # if defined(_MSC_VER)
+
321  /* _MSC_VER = VVRR */
+
322 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
323 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
324 # endif
+
325 
+
326 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
327 # define COMPILER_ID "LCC"
+
328 # define COMPILER_VERSION_MAJOR DEC(1)
+
329 # if defined(__LCC__)
+
330 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
331 # endif
+
332 # if defined(__LCC_MINOR__)
+
333 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
334 # endif
+
335 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
336 # define SIMULATE_ID "GNU"
+
337 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
338 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
339 # if defined(__GNUC_PATCHLEVEL__)
+
340 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
341 # endif
+
342 # endif
+
343 
+
344 #elif defined(__GNUC__) || defined(__GNUG__)
+
345 # define COMPILER_ID "GNU"
+
346 # if defined(__GNUC__)
+
347 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
348 # else
+
349 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
350 # endif
+
351 # if defined(__GNUC_MINOR__)
+
352 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
353 # endif
+
354 # if defined(__GNUC_PATCHLEVEL__)
+
355 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
356 # endif
+
357 
+
358 #elif defined(_MSC_VER)
+
359 # define COMPILER_ID "MSVC"
+
360  /* _MSC_VER = VVRR */
+
361 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
362 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
363 # if defined(_MSC_FULL_VER)
+
364 # if _MSC_VER >= 1400
+
365  /* _MSC_FULL_VER = VVRRPPPPP */
+
366 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
367 # else
+
368  /* _MSC_FULL_VER = VVRRPPPP */
+
369 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
370 # endif
+
371 # endif
+
372 # if defined(_MSC_BUILD)
+
373 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
374 # endif
+
375 
+
376 #elif defined(_ADI_COMPILER)
+
377 # define COMPILER_ID "ADSP"
+
378 #if defined(__VERSIONNUM__)
+
379  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
380 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
381 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
382 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
383 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
384 #endif
+
385 
+
386 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
387 # define COMPILER_ID "IAR"
+
388 # if defined(__VER__) && defined(__ICCARM__)
+
389 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
390 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
391 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
392 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
393 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
394 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
395 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
396 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
397 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
398 # endif
+
399 
+
400 
+
401 /* These compilers are either not known or too old to define an
+
402  identification macro. Try to identify the platform and guess that
+
403  it is the native compiler. */
+
404 #elif defined(__hpux) || defined(__hpua)
+
405 # define COMPILER_ID "HP"
+
406 
+
407 #else /* unknown compiler */
+
408 # define COMPILER_ID ""
+
409 #endif
+
410 
+
411 /* Construct the string literal in pieces to prevent the source from
+
412  getting matched. Store it in a pointer rather than an array
+
413  because some compilers will just produce instructions to fill the
+
414  array rather than assigning a pointer to a static array. */
+
415 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
416 #ifdef SIMULATE_ID
+
417 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
418 #endif
+
419 
+
420 #ifdef __QNXNTO__
+
421 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
422 #endif
+
423 
+
424 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
425 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
426 #endif
+
427 
+
428 #define STRINGIFY_HELPER(X) #X
+
429 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
430 
+
431 /* Identify known platforms by name. */
+
432 #if defined(__linux) || defined(__linux__) || defined(linux)
+
433 # define PLATFORM_ID "Linux"
+
434 
+
435 #elif defined(__MSYS__)
+
436 # define PLATFORM_ID "MSYS"
+
437 
+
438 #elif defined(__CYGWIN__)
+
439 # define PLATFORM_ID "Cygwin"
+
440 
+
441 #elif defined(__MINGW32__)
+
442 # define PLATFORM_ID "MinGW"
+
443 
+
444 #elif defined(__APPLE__)
+
445 # define PLATFORM_ID "Darwin"
+
446 
+
447 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
448 # define PLATFORM_ID "Windows"
+
449 
+
450 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
451 # define PLATFORM_ID "FreeBSD"
+
452 
+
453 #elif defined(__NetBSD__) || defined(__NetBSD)
+
454 # define PLATFORM_ID "NetBSD"
+
455 
+
456 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
457 # define PLATFORM_ID "OpenBSD"
+
458 
+
459 #elif defined(__sun) || defined(sun)
+
460 # define PLATFORM_ID "SunOS"
+
461 
+
462 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
463 # define PLATFORM_ID "AIX"
+
464 
+
465 #elif defined(__hpux) || defined(__hpux__)
+
466 # define PLATFORM_ID "HP-UX"
+
467 
+
468 #elif defined(__HAIKU__)
+
469 # define PLATFORM_ID "Haiku"
+
470 
+
471 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
472 # define PLATFORM_ID "BeOS"
+
473 
+
474 #elif defined(__QNX__) || defined(__QNXNTO__)
+
475 # define PLATFORM_ID "QNX"
+
476 
+
477 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
478 # define PLATFORM_ID "Tru64"
+
479 
+
480 #elif defined(__riscos) || defined(__riscos__)
+
481 # define PLATFORM_ID "RISCos"
+
482 
+
483 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
484 # define PLATFORM_ID "SINIX"
+
485 
+
486 #elif defined(__UNIX_SV__)
+
487 # define PLATFORM_ID "UNIX_SV"
+
488 
+
489 #elif defined(__bsdos__)
+
490 # define PLATFORM_ID "BSDOS"
+
491 
+
492 #elif defined(_MPRAS) || defined(MPRAS)
+
493 # define PLATFORM_ID "MP-RAS"
+
494 
+
495 #elif defined(__osf) || defined(__osf__)
+
496 # define PLATFORM_ID "OSF1"
+
497 
+
498 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
499 # define PLATFORM_ID "SCO_SV"
+
500 
+
501 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
502 # define PLATFORM_ID "ULTRIX"
+
503 
+
504 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
505 # define PLATFORM_ID "Xenix"
+
506 
+
507 #elif defined(__WATCOMC__)
+
508 # if defined(__LINUX__)
+
509 # define PLATFORM_ID "Linux"
+
510 
+
511 # elif defined(__DOS__)
+
512 # define PLATFORM_ID "DOS"
+
513 
+
514 # elif defined(__OS2__)
+
515 # define PLATFORM_ID "OS2"
+
516 
+
517 # elif defined(__WINDOWS__)
+
518 # define PLATFORM_ID "Windows3x"
+
519 
+
520 # elif defined(__VXWORKS__)
+
521 # define PLATFORM_ID "VxWorks"
+
522 
+
523 # else /* unknown platform */
+
524 # define PLATFORM_ID
+
525 # endif
+
526 
+
527 #elif defined(__INTEGRITY)
+
528 # if defined(INT_178B)
+
529 # define PLATFORM_ID "Integrity178"
+
530 
+
531 # else /* regular Integrity */
+
532 # define PLATFORM_ID "Integrity"
+
533 # endif
+
534 
+
535 # elif defined(_ADI_COMPILER)
+
536 # define PLATFORM_ID "ADSP"
+
537 
+
538 #else /* unknown platform */
+
539 # define PLATFORM_ID
+
540 
+
541 #endif
+
542 
+
543 /* For windows compilers MSVC and Intel we can determine
+
544  the architecture of the compiler being used. This is because
+
545  the compilers do not have flags that can change the architecture,
+
546  but rather depend on which compiler is being used
+
547 */
+
548 #if defined(_WIN32) && defined(_MSC_VER)
+
549 # if defined(_M_IA64)
+
550 # define ARCHITECTURE_ID "IA64"
+
551 
+
552 # elif defined(_M_ARM64EC)
+
553 # define ARCHITECTURE_ID "ARM64EC"
+
554 
+
555 # elif defined(_M_X64) || defined(_M_AMD64)
+
556 # define ARCHITECTURE_ID "x64"
+
557 
+
558 # elif defined(_M_IX86)
+
559 # define ARCHITECTURE_ID "X86"
+
560 
+
561 # elif defined(_M_ARM64)
+
562 # define ARCHITECTURE_ID "ARM64"
+
563 
+
564 # elif defined(_M_ARM)
+
565 # if _M_ARM == 4
+
566 # define ARCHITECTURE_ID "ARMV4I"
+
567 # elif _M_ARM == 5
+
568 # define ARCHITECTURE_ID "ARMV5I"
+
569 # else
+
570 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
571 # endif
+
572 
+
573 # elif defined(_M_MIPS)
+
574 # define ARCHITECTURE_ID "MIPS"
+
575 
+
576 # elif defined(_M_SH)
+
577 # define ARCHITECTURE_ID "SHx"
+
578 
+
579 # else /* unknown architecture */
+
580 # define ARCHITECTURE_ID ""
+
581 # endif
+
582 
+
583 #elif defined(__WATCOMC__)
+
584 # if defined(_M_I86)
+
585 # define ARCHITECTURE_ID "I86"
+
586 
+
587 # elif defined(_M_IX86)
+
588 # define ARCHITECTURE_ID "X86"
+
589 
+
590 # else /* unknown architecture */
+
591 # define ARCHITECTURE_ID ""
+
592 # endif
+
593 
+
594 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
595 # if defined(__ICCARM__)
+
596 # define ARCHITECTURE_ID "ARM"
+
597 
+
598 # elif defined(__ICCRX__)
+
599 # define ARCHITECTURE_ID "RX"
+
600 
+
601 # elif defined(__ICCRH850__)
+
602 # define ARCHITECTURE_ID "RH850"
+
603 
+
604 # elif defined(__ICCRL78__)
+
605 # define ARCHITECTURE_ID "RL78"
+
606 
+
607 # elif defined(__ICCRISCV__)
+
608 # define ARCHITECTURE_ID "RISCV"
+
609 
+
610 # elif defined(__ICCAVR__)
+
611 # define ARCHITECTURE_ID "AVR"
+
612 
+
613 # elif defined(__ICC430__)
+
614 # define ARCHITECTURE_ID "MSP430"
+
615 
+
616 # elif defined(__ICCV850__)
+
617 # define ARCHITECTURE_ID "V850"
+
618 
+
619 # elif defined(__ICC8051__)
+
620 # define ARCHITECTURE_ID "8051"
+
621 
+
622 # elif defined(__ICCSTM8__)
+
623 # define ARCHITECTURE_ID "STM8"
+
624 
+
625 # else /* unknown architecture */
+
626 # define ARCHITECTURE_ID ""
+
627 # endif
+
628 
+
629 #elif defined(__ghs__)
+
630 # if defined(__PPC64__)
+
631 # define ARCHITECTURE_ID "PPC64"
+
632 
+
633 # elif defined(__ppc__)
+
634 # define ARCHITECTURE_ID "PPC"
+
635 
+
636 # elif defined(__ARM__)
+
637 # define ARCHITECTURE_ID "ARM"
+
638 
+
639 # elif defined(__x86_64__)
+
640 # define ARCHITECTURE_ID "x64"
+
641 
+
642 # elif defined(__i386__)
+
643 # define ARCHITECTURE_ID "X86"
+
644 
+
645 # else /* unknown architecture */
+
646 # define ARCHITECTURE_ID ""
+
647 # endif
+
648 
+
649 #elif defined(__TI_COMPILER_VERSION__)
+
650 # if defined(__TI_ARM__)
+
651 # define ARCHITECTURE_ID "ARM"
+
652 
+
653 # elif defined(__MSP430__)
+
654 # define ARCHITECTURE_ID "MSP430"
+
655 
+
656 # elif defined(__TMS320C28XX__)
+
657 # define ARCHITECTURE_ID "TMS320C28x"
+
658 
+
659 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
660 # define ARCHITECTURE_ID "TMS320C6x"
+
661 
+
662 # else /* unknown architecture */
+
663 # define ARCHITECTURE_ID ""
+
664 # endif
+
665 
+
666 # elif defined(__ADSPSHARC__)
+
667 # define ARCHITECTURE_ID "SHARC"
+
668 
+
669 # elif defined(__ADSPBLACKFIN__)
+
670 # define ARCHITECTURE_ID "Blackfin"
+
671 
+
672 #else
+
673 # define ARCHITECTURE_ID
+
674 #endif
+
675 
+
676 /* Convert integer to decimal digit literals. */
+
677 #define DEC(n) \
+
678  ('0' + (((n) / 10000000)%10)), \
+
679  ('0' + (((n) / 1000000)%10)), \
+
680  ('0' + (((n) / 100000)%10)), \
+
681  ('0' + (((n) / 10000)%10)), \
+
682  ('0' + (((n) / 1000)%10)), \
+
683  ('0' + (((n) / 100)%10)), \
+
684  ('0' + (((n) / 10)%10)), \
+
685  ('0' + ((n) % 10))
+
686 
+
687 /* Convert integer to hex digit literals. */
+
688 #define HEX(n) \
+
689  ('0' + ((n)>>28 & 0xF)), \
+
690  ('0' + ((n)>>24 & 0xF)), \
+
691  ('0' + ((n)>>20 & 0xF)), \
+
692  ('0' + ((n)>>16 & 0xF)), \
+
693  ('0' + ((n)>>12 & 0xF)), \
+
694  ('0' + ((n)>>8 & 0xF)), \
+
695  ('0' + ((n)>>4 & 0xF)), \
+
696  ('0' + ((n) & 0xF))
+
697 
+
698 /* Construct a string literal encoding the version number. */
+
699 #ifdef COMPILER_VERSION
+
700 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
701 
+
702 /* Construct a string literal encoding the version number components. */
+
703 #elif defined(COMPILER_VERSION_MAJOR)
+
704 char const info_version[] = {
+
705  'I', 'N', 'F', 'O', ':',
+
706  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
707  COMPILER_VERSION_MAJOR,
+
708 # ifdef COMPILER_VERSION_MINOR
+
709  '.', COMPILER_VERSION_MINOR,
+
710 # ifdef COMPILER_VERSION_PATCH
+
711  '.', COMPILER_VERSION_PATCH,
+
712 # ifdef COMPILER_VERSION_TWEAK
+
713  '.', COMPILER_VERSION_TWEAK,
+
714 # endif
+
715 # endif
+
716 # endif
+
717  ']','\0'};
+
718 #endif
+
719 
+
720 /* Construct a string literal encoding the internal version number. */
+
721 #ifdef COMPILER_VERSION_INTERNAL
+
722 char const info_version_internal[] = {
+
723  'I', 'N', 'F', 'O', ':',
+
724  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
725  'i','n','t','e','r','n','a','l','[',
+
726  COMPILER_VERSION_INTERNAL,']','\0'};
+
727 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
728 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
729 #endif
+
730 
+
731 /* Construct a string literal encoding the version number components. */
+
732 #ifdef SIMULATE_VERSION_MAJOR
+
733 char const info_simulate_version[] = {
+
734  'I', 'N', 'F', 'O', ':',
+
735  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
736  SIMULATE_VERSION_MAJOR,
+
737 # ifdef SIMULATE_VERSION_MINOR
+
738  '.', SIMULATE_VERSION_MINOR,
+
739 # ifdef SIMULATE_VERSION_PATCH
+
740  '.', SIMULATE_VERSION_PATCH,
+
741 # ifdef SIMULATE_VERSION_TWEAK
+
742  '.', SIMULATE_VERSION_TWEAK,
+
743 # endif
+
744 # endif
+
745 # endif
+
746  ']','\0'};
+
747 #endif
+
748 
+
749 /* Construct the string literal in pieces to prevent the source from
+
750  getting matched. Store it in a pointer rather than an array
+
751  because some compilers will just produce instructions to fill the
+
752  array rather than assigning a pointer to a static array. */
+
753 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
754 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
755 
+
756 
+
757 
+
758 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
759 # if defined(__INTEL_CXX11_MODE__)
+
760 # if defined(__cpp_aggregate_nsdmi)
+
761 # define CXX_STD 201402L
+
762 # else
+
763 # define CXX_STD 201103L
+
764 # endif
+
765 # else
+
766 # define CXX_STD 199711L
+
767 # endif
+
768 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
769 # define CXX_STD _MSVC_LANG
+
770 #else
+
771 # define CXX_STD __cplusplus
+
772 #endif
+
773 
+
774 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
775 #if CXX_STD > 202002L
+
776  "23"
+
777 #elif CXX_STD > 201703L
+
778  "20"
+
779 #elif CXX_STD >= 201703L
+
780  "17"
+
781 #elif CXX_STD >= 201402L
+
782  "14"
+
783 #elif CXX_STD >= 201103L
+
784  "11"
+
785 #else
+
786  "98"
+
787 #endif
+
788 "]";
+
789 
+
790 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
791 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
792  defined(__TI_COMPILER_VERSION__)) && \
+
793  !defined(__STRICT_ANSI__)
+
794  "ON"
+
795 #else
+
796  "OFF"
+
797 #endif
+
798 "]";
+
799 
+
800 /*--------------------------------------------------------------------------*/
+
801 
+
802 int main(int argc, char* argv[])
+
803 {
+
804  int require = 0;
+
805  require += info_compiler[argc];
+
806  require += info_platform[argc];
+
807 #ifdef COMPILER_VERSION_MAJOR
+
808  require += info_version[argc];
+
809 #endif
+
810 #ifdef COMPILER_VERSION_INTERNAL
+
811  require += info_version_internal[argc];
+
812 #endif
+
813 #ifdef SIMULATE_ID
+
814  require += info_simulate[argc];
+
815 #endif
+
816 #ifdef SIMULATE_VERSION_MAJOR
+
817  require += info_simulate_version[argc];
+
818 #endif
+
819 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
820  require += info_cray[argc];
+
821 #endif
+
822  require += info_language_standard_default[argc];
+
823  require += info_language_extensions_default[argc];
+
824  (void)argv;
+
825  return require;
+
826 }
+
+
+ + + + diff --git a/docs/_debug___o_n_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_n_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..143f573 --- /dev/null +++ b/docs/_debug___o_n_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_ON/CMakeFiles/3.25.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/_debug___o_n_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_debug___o_n_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..b62b89f --- /dev/null +++ b/docs/_debug___o_n_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_ON/CMakeFiles/3.25.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..1d01aa2 --- /dev/null +++ b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,679 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_OFF/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23  /* __INTEL_COMPILER = VRP */
+
24 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
25 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
26 # if defined(__INTEL_COMPILER_UPDATE)
+
27 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
28 # else
+
29 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
30 # endif
+
31 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
32  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
33 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
34 # endif
+
35 # if defined(_MSC_VER)
+
36  /* _MSC_VER = VVRR */
+
37 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
38 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
39 # endif
+
40 
+
41 #elif defined(__PATHCC__)
+
42 # define COMPILER_ID "PathScale"
+
43 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
44 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
45 # if defined(__PATHCC_PATCHLEVEL__)
+
46 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
47 # endif
+
48 
+
49 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
50 # define COMPILER_ID "Embarcadero"
+
51 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
52 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
53 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
54 
+
55 #elif defined(__BORLANDC__)
+
56 # define COMPILER_ID "Borland"
+
57  /* __BORLANDC__ = 0xVRR */
+
58 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
59 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
60 
+
61 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
62 # define COMPILER_ID "Watcom"
+
63  /* __WATCOMC__ = VVRR */
+
64 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
65 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
66 # if (__WATCOMC__ % 10) > 0
+
67 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
68 # endif
+
69 
+
70 #elif defined(__WATCOMC__)
+
71 # define COMPILER_ID "OpenWatcom"
+
72  /* __WATCOMC__ = VVRP + 1100 */
+
73 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
74 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
75 # if (__WATCOMC__ % 10) > 0
+
76 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
77 # endif
+
78 
+
79 #elif defined(__SUNPRO_CC)
+
80 # define COMPILER_ID "SunPro"
+
81 # if __SUNPRO_CC >= 0x5100
+
82  /* __SUNPRO_CC = 0xVRRP */
+
83 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
84 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
85 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
86 # else
+
87  /* __SUNPRO_CC = 0xVRP */
+
88 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
89 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
90 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
91 # endif
+
92 
+
93 #elif defined(__HP_aCC)
+
94 # define COMPILER_ID "HP"
+
95  /* __HP_aCC = VVRRPP */
+
96 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
97 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
98 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
99 
+
100 #elif defined(__DECCXX)
+
101 # define COMPILER_ID "Compaq"
+
102  /* __DECCXX_VER = VVRRTPPPP */
+
103 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
104 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
105 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
106 
+
107 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
108 # define COMPILER_ID "zOS"
+
109  /* __IBMCPP__ = VRP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
111 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
112 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
113 
+
114 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
115 # define COMPILER_ID "XL"
+
116  /* __IBMCPP__ = VRP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
118 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
119 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
120 
+
121 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
122 # define COMPILER_ID "VisualAge"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__PGI)
+
129 # define COMPILER_ID "PGI"
+
130 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
131 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
132 # if defined(__PGIC_PATCHLEVEL__)
+
133 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
134 # endif
+
135 
+
136 #elif defined(_CRAYC)
+
137 # define COMPILER_ID "Cray"
+
138 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
139 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
140 
+
141 #elif defined(__TI_COMPILER_VERSION__)
+
142 # define COMPILER_ID "TI"
+
143  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
144 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
145 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
146 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
147 
+
148 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
149 # define COMPILER_ID "Fujitsu"
+
150 
+
151 #elif defined(__SCO_VERSION__)
+
152 # define COMPILER_ID "SCO"
+
153 
+
154 #elif defined(__clang__) && defined(__apple_build_version__)
+
155 # define COMPILER_ID "AppleClang"
+
156 # if defined(_MSC_VER)
+
157 # define SIMULATE_ID "MSVC"
+
158 # endif
+
159 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
160 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
161 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
162 # if defined(_MSC_VER)
+
163  /* _MSC_VER = VVRR */
+
164 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
165 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
166 # endif
+
167 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
168 
+
169 #elif defined(__clang__)
+
170 # define COMPILER_ID "Clang"
+
171 # if defined(_MSC_VER)
+
172 # define SIMULATE_ID "MSVC"
+
173 # endif
+
174 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
175 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
176 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
177 # if defined(_MSC_VER)
+
178  /* _MSC_VER = VVRR */
+
179 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
180 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
181 # endif
+
182 
+
183 #elif defined(__GNUC__) || defined(__GNUG__)
+
184 # define COMPILER_ID "GNU"
+
185 # if defined(__GNUC__)
+
186 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
187 # else
+
188 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
189 # endif
+
190 # if defined(__GNUC_MINOR__)
+
191 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
192 # endif
+
193 # if defined(__GNUC_PATCHLEVEL__)
+
194 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
195 # endif
+
196 
+
197 #elif defined(_MSC_VER)
+
198 # define COMPILER_ID "MSVC"
+
199  /* _MSC_VER = VVRR */
+
200 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
201 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
202 # if defined(_MSC_FULL_VER)
+
203 # if _MSC_VER >= 1400
+
204  /* _MSC_FULL_VER = VVRRPPPPP */
+
205 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
206 # else
+
207  /* _MSC_FULL_VER = VVRRPPPP */
+
208 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
209 # endif
+
210 # endif
+
211 # if defined(_MSC_BUILD)
+
212 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
213 # endif
+
214 
+
215 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
216 # define COMPILER_ID "ADSP"
+
217 #if defined(__VISUALDSPVERSION__)
+
218  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
219 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
220 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
221 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
222 #endif
+
223 
+
224 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
225 # define COMPILER_ID "IAR"
+
226 # if defined(__VER__)
+
227 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
230 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
231 # endif
+
232 
+
233 #elif defined(__ARMCC_VERSION)
+
234 # define COMPILER_ID "ARMCC"
+
235 #if __ARMCC_VERSION >= 1000000
+
236  /* __ARMCC_VERSION = VRRPPPP */
+
237  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
238  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
239  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
240 #else
+
241  /* __ARMCC_VERSION = VRPPPP */
+
242  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
243  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
244  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
245 #endif
+
246 
+
247 
+
248 #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
+
249 # define COMPILER_ID "MIPSpro"
+
250 # if defined(_SGI_COMPILER_VERSION)
+
251  /* _SGI_COMPILER_VERSION = VRP */
+
252 # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
+
253 # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
+
254 # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
+
255 # else
+
256  /* _COMPILER_VERSION = VRP */
+
257 # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
+
258 # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
+
259 # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
+
260 # endif
+
261 
+
262 
+
263 /* These compilers are either not known or too old to define an
+
264  identification macro. Try to identify the platform and guess that
+
265  it is the native compiler. */
+
266 #elif defined(__sgi)
+
267 # define COMPILER_ID "MIPSpro"
+
268 
+
269 #elif defined(__hpux) || defined(__hpua)
+
270 # define COMPILER_ID "HP"
+
271 
+
272 #else /* unknown compiler */
+
273 # define COMPILER_ID ""
+
274 #endif
+
275 
+
276 /* Construct the string literal in pieces to prevent the source from
+
277  getting matched. Store it in a pointer rather than an array
+
278  because some compilers will just produce instructions to fill the
+
279  array rather than assigning a pointer to a static array. */
+
280 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
281 #ifdef SIMULATE_ID
+
282 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
283 #endif
+
284 
+
285 #ifdef __QNXNTO__
+
286 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
287 #endif
+
288 
+
289 #if defined(__CRAYXE) || defined(__CRAYXC)
+
290 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
291 #endif
+
292 
+
293 #define STRINGIFY_HELPER(X) #X
+
294 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
295 
+
296 /* Identify known platforms by name. */
+
297 #if defined(__linux) || defined(__linux__) || defined(linux)
+
298 # define PLATFORM_ID "Linux"
+
299 
+
300 #elif defined(__CYGWIN__)
+
301 # define PLATFORM_ID "Cygwin"
+
302 
+
303 #elif defined(__MINGW32__)
+
304 # define PLATFORM_ID "MinGW"
+
305 
+
306 #elif defined(__APPLE__)
+
307 # define PLATFORM_ID "Darwin"
+
308 
+
309 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
310 # define PLATFORM_ID "Windows"
+
311 
+
312 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
313 # define PLATFORM_ID "FreeBSD"
+
314 
+
315 #elif defined(__NetBSD__) || defined(__NetBSD)
+
316 # define PLATFORM_ID "NetBSD"
+
317 
+
318 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
319 # define PLATFORM_ID "OpenBSD"
+
320 
+
321 #elif defined(__sun) || defined(sun)
+
322 # define PLATFORM_ID "SunOS"
+
323 
+
324 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
325 # define PLATFORM_ID "AIX"
+
326 
+
327 #elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
+
328 # define PLATFORM_ID "IRIX"
+
329 
+
330 #elif defined(__hpux) || defined(__hpux__)
+
331 # define PLATFORM_ID "HP-UX"
+
332 
+
333 #elif defined(__HAIKU__)
+
334 # define PLATFORM_ID "Haiku"
+
335 
+
336 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
337 # define PLATFORM_ID "BeOS"
+
338 
+
339 #elif defined(__QNX__) || defined(__QNXNTO__)
+
340 # define PLATFORM_ID "QNX"
+
341 
+
342 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
343 # define PLATFORM_ID "Tru64"
+
344 
+
345 #elif defined(__riscos) || defined(__riscos__)
+
346 # define PLATFORM_ID "RISCos"
+
347 
+
348 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
349 # define PLATFORM_ID "SINIX"
+
350 
+
351 #elif defined(__UNIX_SV__)
+
352 # define PLATFORM_ID "UNIX_SV"
+
353 
+
354 #elif defined(__bsdos__)
+
355 # define PLATFORM_ID "BSDOS"
+
356 
+
357 #elif defined(_MPRAS) || defined(MPRAS)
+
358 # define PLATFORM_ID "MP-RAS"
+
359 
+
360 #elif defined(__osf) || defined(__osf__)
+
361 # define PLATFORM_ID "OSF1"
+
362 
+
363 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
364 # define PLATFORM_ID "SCO_SV"
+
365 
+
366 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
367 # define PLATFORM_ID "ULTRIX"
+
368 
+
369 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
370 # define PLATFORM_ID "Xenix"
+
371 
+
372 #elif defined(__WATCOMC__)
+
373 # if defined(__LINUX__)
+
374 # define PLATFORM_ID "Linux"
+
375 
+
376 # elif defined(__DOS__)
+
377 # define PLATFORM_ID "DOS"
+
378 
+
379 # elif defined(__OS2__)
+
380 # define PLATFORM_ID "OS2"
+
381 
+
382 # elif defined(__WINDOWS__)
+
383 # define PLATFORM_ID "Windows3x"
+
384 
+
385 # else /* unknown platform */
+
386 # define PLATFORM_ID
+
387 # endif
+
388 
+
389 #else /* unknown platform */
+
390 # define PLATFORM_ID
+
391 
+
392 #endif
+
393 
+
394 /* For windows compilers MSVC and Intel we can determine
+
395  the architecture of the compiler being used. This is because
+
396  the compilers do not have flags that can change the architecture,
+
397  but rather depend on which compiler is being used
+
398 */
+
399 #if defined(_WIN32) && defined(_MSC_VER)
+
400 # if defined(_M_IA64)
+
401 # define ARCHITECTURE_ID "IA64"
+
402 
+
403 # elif defined(_M_X64) || defined(_M_AMD64)
+
404 # define ARCHITECTURE_ID "x64"
+
405 
+
406 # elif defined(_M_IX86)
+
407 # define ARCHITECTURE_ID "X86"
+
408 
+
409 # elif defined(_M_ARM64)
+
410 # define ARCHITECTURE_ID "ARM64"
+
411 
+
412 # elif defined(_M_ARM)
+
413 # if _M_ARM == 4
+
414 # define ARCHITECTURE_ID "ARMV4I"
+
415 # elif _M_ARM == 5
+
416 # define ARCHITECTURE_ID "ARMV5I"
+
417 # else
+
418 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
419 # endif
+
420 
+
421 # elif defined(_M_MIPS)
+
422 # define ARCHITECTURE_ID "MIPS"
+
423 
+
424 # elif defined(_M_SH)
+
425 # define ARCHITECTURE_ID "SHx"
+
426 
+
427 # else /* unknown architecture */
+
428 # define ARCHITECTURE_ID ""
+
429 # endif
+
430 
+
431 #elif defined(__WATCOMC__)
+
432 # if defined(_M_I86)
+
433 # define ARCHITECTURE_ID "I86"
+
434 
+
435 # elif defined(_M_IX86)
+
436 # define ARCHITECTURE_ID "X86"
+
437 
+
438 # else /* unknown architecture */
+
439 # define ARCHITECTURE_ID ""
+
440 # endif
+
441 
+
442 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
443 # if defined(__ICCARM__)
+
444 # define ARCHITECTURE_ID "ARM"
+
445 
+
446 # elif defined(__ICCAVR__)
+
447 # define ARCHITECTURE_ID "AVR"
+
448 
+
449 # else /* unknown architecture */
+
450 # define ARCHITECTURE_ID ""
+
451 # endif
+
452 #else
+
453 # define ARCHITECTURE_ID
+
454 #endif
+
455 
+
456 /* Convert integer to decimal digit literals. */
+
457 #define DEC(n) \
+
458  ('0' + (((n) / 10000000)%10)), \
+
459  ('0' + (((n) / 1000000)%10)), \
+
460  ('0' + (((n) / 100000)%10)), \
+
461  ('0' + (((n) / 10000)%10)), \
+
462  ('0' + (((n) / 1000)%10)), \
+
463  ('0' + (((n) / 100)%10)), \
+
464  ('0' + (((n) / 10)%10)), \
+
465  ('0' + ((n) % 10))
+
466 
+
467 /* Convert integer to hex digit literals. */
+
468 #define HEX(n) \
+
469  ('0' + ((n)>>28 & 0xF)), \
+
470  ('0' + ((n)>>24 & 0xF)), \
+
471  ('0' + ((n)>>20 & 0xF)), \
+
472  ('0' + ((n)>>16 & 0xF)), \
+
473  ('0' + ((n)>>12 & 0xF)), \
+
474  ('0' + ((n)>>8 & 0xF)), \
+
475  ('0' + ((n)>>4 & 0xF)), \
+
476  ('0' + ((n) & 0xF))
+
477 
+
478 /* Construct a string literal encoding the version number components. */
+
479 #ifdef COMPILER_VERSION_MAJOR
+
480 char const info_version[] = {
+
481  'I', 'N', 'F', 'O', ':',
+
482  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
483  COMPILER_VERSION_MAJOR,
+
484 # ifdef COMPILER_VERSION_MINOR
+
485  '.', COMPILER_VERSION_MINOR,
+
486 # ifdef COMPILER_VERSION_PATCH
+
487  '.', COMPILER_VERSION_PATCH,
+
488 # ifdef COMPILER_VERSION_TWEAK
+
489  '.', COMPILER_VERSION_TWEAK,
+
490 # endif
+
491 # endif
+
492 # endif
+
493  ']','\0'};
+
494 #endif
+
495 
+
496 /* Construct a string literal encoding the internal version number. */
+
497 #ifdef COMPILER_VERSION_INTERNAL
+
498 char const info_version_internal[] = {
+
499  'I', 'N', 'F', 'O', ':',
+
500  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
501  'i','n','t','e','r','n','a','l','[',
+
502  COMPILER_VERSION_INTERNAL,']','\0'};
+
503 #endif
+
504 
+
505 /* Construct a string literal encoding the version number components. */
+
506 #ifdef SIMULATE_VERSION_MAJOR
+
507 char const info_simulate_version[] = {
+
508  'I', 'N', 'F', 'O', ':',
+
509  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
510  SIMULATE_VERSION_MAJOR,
+
511 # ifdef SIMULATE_VERSION_MINOR
+
512  '.', SIMULATE_VERSION_MINOR,
+
513 # ifdef SIMULATE_VERSION_PATCH
+
514  '.', SIMULATE_VERSION_PATCH,
+
515 # ifdef SIMULATE_VERSION_TWEAK
+
516  '.', SIMULATE_VERSION_TWEAK,
+
517 # endif
+
518 # endif
+
519 # endif
+
520  ']','\0'};
+
521 #endif
+
522 
+
523 /* Construct the string literal in pieces to prevent the source from
+
524  getting matched. Store it in a pointer rather than an array
+
525  because some compilers will just produce instructions to fill the
+
526  array rather than assigning a pointer to a static array. */
+
527 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
528 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
529 
+
530 
+
531 
+
532 
+
533 #if defined(_MSC_VER) && defined(_MSVC_LANG)
+
534 #define CXX_STD _MSVC_LANG
+
535 #else
+
536 #define CXX_STD __cplusplus
+
537 #endif
+
538 
+
539 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
540 #if CXX_STD > 201402L
+
541  "17"
+
542 #elif CXX_STD >= 201402L
+
543  "14"
+
544 #elif CXX_STD >= 201103L
+
545  "11"
+
546 #else
+
547  "98"
+
548 #endif
+
549 "]";
+
550 
+
551 /*--------------------------------------------------------------------------*/
+
552 
+
553 int main(int argc, char* argv[])
+
554 {
+
555  int require = 0;
+
556  require += info_compiler[argc];
+
557  require += info_platform[argc];
+
558 #ifdef COMPILER_VERSION_MAJOR
+
559  require += info_version[argc];
+
560 #endif
+
561 #ifdef COMPILER_VERSION_INTERNAL
+
562  require += info_version_internal[argc];
+
563 #endif
+
564 #ifdef SIMULATE_ID
+
565  require += info_simulate[argc];
+
566 #endif
+
567 #ifdef SIMULATE_VERSION_MAJOR
+
568  require += info_simulate_version[argc];
+
569 #endif
+
570 #if defined(__CRAYXE) || defined(__CRAYXC)
+
571  require += info_cray[argc];
+
572 #endif
+
573  require += info_language_dialect_default[argc];
+
574  (void)argv;
+
575  return require;
+
576 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..826c8fc --- /dev/null +++ b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,766 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_OFF/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23 # if defined(__GNUC__)
+
24 # define SIMULATE_ID "GNU"
+
25 # endif
+
26  /* __INTEL_COMPILER = VRP */
+
27 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
28 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
29 # if defined(__INTEL_COMPILER_UPDATE)
+
30 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
31 # else
+
32 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
33 # endif
+
34 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
35  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
36 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
37 # endif
+
38 # if defined(_MSC_VER)
+
39  /* _MSC_VER = VVRR */
+
40 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
41 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
42 # endif
+
43 # if defined(__GNUC__)
+
44 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
45 # elif defined(__GNUG__)
+
46 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
47 # endif
+
48 # if defined(__GNUC_MINOR__)
+
49 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
50 # endif
+
51 # if defined(__GNUC_PATCHLEVEL__)
+
52 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
53 # endif
+
54 
+
55 #elif defined(__PATHCC__)
+
56 # define COMPILER_ID "PathScale"
+
57 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
58 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
59 # if defined(__PATHCC_PATCHLEVEL__)
+
60 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
61 # endif
+
62 
+
63 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
64 # define COMPILER_ID "Embarcadero"
+
65 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
66 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
67 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
68 
+
69 #elif defined(__BORLANDC__)
+
70 # define COMPILER_ID "Borland"
+
71  /* __BORLANDC__ = 0xVRR */
+
72 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
73 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
74 
+
75 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
76 # define COMPILER_ID "Watcom"
+
77  /* __WATCOMC__ = VVRR */
+
78 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
79 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
80 # if (__WATCOMC__ % 10) > 0
+
81 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
82 # endif
+
83 
+
84 #elif defined(__WATCOMC__)
+
85 # define COMPILER_ID "OpenWatcom"
+
86  /* __WATCOMC__ = VVRP + 1100 */
+
87 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
88 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
89 # if (__WATCOMC__ % 10) > 0
+
90 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
91 # endif
+
92 
+
93 #elif defined(__SUNPRO_CC)
+
94 # define COMPILER_ID "SunPro"
+
95 # if __SUNPRO_CC >= 0x5100
+
96  /* __SUNPRO_CC = 0xVRRP */
+
97 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
98 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
99 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
100 # else
+
101  /* __SUNPRO_CC = 0xVRP */
+
102 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
103 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
104 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
105 # endif
+
106 
+
107 #elif defined(__HP_aCC)
+
108 # define COMPILER_ID "HP"
+
109  /* __HP_aCC = VVRRPP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
111 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
112 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
113 
+
114 #elif defined(__DECCXX)
+
115 # define COMPILER_ID "Compaq"
+
116  /* __DECCXX_VER = VVRRTPPPP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
118 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
119 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
120 
+
121 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
122 # define COMPILER_ID "zOS"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__ibmxl__) && defined(__clang__)
+
129 # define COMPILER_ID "XLClang"
+
130 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
131 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
132 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
133 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
134 
+
135 
+
136 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
137 # define COMPILER_ID "XL"
+
138  /* __IBMCPP__ = VRP */
+
139 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
140 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
141 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
142 
+
143 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
144 # define COMPILER_ID "VisualAge"
+
145  /* __IBMCPP__ = VRP */
+
146 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
147 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
148 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
149 
+
150 #elif defined(__PGI)
+
151 # define COMPILER_ID "PGI"
+
152 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
153 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
154 # if defined(__PGIC_PATCHLEVEL__)
+
155 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
156 # endif
+
157 
+
158 #elif defined(_CRAYC)
+
159 # define COMPILER_ID "Cray"
+
160 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
161 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
162 
+
163 #elif defined(__TI_COMPILER_VERSION__)
+
164 # define COMPILER_ID "TI"
+
165  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
166 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
167 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
168 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
169 
+
170 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
171 # define COMPILER_ID "Fujitsu"
+
172 
+
173 #elif defined(__ghs__)
+
174 # define COMPILER_ID "GHS"
+
175 /* __GHS_VERSION_NUMBER = VVVVRP */
+
176 # ifdef __GHS_VERSION_NUMBER
+
177 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
178 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
180 # endif
+
181 
+
182 #elif defined(__SCO_VERSION__)
+
183 # define COMPILER_ID "SCO"
+
184 
+
185 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
186 # define COMPILER_ID "ARMCC"
+
187 #if __ARMCC_VERSION >= 1000000
+
188  /* __ARMCC_VERSION = VRRPPPP */
+
189  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
190  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
191  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
192 #else
+
193  /* __ARMCC_VERSION = VRPPPP */
+
194  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
195  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
196  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
197 #endif
+
198 
+
199 
+
200 #elif defined(__clang__) && defined(__apple_build_version__)
+
201 # define COMPILER_ID "AppleClang"
+
202 # if defined(_MSC_VER)
+
203 # define SIMULATE_ID "MSVC"
+
204 # endif
+
205 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
206 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
207 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
208 # if defined(_MSC_VER)
+
209  /* _MSC_VER = VVRR */
+
210 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
211 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
212 # endif
+
213 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
214 
+
215 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
216 # define COMPILER_ID "ARMClang"
+
217  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
218  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
219  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
220 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
221 
+
222 #elif defined(__clang__)
+
223 # define COMPILER_ID "Clang"
+
224 # if defined(_MSC_VER)
+
225 # define SIMULATE_ID "MSVC"
+
226 # endif
+
227 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
228 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
229 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
230 # if defined(_MSC_VER)
+
231  /* _MSC_VER = VVRR */
+
232 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
233 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
234 # endif
+
235 
+
236 #elif defined(__GNUC__) || defined(__GNUG__)
+
237 # define COMPILER_ID "GNU"
+
238 # if defined(__GNUC__)
+
239 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
240 # else
+
241 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
242 # endif
+
243 # if defined(__GNUC_MINOR__)
+
244 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
245 # endif
+
246 # if defined(__GNUC_PATCHLEVEL__)
+
247 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
248 # endif
+
249 
+
250 #elif defined(_MSC_VER)
+
251 # define COMPILER_ID "MSVC"
+
252  /* _MSC_VER = VVRR */
+
253 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
254 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
255 # if defined(_MSC_FULL_VER)
+
256 # if _MSC_VER >= 1400
+
257  /* _MSC_FULL_VER = VVRRPPPPP */
+
258 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
259 # else
+
260  /* _MSC_FULL_VER = VVRRPPPP */
+
261 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
262 # endif
+
263 # endif
+
264 # if defined(_MSC_BUILD)
+
265 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
266 # endif
+
267 
+
268 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
269 # define COMPILER_ID "ADSP"
+
270 #if defined(__VISUALDSPVERSION__)
+
271  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
272 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
273 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
274 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
275 #endif
+
276 
+
277 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
278 # define COMPILER_ID "IAR"
+
279 # if defined(__VER__) && defined(__ICCARM__)
+
280 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
281 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
282 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
283 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
284 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__))
+
285 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
286 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
287 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
288 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
289 # endif
+
290 
+
291 
+
292 /* These compilers are either not known or too old to define an
+
293  identification macro. Try to identify the platform and guess that
+
294  it is the native compiler. */
+
295 #elif defined(__hpux) || defined(__hpua)
+
296 # define COMPILER_ID "HP"
+
297 
+
298 #else /* unknown compiler */
+
299 # define COMPILER_ID ""
+
300 #endif
+
301 
+
302 /* Construct the string literal in pieces to prevent the source from
+
303  getting matched. Store it in a pointer rather than an array
+
304  because some compilers will just produce instructions to fill the
+
305  array rather than assigning a pointer to a static array. */
+
306 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
307 #ifdef SIMULATE_ID
+
308 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
309 #endif
+
310 
+
311 #ifdef __QNXNTO__
+
312 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
313 #endif
+
314 
+
315 #if defined(__CRAYXE) || defined(__CRAYXC)
+
316 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
317 #endif
+
318 
+
319 #define STRINGIFY_HELPER(X) #X
+
320 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
321 
+
322 /* Identify known platforms by name. */
+
323 #if defined(__linux) || defined(__linux__) || defined(linux)
+
324 # define PLATFORM_ID "Linux"
+
325 
+
326 #elif defined(__CYGWIN__)
+
327 # define PLATFORM_ID "Cygwin"
+
328 
+
329 #elif defined(__MINGW32__)
+
330 # define PLATFORM_ID "MinGW"
+
331 
+
332 #elif defined(__APPLE__)
+
333 # define PLATFORM_ID "Darwin"
+
334 
+
335 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
336 # define PLATFORM_ID "Windows"
+
337 
+
338 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
339 # define PLATFORM_ID "FreeBSD"
+
340 
+
341 #elif defined(__NetBSD__) || defined(__NetBSD)
+
342 # define PLATFORM_ID "NetBSD"
+
343 
+
344 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
345 # define PLATFORM_ID "OpenBSD"
+
346 
+
347 #elif defined(__sun) || defined(sun)
+
348 # define PLATFORM_ID "SunOS"
+
349 
+
350 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
351 # define PLATFORM_ID "AIX"
+
352 
+
353 #elif defined(__hpux) || defined(__hpux__)
+
354 # define PLATFORM_ID "HP-UX"
+
355 
+
356 #elif defined(__HAIKU__)
+
357 # define PLATFORM_ID "Haiku"
+
358 
+
359 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
360 # define PLATFORM_ID "BeOS"
+
361 
+
362 #elif defined(__QNX__) || defined(__QNXNTO__)
+
363 # define PLATFORM_ID "QNX"
+
364 
+
365 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
366 # define PLATFORM_ID "Tru64"
+
367 
+
368 #elif defined(__riscos) || defined(__riscos__)
+
369 # define PLATFORM_ID "RISCos"
+
370 
+
371 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
372 # define PLATFORM_ID "SINIX"
+
373 
+
374 #elif defined(__UNIX_SV__)
+
375 # define PLATFORM_ID "UNIX_SV"
+
376 
+
377 #elif defined(__bsdos__)
+
378 # define PLATFORM_ID "BSDOS"
+
379 
+
380 #elif defined(_MPRAS) || defined(MPRAS)
+
381 # define PLATFORM_ID "MP-RAS"
+
382 
+
383 #elif defined(__osf) || defined(__osf__)
+
384 # define PLATFORM_ID "OSF1"
+
385 
+
386 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
387 # define PLATFORM_ID "SCO_SV"
+
388 
+
389 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
390 # define PLATFORM_ID "ULTRIX"
+
391 
+
392 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
393 # define PLATFORM_ID "Xenix"
+
394 
+
395 #elif defined(__WATCOMC__)
+
396 # if defined(__LINUX__)
+
397 # define PLATFORM_ID "Linux"
+
398 
+
399 # elif defined(__DOS__)
+
400 # define PLATFORM_ID "DOS"
+
401 
+
402 # elif defined(__OS2__)
+
403 # define PLATFORM_ID "OS2"
+
404 
+
405 # elif defined(__WINDOWS__)
+
406 # define PLATFORM_ID "Windows3x"
+
407 
+
408 # elif defined(__VXWORKS__)
+
409 # define PLATFORM_ID "VxWorks"
+
410 
+
411 # else /* unknown platform */
+
412 # define PLATFORM_ID
+
413 # endif
+
414 
+
415 #elif defined(__INTEGRITY)
+
416 # if defined(INT_178B)
+
417 # define PLATFORM_ID "Integrity178"
+
418 
+
419 # else /* regular Integrity */
+
420 # define PLATFORM_ID "Integrity"
+
421 # endif
+
422 
+
423 #else /* unknown platform */
+
424 # define PLATFORM_ID
+
425 
+
426 #endif
+
427 
+
428 /* For windows compilers MSVC and Intel we can determine
+
429  the architecture of the compiler being used. This is because
+
430  the compilers do not have flags that can change the architecture,
+
431  but rather depend on which compiler is being used
+
432 */
+
433 #if defined(_WIN32) && defined(_MSC_VER)
+
434 # if defined(_M_IA64)
+
435 # define ARCHITECTURE_ID "IA64"
+
436 
+
437 # elif defined(_M_X64) || defined(_M_AMD64)
+
438 # define ARCHITECTURE_ID "x64"
+
439 
+
440 # elif defined(_M_IX86)
+
441 # define ARCHITECTURE_ID "X86"
+
442 
+
443 # elif defined(_M_ARM64)
+
444 # define ARCHITECTURE_ID "ARM64"
+
445 
+
446 # elif defined(_M_ARM)
+
447 # if _M_ARM == 4
+
448 # define ARCHITECTURE_ID "ARMV4I"
+
449 # elif _M_ARM == 5
+
450 # define ARCHITECTURE_ID "ARMV5I"
+
451 # else
+
452 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
453 # endif
+
454 
+
455 # elif defined(_M_MIPS)
+
456 # define ARCHITECTURE_ID "MIPS"
+
457 
+
458 # elif defined(_M_SH)
+
459 # define ARCHITECTURE_ID "SHx"
+
460 
+
461 # else /* unknown architecture */
+
462 # define ARCHITECTURE_ID ""
+
463 # endif
+
464 
+
465 #elif defined(__WATCOMC__)
+
466 # if defined(_M_I86)
+
467 # define ARCHITECTURE_ID "I86"
+
468 
+
469 # elif defined(_M_IX86)
+
470 # define ARCHITECTURE_ID "X86"
+
471 
+
472 # else /* unknown architecture */
+
473 # define ARCHITECTURE_ID ""
+
474 # endif
+
475 
+
476 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
477 # if defined(__ICCARM__)
+
478 # define ARCHITECTURE_ID "ARM"
+
479 
+
480 # elif defined(__ICCRX__)
+
481 # define ARCHITECTURE_ID "RX"
+
482 
+
483 # elif defined(__ICCRH850__)
+
484 # define ARCHITECTURE_ID "RH850"
+
485 
+
486 # elif defined(__ICCRL78__)
+
487 # define ARCHITECTURE_ID "RL78"
+
488 
+
489 # elif defined(__ICCRISCV__)
+
490 # define ARCHITECTURE_ID "RISCV"
+
491 
+
492 # elif defined(__ICCAVR__)
+
493 # define ARCHITECTURE_ID "AVR"
+
494 
+
495 # elif defined(__ICC430__)
+
496 # define ARCHITECTURE_ID "MSP430"
+
497 
+
498 # elif defined(__ICCV850__)
+
499 # define ARCHITECTURE_ID "V850"
+
500 
+
501 # elif defined(__ICC8051__)
+
502 # define ARCHITECTURE_ID "8051"
+
503 
+
504 # else /* unknown architecture */
+
505 # define ARCHITECTURE_ID ""
+
506 # endif
+
507 
+
508 #elif defined(__ghs__)
+
509 # if defined(__PPC64__)
+
510 # define ARCHITECTURE_ID "PPC64"
+
511 
+
512 # elif defined(__ppc__)
+
513 # define ARCHITECTURE_ID "PPC"
+
514 
+
515 # elif defined(__ARM__)
+
516 # define ARCHITECTURE_ID "ARM"
+
517 
+
518 # elif defined(__x86_64__)
+
519 # define ARCHITECTURE_ID "x64"
+
520 
+
521 # elif defined(__i386__)
+
522 # define ARCHITECTURE_ID "X86"
+
523 
+
524 # else /* unknown architecture */
+
525 # define ARCHITECTURE_ID ""
+
526 # endif
+
527 #else
+
528 # define ARCHITECTURE_ID
+
529 #endif
+
530 
+
531 /* Convert integer to decimal digit literals. */
+
532 #define DEC(n) \
+
533  ('0' + (((n) / 10000000)%10)), \
+
534  ('0' + (((n) / 1000000)%10)), \
+
535  ('0' + (((n) / 100000)%10)), \
+
536  ('0' + (((n) / 10000)%10)), \
+
537  ('0' + (((n) / 1000)%10)), \
+
538  ('0' + (((n) / 100)%10)), \
+
539  ('0' + (((n) / 10)%10)), \
+
540  ('0' + ((n) % 10))
+
541 
+
542 /* Convert integer to hex digit literals. */
+
543 #define HEX(n) \
+
544  ('0' + ((n)>>28 & 0xF)), \
+
545  ('0' + ((n)>>24 & 0xF)), \
+
546  ('0' + ((n)>>20 & 0xF)), \
+
547  ('0' + ((n)>>16 & 0xF)), \
+
548  ('0' + ((n)>>12 & 0xF)), \
+
549  ('0' + ((n)>>8 & 0xF)), \
+
550  ('0' + ((n)>>4 & 0xF)), \
+
551  ('0' + ((n) & 0xF))
+
552 
+
553 /* Construct a string literal encoding the version number components. */
+
554 #ifdef COMPILER_VERSION_MAJOR
+
555 char const info_version[] = {
+
556  'I', 'N', 'F', 'O', ':',
+
557  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
558  COMPILER_VERSION_MAJOR,
+
559 # ifdef COMPILER_VERSION_MINOR
+
560  '.', COMPILER_VERSION_MINOR,
+
561 # ifdef COMPILER_VERSION_PATCH
+
562  '.', COMPILER_VERSION_PATCH,
+
563 # ifdef COMPILER_VERSION_TWEAK
+
564  '.', COMPILER_VERSION_TWEAK,
+
565 # endif
+
566 # endif
+
567 # endif
+
568  ']','\0'};
+
569 #endif
+
570 
+
571 /* Construct a string literal encoding the internal version number. */
+
572 #ifdef COMPILER_VERSION_INTERNAL
+
573 char const info_version_internal[] = {
+
574  'I', 'N', 'F', 'O', ':',
+
575  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
576  'i','n','t','e','r','n','a','l','[',
+
577  COMPILER_VERSION_INTERNAL,']','\0'};
+
578 #endif
+
579 
+
580 /* Construct a string literal encoding the version number components. */
+
581 #ifdef SIMULATE_VERSION_MAJOR
+
582 char const info_simulate_version[] = {
+
583  'I', 'N', 'F', 'O', ':',
+
584  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
585  SIMULATE_VERSION_MAJOR,
+
586 # ifdef SIMULATE_VERSION_MINOR
+
587  '.', SIMULATE_VERSION_MINOR,
+
588 # ifdef SIMULATE_VERSION_PATCH
+
589  '.', SIMULATE_VERSION_PATCH,
+
590 # ifdef SIMULATE_VERSION_TWEAK
+
591  '.', SIMULATE_VERSION_TWEAK,
+
592 # endif
+
593 # endif
+
594 # endif
+
595  ']','\0'};
+
596 #endif
+
597 
+
598 /* Construct the string literal in pieces to prevent the source from
+
599  getting matched. Store it in a pointer rather than an array
+
600  because some compilers will just produce instructions to fill the
+
601  array rather than assigning a pointer to a static array. */
+
602 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
603 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
604 
+
605 
+
606 
+
607 
+
608 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
609 # if defined(__INTEL_CXX11_MODE__)
+
610 # if defined(__cpp_aggregate_nsdmi)
+
611 # define CXX_STD 201402L
+
612 # else
+
613 # define CXX_STD 201103L
+
614 # endif
+
615 # else
+
616 # define CXX_STD 199711L
+
617 # endif
+
618 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
619 # define CXX_STD _MSVC_LANG
+
620 #else
+
621 # define CXX_STD __cplusplus
+
622 #endif
+
623 
+
624 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
625 #if CXX_STD > 201703L
+
626  "20"
+
627 #elif CXX_STD >= 201703L
+
628  "17"
+
629 #elif CXX_STD >= 201402L
+
630  "14"
+
631 #elif CXX_STD >= 201103L
+
632  "11"
+
633 #else
+
634  "98"
+
635 #endif
+
636 "]";
+
637 
+
638 /*--------------------------------------------------------------------------*/
+
639 
+
640 int main(int argc, char* argv[])
+
641 {
+
642  int require = 0;
+
643  require += info_compiler[argc];
+
644  require += info_platform[argc];
+
645 #ifdef COMPILER_VERSION_MAJOR
+
646  require += info_version[argc];
+
647 #endif
+
648 #ifdef COMPILER_VERSION_INTERNAL
+
649  require += info_version_internal[argc];
+
650 #endif
+
651 #ifdef SIMULATE_ID
+
652  require += info_simulate[argc];
+
653 #endif
+
654 #ifdef SIMULATE_VERSION_MAJOR
+
655  require += info_simulate_version[argc];
+
656 #endif
+
657 #if defined(__CRAYXE) || defined(__CRAYXC)
+
658  require += info_cray[argc];
+
659 #endif
+
660  require += info_language_dialect_default[argc];
+
661  (void)argv;
+
662  return require;
+
663 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..1a9dffc --- /dev/null +++ b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,894 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_OFF/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__ibmxl__) && defined(__clang__)
+
182 # define COMPILER_ID "XLClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
190 # define COMPILER_ID "XL"
+
191  /* __IBMCPP__ = VRP */
+
192 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
193 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
194 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
195 
+
196 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
197 # define COMPILER_ID "VisualAge"
+
198  /* __IBMCPP__ = VRP */
+
199 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
200 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
201 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
202 
+
203 #elif defined(__NVCOMPILER)
+
204 # define COMPILER_ID "NVHPC"
+
205 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
206 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
207 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
208 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
209 # endif
+
210 
+
211 #elif defined(__PGI)
+
212 # define COMPILER_ID "PGI"
+
213 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
214 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
215 # if defined(__PGIC_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(_CRAYC)
+
220 # define COMPILER_ID "Cray"
+
221 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
222 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
223 
+
224 #elif defined(__TI_COMPILER_VERSION__)
+
225 # define COMPILER_ID "TI"
+
226  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
227 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
230 
+
231 #elif defined(__CLANG_FUJITSU)
+
232 # define COMPILER_ID "FujitsuClang"
+
233 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
234 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
235 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
236 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
237 
+
238 
+
239 #elif defined(__FUJITSU)
+
240 # define COMPILER_ID "Fujitsu"
+
241 # if defined(__FCC_version__)
+
242 # define COMPILER_VERSION __FCC_version__
+
243 # elif defined(__FCC_major__)
+
244 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
245 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
246 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
247 # endif
+
248 # if defined(__fcc_version)
+
249 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
250 # elif defined(__FCC_VERSION)
+
251 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
252 # endif
+
253 
+
254 
+
255 #elif defined(__ghs__)
+
256 # define COMPILER_ID "GHS"
+
257 /* __GHS_VERSION_NUMBER = VVVVRP */
+
258 # ifdef __GHS_VERSION_NUMBER
+
259 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
260 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
261 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
262 # endif
+
263 
+
264 #elif defined(__SCO_VERSION__)
+
265 # define COMPILER_ID "SCO"
+
266 
+
267 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
268 # define COMPILER_ID "ARMCC"
+
269 #if __ARMCC_VERSION >= 1000000
+
270  /* __ARMCC_VERSION = VRRPPPP */
+
271  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
272  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
273  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
274 #else
+
275  /* __ARMCC_VERSION = VRPPPP */
+
276  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
277  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
278  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
279 #endif
+
280 
+
281 
+
282 #elif defined(__clang__) && defined(__apple_build_version__)
+
283 # define COMPILER_ID "AppleClang"
+
284 # if defined(_MSC_VER)
+
285 # define SIMULATE_ID "MSVC"
+
286 # endif
+
287 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
288 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
289 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
290 # if defined(_MSC_VER)
+
291  /* _MSC_VER = VVRR */
+
292 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
293 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
294 # endif
+
295 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
296 
+
297 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
298 # define COMPILER_ID "ARMClang"
+
299  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
300  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
301  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
302 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
303 
+
304 #elif defined(__clang__)
+
305 # define COMPILER_ID "Clang"
+
306 # if defined(_MSC_VER)
+
307 # define SIMULATE_ID "MSVC"
+
308 # endif
+
309 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
310 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
311 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
312 # if defined(_MSC_VER)
+
313  /* _MSC_VER = VVRR */
+
314 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
315 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
316 # endif
+
317 
+
318 #elif defined(__GNUC__) || defined(__GNUG__)
+
319 # define COMPILER_ID "GNU"
+
320 # if defined(__GNUC__)
+
321 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
322 # else
+
323 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
324 # endif
+
325 # if defined(__GNUC_MINOR__)
+
326 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
327 # endif
+
328 # if defined(__GNUC_PATCHLEVEL__)
+
329 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
330 # endif
+
331 
+
332 #elif defined(_MSC_VER)
+
333 # define COMPILER_ID "MSVC"
+
334  /* _MSC_VER = VVRR */
+
335 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
336 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
337 # if defined(_MSC_FULL_VER)
+
338 # if _MSC_VER >= 1400
+
339  /* _MSC_FULL_VER = VVRRPPPPP */
+
340 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
341 # else
+
342  /* _MSC_FULL_VER = VVRRPPPP */
+
343 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
344 # endif
+
345 # endif
+
346 # if defined(_MSC_BUILD)
+
347 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
348 # endif
+
349 
+
350 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
351 # define COMPILER_ID "ADSP"
+
352 #if defined(__VISUALDSPVERSION__)
+
353  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
354 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
355 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
356 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
357 #endif
+
358 
+
359 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
360 # define COMPILER_ID "IAR"
+
361 # if defined(__VER__) && defined(__ICCARM__)
+
362 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
363 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
364 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
365 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
366 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
367 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
368 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
369 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
370 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
371 # endif
+
372 
+
373 
+
374 /* These compilers are either not known or too old to define an
+
375  identification macro. Try to identify the platform and guess that
+
376  it is the native compiler. */
+
377 #elif defined(__hpux) || defined(__hpua)
+
378 # define COMPILER_ID "HP"
+
379 
+
380 #else /* unknown compiler */
+
381 # define COMPILER_ID ""
+
382 #endif
+
383 
+
384 /* Construct the string literal in pieces to prevent the source from
+
385  getting matched. Store it in a pointer rather than an array
+
386  because some compilers will just produce instructions to fill the
+
387  array rather than assigning a pointer to a static array. */
+
388 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
389 #ifdef SIMULATE_ID
+
390 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
391 #endif
+
392 
+
393 #ifdef __QNXNTO__
+
394 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
395 #endif
+
396 
+
397 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
398 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
399 #endif
+
400 
+
401 #define STRINGIFY_HELPER(X) #X
+
402 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
403 
+
404 /* Identify known platforms by name. */
+
405 #if defined(__linux) || defined(__linux__) || defined(linux)
+
406 # define PLATFORM_ID "Linux"
+
407 
+
408 #elif defined(__MSYS__)
+
409 # define PLATFORM_ID "MSYS"
+
410 
+
411 #elif defined(__CYGWIN__)
+
412 # define PLATFORM_ID "Cygwin"
+
413 
+
414 #elif defined(__MINGW32__)
+
415 # define PLATFORM_ID "MinGW"
+
416 
+
417 #elif defined(__APPLE__)
+
418 # define PLATFORM_ID "Darwin"
+
419 
+
420 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
421 # define PLATFORM_ID "Windows"
+
422 
+
423 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
424 # define PLATFORM_ID "FreeBSD"
+
425 
+
426 #elif defined(__NetBSD__) || defined(__NetBSD)
+
427 # define PLATFORM_ID "NetBSD"
+
428 
+
429 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
430 # define PLATFORM_ID "OpenBSD"
+
431 
+
432 #elif defined(__sun) || defined(sun)
+
433 # define PLATFORM_ID "SunOS"
+
434 
+
435 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
436 # define PLATFORM_ID "AIX"
+
437 
+
438 #elif defined(__hpux) || defined(__hpux__)
+
439 # define PLATFORM_ID "HP-UX"
+
440 
+
441 #elif defined(__HAIKU__)
+
442 # define PLATFORM_ID "Haiku"
+
443 
+
444 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
445 # define PLATFORM_ID "BeOS"
+
446 
+
447 #elif defined(__QNX__) || defined(__QNXNTO__)
+
448 # define PLATFORM_ID "QNX"
+
449 
+
450 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
451 # define PLATFORM_ID "Tru64"
+
452 
+
453 #elif defined(__riscos) || defined(__riscos__)
+
454 # define PLATFORM_ID "RISCos"
+
455 
+
456 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
457 # define PLATFORM_ID "SINIX"
+
458 
+
459 #elif defined(__UNIX_SV__)
+
460 # define PLATFORM_ID "UNIX_SV"
+
461 
+
462 #elif defined(__bsdos__)
+
463 # define PLATFORM_ID "BSDOS"
+
464 
+
465 #elif defined(_MPRAS) || defined(MPRAS)
+
466 # define PLATFORM_ID "MP-RAS"
+
467 
+
468 #elif defined(__osf) || defined(__osf__)
+
469 # define PLATFORM_ID "OSF1"
+
470 
+
471 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
472 # define PLATFORM_ID "SCO_SV"
+
473 
+
474 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
475 # define PLATFORM_ID "ULTRIX"
+
476 
+
477 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
478 # define PLATFORM_ID "Xenix"
+
479 
+
480 #elif defined(__WATCOMC__)
+
481 # if defined(__LINUX__)
+
482 # define PLATFORM_ID "Linux"
+
483 
+
484 # elif defined(__DOS__)
+
485 # define PLATFORM_ID "DOS"
+
486 
+
487 # elif defined(__OS2__)
+
488 # define PLATFORM_ID "OS2"
+
489 
+
490 # elif defined(__WINDOWS__)
+
491 # define PLATFORM_ID "Windows3x"
+
492 
+
493 # elif defined(__VXWORKS__)
+
494 # define PLATFORM_ID "VxWorks"
+
495 
+
496 # else /* unknown platform */
+
497 # define PLATFORM_ID
+
498 # endif
+
499 
+
500 #elif defined(__INTEGRITY)
+
501 # if defined(INT_178B)
+
502 # define PLATFORM_ID "Integrity178"
+
503 
+
504 # else /* regular Integrity */
+
505 # define PLATFORM_ID "Integrity"
+
506 # endif
+
507 
+
508 #else /* unknown platform */
+
509 # define PLATFORM_ID
+
510 
+
511 #endif
+
512 
+
513 /* For windows compilers MSVC and Intel we can determine
+
514  the architecture of the compiler being used. This is because
+
515  the compilers do not have flags that can change the architecture,
+
516  but rather depend on which compiler is being used
+
517 */
+
518 #if defined(_WIN32) && defined(_MSC_VER)
+
519 # if defined(_M_IA64)
+
520 # define ARCHITECTURE_ID "IA64"
+
521 
+
522 # elif defined(_M_ARM64EC)
+
523 # define ARCHITECTURE_ID "ARM64EC"
+
524 
+
525 # elif defined(_M_X64) || defined(_M_AMD64)
+
526 # define ARCHITECTURE_ID "x64"
+
527 
+
528 # elif defined(_M_IX86)
+
529 # define ARCHITECTURE_ID "X86"
+
530 
+
531 # elif defined(_M_ARM64)
+
532 # define ARCHITECTURE_ID "ARM64"
+
533 
+
534 # elif defined(_M_ARM)
+
535 # if _M_ARM == 4
+
536 # define ARCHITECTURE_ID "ARMV4I"
+
537 # elif _M_ARM == 5
+
538 # define ARCHITECTURE_ID "ARMV5I"
+
539 # else
+
540 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
541 # endif
+
542 
+
543 # elif defined(_M_MIPS)
+
544 # define ARCHITECTURE_ID "MIPS"
+
545 
+
546 # elif defined(_M_SH)
+
547 # define ARCHITECTURE_ID "SHx"
+
548 
+
549 # else /* unknown architecture */
+
550 # define ARCHITECTURE_ID ""
+
551 # endif
+
552 
+
553 #elif defined(__WATCOMC__)
+
554 # if defined(_M_I86)
+
555 # define ARCHITECTURE_ID "I86"
+
556 
+
557 # elif defined(_M_IX86)
+
558 # define ARCHITECTURE_ID "X86"
+
559 
+
560 # else /* unknown architecture */
+
561 # define ARCHITECTURE_ID ""
+
562 # endif
+
563 
+
564 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
565 # if defined(__ICCARM__)
+
566 # define ARCHITECTURE_ID "ARM"
+
567 
+
568 # elif defined(__ICCRX__)
+
569 # define ARCHITECTURE_ID "RX"
+
570 
+
571 # elif defined(__ICCRH850__)
+
572 # define ARCHITECTURE_ID "RH850"
+
573 
+
574 # elif defined(__ICCRL78__)
+
575 # define ARCHITECTURE_ID "RL78"
+
576 
+
577 # elif defined(__ICCRISCV__)
+
578 # define ARCHITECTURE_ID "RISCV"
+
579 
+
580 # elif defined(__ICCAVR__)
+
581 # define ARCHITECTURE_ID "AVR"
+
582 
+
583 # elif defined(__ICC430__)
+
584 # define ARCHITECTURE_ID "MSP430"
+
585 
+
586 # elif defined(__ICCV850__)
+
587 # define ARCHITECTURE_ID "V850"
+
588 
+
589 # elif defined(__ICC8051__)
+
590 # define ARCHITECTURE_ID "8051"
+
591 
+
592 # elif defined(__ICCSTM8__)
+
593 # define ARCHITECTURE_ID "STM8"
+
594 
+
595 # else /* unknown architecture */
+
596 # define ARCHITECTURE_ID ""
+
597 # endif
+
598 
+
599 #elif defined(__ghs__)
+
600 # if defined(__PPC64__)
+
601 # define ARCHITECTURE_ID "PPC64"
+
602 
+
603 # elif defined(__ppc__)
+
604 # define ARCHITECTURE_ID "PPC"
+
605 
+
606 # elif defined(__ARM__)
+
607 # define ARCHITECTURE_ID "ARM"
+
608 
+
609 # elif defined(__x86_64__)
+
610 # define ARCHITECTURE_ID "x64"
+
611 
+
612 # elif defined(__i386__)
+
613 # define ARCHITECTURE_ID "X86"
+
614 
+
615 # else /* unknown architecture */
+
616 # define ARCHITECTURE_ID ""
+
617 # endif
+
618 
+
619 #elif defined(__TI_COMPILER_VERSION__)
+
620 # if defined(__TI_ARM__)
+
621 # define ARCHITECTURE_ID "ARM"
+
622 
+
623 # elif defined(__MSP430__)
+
624 # define ARCHITECTURE_ID "MSP430"
+
625 
+
626 # elif defined(__TMS320C28XX__)
+
627 # define ARCHITECTURE_ID "TMS320C28x"
+
628 
+
629 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
630 # define ARCHITECTURE_ID "TMS320C6x"
+
631 
+
632 # else /* unknown architecture */
+
633 # define ARCHITECTURE_ID ""
+
634 # endif
+
635 
+
636 #else
+
637 # define ARCHITECTURE_ID
+
638 #endif
+
639 
+
640 /* Convert integer to decimal digit literals. */
+
641 #define DEC(n) \
+
642  ('0' + (((n) / 10000000)%10)), \
+
643  ('0' + (((n) / 1000000)%10)), \
+
644  ('0' + (((n) / 100000)%10)), \
+
645  ('0' + (((n) / 10000)%10)), \
+
646  ('0' + (((n) / 1000)%10)), \
+
647  ('0' + (((n) / 100)%10)), \
+
648  ('0' + (((n) / 10)%10)), \
+
649  ('0' + ((n) % 10))
+
650 
+
651 /* Convert integer to hex digit literals. */
+
652 #define HEX(n) \
+
653  ('0' + ((n)>>28 & 0xF)), \
+
654  ('0' + ((n)>>24 & 0xF)), \
+
655  ('0' + ((n)>>20 & 0xF)), \
+
656  ('0' + ((n)>>16 & 0xF)), \
+
657  ('0' + ((n)>>12 & 0xF)), \
+
658  ('0' + ((n)>>8 & 0xF)), \
+
659  ('0' + ((n)>>4 & 0xF)), \
+
660  ('0' + ((n) & 0xF))
+
661 
+
662 /* Construct a string literal encoding the version number. */
+
663 #ifdef COMPILER_VERSION
+
664 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
665 
+
666 /* Construct a string literal encoding the version number components. */
+
667 #elif defined(COMPILER_VERSION_MAJOR)
+
668 char const info_version[] = {
+
669  'I', 'N', 'F', 'O', ':',
+
670  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
671  COMPILER_VERSION_MAJOR,
+
672 # ifdef COMPILER_VERSION_MINOR
+
673  '.', COMPILER_VERSION_MINOR,
+
674 # ifdef COMPILER_VERSION_PATCH
+
675  '.', COMPILER_VERSION_PATCH,
+
676 # ifdef COMPILER_VERSION_TWEAK
+
677  '.', COMPILER_VERSION_TWEAK,
+
678 # endif
+
679 # endif
+
680 # endif
+
681  ']','\0'};
+
682 #endif
+
683 
+
684 /* Construct a string literal encoding the internal version number. */
+
685 #ifdef COMPILER_VERSION_INTERNAL
+
686 char const info_version_internal[] = {
+
687  'I', 'N', 'F', 'O', ':',
+
688  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
689  'i','n','t','e','r','n','a','l','[',
+
690  COMPILER_VERSION_INTERNAL,']','\0'};
+
691 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
692 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
693 #endif
+
694 
+
695 /* Construct a string literal encoding the version number components. */
+
696 #ifdef SIMULATE_VERSION_MAJOR
+
697 char const info_simulate_version[] = {
+
698  'I', 'N', 'F', 'O', ':',
+
699  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
700  SIMULATE_VERSION_MAJOR,
+
701 # ifdef SIMULATE_VERSION_MINOR
+
702  '.', SIMULATE_VERSION_MINOR,
+
703 # ifdef SIMULATE_VERSION_PATCH
+
704  '.', SIMULATE_VERSION_PATCH,
+
705 # ifdef SIMULATE_VERSION_TWEAK
+
706  '.', SIMULATE_VERSION_TWEAK,
+
707 # endif
+
708 # endif
+
709 # endif
+
710  ']','\0'};
+
711 #endif
+
712 
+
713 /* Construct the string literal in pieces to prevent the source from
+
714  getting matched. Store it in a pointer rather than an array
+
715  because some compilers will just produce instructions to fill the
+
716  array rather than assigning a pointer to a static array. */
+
717 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
718 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
719 
+
720 
+
721 
+
722 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
723 # if defined(__INTEL_CXX11_MODE__)
+
724 # if defined(__cpp_aggregate_nsdmi)
+
725 # define CXX_STD 201402L
+
726 # else
+
727 # define CXX_STD 201103L
+
728 # endif
+
729 # else
+
730 # define CXX_STD 199711L
+
731 # endif
+
732 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
733 # define CXX_STD _MSVC_LANG
+
734 #else
+
735 # define CXX_STD __cplusplus
+
736 #endif
+
737 
+
738 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
739 #if CXX_STD > 202002L
+
740  "23"
+
741 #elif CXX_STD > 201703L
+
742  "20"
+
743 #elif CXX_STD >= 201703L
+
744  "17"
+
745 #elif CXX_STD >= 201402L
+
746  "14"
+
747 #elif CXX_STD >= 201103L
+
748  "11"
+
749 #else
+
750  "98"
+
751 #endif
+
752 "]";
+
753 
+
754 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
755 /* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */
+
756 #if (defined(__clang__) || defined(__GNUC__) || \
+
757  defined(__TI_COMPILER_VERSION__)) && \
+
758  !defined(__STRICT_ANSI__) && !defined(_MSC_VER)
+
759  "ON"
+
760 #else
+
761  "OFF"
+
762 #endif
+
763 "]";
+
764 
+
765 /*--------------------------------------------------------------------------*/
+
766 
+
767 int main(int argc, char* argv[])
+
768 {
+
769  int require = 0;
+
770  require += info_compiler[argc];
+
771  require += info_platform[argc];
+
772 #ifdef COMPILER_VERSION_MAJOR
+
773  require += info_version[argc];
+
774 #endif
+
775 #ifdef COMPILER_VERSION_INTERNAL
+
776  require += info_version_internal[argc];
+
777 #endif
+
778 #ifdef SIMULATE_ID
+
779  require += info_simulate[argc];
+
780 #endif
+
781 #ifdef SIMULATE_VERSION_MAJOR
+
782  require += info_simulate_version[argc];
+
783 #endif
+
784 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
785  require += info_cray[argc];
+
786 #endif
+
787  require += info_language_standard_default[argc];
+
788  require += info_language_extensions_default[argc];
+
789  (void)argv;
+
790  return require;
+
791 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..9f1f9e1 --- /dev/null +++ b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,929 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_OFF/CMakeFiles/3.24.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__SCO_VERSION__)
+
273 # define COMPILER_ID "SCO"
+
274 
+
275 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
276 # define COMPILER_ID "ARMCC"
+
277 #if __ARMCC_VERSION >= 1000000
+
278  /* __ARMCC_VERSION = VRRPPPP */
+
279  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
280  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
281  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
282 #else
+
283  /* __ARMCC_VERSION = VRPPPP */
+
284  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
285  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
286  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
287 #endif
+
288 
+
289 
+
290 #elif defined(__clang__) && defined(__apple_build_version__)
+
291 # define COMPILER_ID "AppleClang"
+
292 # if defined(_MSC_VER)
+
293 # define SIMULATE_ID "MSVC"
+
294 # endif
+
295 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
296 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
297 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
298 # if defined(_MSC_VER)
+
299  /* _MSC_VER = VVRR */
+
300 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
301 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
302 # endif
+
303 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
304 
+
305 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
306 # define COMPILER_ID "ARMClang"
+
307  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
308  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
309  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
310 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
311 
+
312 #elif defined(__clang__)
+
313 # define COMPILER_ID "Clang"
+
314 # if defined(_MSC_VER)
+
315 # define SIMULATE_ID "MSVC"
+
316 # endif
+
317 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
318 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
319 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
320 # if defined(_MSC_VER)
+
321  /* _MSC_VER = VVRR */
+
322 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
323 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
324 # endif
+
325 
+
326 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
327 # define COMPILER_ID "LCC"
+
328 # define COMPILER_VERSION_MAJOR DEC(1)
+
329 # if defined(__LCC__)
+
330 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
331 # endif
+
332 # if defined(__LCC_MINOR__)
+
333 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
334 # endif
+
335 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
336 # define SIMULATE_ID "GNU"
+
337 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
338 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
339 # if defined(__GNUC_PATCHLEVEL__)
+
340 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
341 # endif
+
342 # endif
+
343 
+
344 #elif defined(__GNUC__) || defined(__GNUG__)
+
345 # define COMPILER_ID "GNU"
+
346 # if defined(__GNUC__)
+
347 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
348 # else
+
349 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
350 # endif
+
351 # if defined(__GNUC_MINOR__)
+
352 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
353 # endif
+
354 # if defined(__GNUC_PATCHLEVEL__)
+
355 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
356 # endif
+
357 
+
358 #elif defined(_MSC_VER)
+
359 # define COMPILER_ID "MSVC"
+
360  /* _MSC_VER = VVRR */
+
361 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
362 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
363 # if defined(_MSC_FULL_VER)
+
364 # if _MSC_VER >= 1400
+
365  /* _MSC_FULL_VER = VVRRPPPPP */
+
366 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
367 # else
+
368  /* _MSC_FULL_VER = VVRRPPPP */
+
369 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
370 # endif
+
371 # endif
+
372 # if defined(_MSC_BUILD)
+
373 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
374 # endif
+
375 
+
376 #elif defined(_ADI_COMPILER)
+
377 # define COMPILER_ID "ADSP"
+
378 #if defined(__VERSIONNUM__)
+
379  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
380 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
381 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
382 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
383 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
384 #endif
+
385 
+
386 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
387 # define COMPILER_ID "IAR"
+
388 # if defined(__VER__) && defined(__ICCARM__)
+
389 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
390 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
391 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
392 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
393 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
394 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
395 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
396 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
397 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
398 # endif
+
399 
+
400 
+
401 /* These compilers are either not known or too old to define an
+
402  identification macro. Try to identify the platform and guess that
+
403  it is the native compiler. */
+
404 #elif defined(__hpux) || defined(__hpua)
+
405 # define COMPILER_ID "HP"
+
406 
+
407 #else /* unknown compiler */
+
408 # define COMPILER_ID ""
+
409 #endif
+
410 
+
411 /* Construct the string literal in pieces to prevent the source from
+
412  getting matched. Store it in a pointer rather than an array
+
413  because some compilers will just produce instructions to fill the
+
414  array rather than assigning a pointer to a static array. */
+
415 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
416 #ifdef SIMULATE_ID
+
417 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
418 #endif
+
419 
+
420 #ifdef __QNXNTO__
+
421 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
422 #endif
+
423 
+
424 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
425 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
426 #endif
+
427 
+
428 #define STRINGIFY_HELPER(X) #X
+
429 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
430 
+
431 /* Identify known platforms by name. */
+
432 #if defined(__linux) || defined(__linux__) || defined(linux)
+
433 # define PLATFORM_ID "Linux"
+
434 
+
435 #elif defined(__MSYS__)
+
436 # define PLATFORM_ID "MSYS"
+
437 
+
438 #elif defined(__CYGWIN__)
+
439 # define PLATFORM_ID "Cygwin"
+
440 
+
441 #elif defined(__MINGW32__)
+
442 # define PLATFORM_ID "MinGW"
+
443 
+
444 #elif defined(__APPLE__)
+
445 # define PLATFORM_ID "Darwin"
+
446 
+
447 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
448 # define PLATFORM_ID "Windows"
+
449 
+
450 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
451 # define PLATFORM_ID "FreeBSD"
+
452 
+
453 #elif defined(__NetBSD__) || defined(__NetBSD)
+
454 # define PLATFORM_ID "NetBSD"
+
455 
+
456 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
457 # define PLATFORM_ID "OpenBSD"
+
458 
+
459 #elif defined(__sun) || defined(sun)
+
460 # define PLATFORM_ID "SunOS"
+
461 
+
462 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
463 # define PLATFORM_ID "AIX"
+
464 
+
465 #elif defined(__hpux) || defined(__hpux__)
+
466 # define PLATFORM_ID "HP-UX"
+
467 
+
468 #elif defined(__HAIKU__)
+
469 # define PLATFORM_ID "Haiku"
+
470 
+
471 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
472 # define PLATFORM_ID "BeOS"
+
473 
+
474 #elif defined(__QNX__) || defined(__QNXNTO__)
+
475 # define PLATFORM_ID "QNX"
+
476 
+
477 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
478 # define PLATFORM_ID "Tru64"
+
479 
+
480 #elif defined(__riscos) || defined(__riscos__)
+
481 # define PLATFORM_ID "RISCos"
+
482 
+
483 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
484 # define PLATFORM_ID "SINIX"
+
485 
+
486 #elif defined(__UNIX_SV__)
+
487 # define PLATFORM_ID "UNIX_SV"
+
488 
+
489 #elif defined(__bsdos__)
+
490 # define PLATFORM_ID "BSDOS"
+
491 
+
492 #elif defined(_MPRAS) || defined(MPRAS)
+
493 # define PLATFORM_ID "MP-RAS"
+
494 
+
495 #elif defined(__osf) || defined(__osf__)
+
496 # define PLATFORM_ID "OSF1"
+
497 
+
498 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
499 # define PLATFORM_ID "SCO_SV"
+
500 
+
501 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
502 # define PLATFORM_ID "ULTRIX"
+
503 
+
504 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
505 # define PLATFORM_ID "Xenix"
+
506 
+
507 #elif defined(__WATCOMC__)
+
508 # if defined(__LINUX__)
+
509 # define PLATFORM_ID "Linux"
+
510 
+
511 # elif defined(__DOS__)
+
512 # define PLATFORM_ID "DOS"
+
513 
+
514 # elif defined(__OS2__)
+
515 # define PLATFORM_ID "OS2"
+
516 
+
517 # elif defined(__WINDOWS__)
+
518 # define PLATFORM_ID "Windows3x"
+
519 
+
520 # elif defined(__VXWORKS__)
+
521 # define PLATFORM_ID "VxWorks"
+
522 
+
523 # else /* unknown platform */
+
524 # define PLATFORM_ID
+
525 # endif
+
526 
+
527 #elif defined(__INTEGRITY)
+
528 # if defined(INT_178B)
+
529 # define PLATFORM_ID "Integrity178"
+
530 
+
531 # else /* regular Integrity */
+
532 # define PLATFORM_ID "Integrity"
+
533 # endif
+
534 
+
535 # elif defined(_ADI_COMPILER)
+
536 # define PLATFORM_ID "ADSP"
+
537 
+
538 #else /* unknown platform */
+
539 # define PLATFORM_ID
+
540 
+
541 #endif
+
542 
+
543 /* For windows compilers MSVC and Intel we can determine
+
544  the architecture of the compiler being used. This is because
+
545  the compilers do not have flags that can change the architecture,
+
546  but rather depend on which compiler is being used
+
547 */
+
548 #if defined(_WIN32) && defined(_MSC_VER)
+
549 # if defined(_M_IA64)
+
550 # define ARCHITECTURE_ID "IA64"
+
551 
+
552 # elif defined(_M_ARM64EC)
+
553 # define ARCHITECTURE_ID "ARM64EC"
+
554 
+
555 # elif defined(_M_X64) || defined(_M_AMD64)
+
556 # define ARCHITECTURE_ID "x64"
+
557 
+
558 # elif defined(_M_IX86)
+
559 # define ARCHITECTURE_ID "X86"
+
560 
+
561 # elif defined(_M_ARM64)
+
562 # define ARCHITECTURE_ID "ARM64"
+
563 
+
564 # elif defined(_M_ARM)
+
565 # if _M_ARM == 4
+
566 # define ARCHITECTURE_ID "ARMV4I"
+
567 # elif _M_ARM == 5
+
568 # define ARCHITECTURE_ID "ARMV5I"
+
569 # else
+
570 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
571 # endif
+
572 
+
573 # elif defined(_M_MIPS)
+
574 # define ARCHITECTURE_ID "MIPS"
+
575 
+
576 # elif defined(_M_SH)
+
577 # define ARCHITECTURE_ID "SHx"
+
578 
+
579 # else /* unknown architecture */
+
580 # define ARCHITECTURE_ID ""
+
581 # endif
+
582 
+
583 #elif defined(__WATCOMC__)
+
584 # if defined(_M_I86)
+
585 # define ARCHITECTURE_ID "I86"
+
586 
+
587 # elif defined(_M_IX86)
+
588 # define ARCHITECTURE_ID "X86"
+
589 
+
590 # else /* unknown architecture */
+
591 # define ARCHITECTURE_ID ""
+
592 # endif
+
593 
+
594 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
595 # if defined(__ICCARM__)
+
596 # define ARCHITECTURE_ID "ARM"
+
597 
+
598 # elif defined(__ICCRX__)
+
599 # define ARCHITECTURE_ID "RX"
+
600 
+
601 # elif defined(__ICCRH850__)
+
602 # define ARCHITECTURE_ID "RH850"
+
603 
+
604 # elif defined(__ICCRL78__)
+
605 # define ARCHITECTURE_ID "RL78"
+
606 
+
607 # elif defined(__ICCRISCV__)
+
608 # define ARCHITECTURE_ID "RISCV"
+
609 
+
610 # elif defined(__ICCAVR__)
+
611 # define ARCHITECTURE_ID "AVR"
+
612 
+
613 # elif defined(__ICC430__)
+
614 # define ARCHITECTURE_ID "MSP430"
+
615 
+
616 # elif defined(__ICCV850__)
+
617 # define ARCHITECTURE_ID "V850"
+
618 
+
619 # elif defined(__ICC8051__)
+
620 # define ARCHITECTURE_ID "8051"
+
621 
+
622 # elif defined(__ICCSTM8__)
+
623 # define ARCHITECTURE_ID "STM8"
+
624 
+
625 # else /* unknown architecture */
+
626 # define ARCHITECTURE_ID ""
+
627 # endif
+
628 
+
629 #elif defined(__ghs__)
+
630 # if defined(__PPC64__)
+
631 # define ARCHITECTURE_ID "PPC64"
+
632 
+
633 # elif defined(__ppc__)
+
634 # define ARCHITECTURE_ID "PPC"
+
635 
+
636 # elif defined(__ARM__)
+
637 # define ARCHITECTURE_ID "ARM"
+
638 
+
639 # elif defined(__x86_64__)
+
640 # define ARCHITECTURE_ID "x64"
+
641 
+
642 # elif defined(__i386__)
+
643 # define ARCHITECTURE_ID "X86"
+
644 
+
645 # else /* unknown architecture */
+
646 # define ARCHITECTURE_ID ""
+
647 # endif
+
648 
+
649 #elif defined(__TI_COMPILER_VERSION__)
+
650 # if defined(__TI_ARM__)
+
651 # define ARCHITECTURE_ID "ARM"
+
652 
+
653 # elif defined(__MSP430__)
+
654 # define ARCHITECTURE_ID "MSP430"
+
655 
+
656 # elif defined(__TMS320C28XX__)
+
657 # define ARCHITECTURE_ID "TMS320C28x"
+
658 
+
659 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
660 # define ARCHITECTURE_ID "TMS320C6x"
+
661 
+
662 # else /* unknown architecture */
+
663 # define ARCHITECTURE_ID ""
+
664 # endif
+
665 
+
666 # elif defined(__ADSPSHARC__)
+
667 # define ARCHITECTURE_ID "SHARC"
+
668 
+
669 # elif defined(__ADSPBLACKFIN__)
+
670 # define ARCHITECTURE_ID "Blackfin"
+
671 
+
672 #else
+
673 # define ARCHITECTURE_ID
+
674 #endif
+
675 
+
676 /* Convert integer to decimal digit literals. */
+
677 #define DEC(n) \
+
678  ('0' + (((n) / 10000000)%10)), \
+
679  ('0' + (((n) / 1000000)%10)), \
+
680  ('0' + (((n) / 100000)%10)), \
+
681  ('0' + (((n) / 10000)%10)), \
+
682  ('0' + (((n) / 1000)%10)), \
+
683  ('0' + (((n) / 100)%10)), \
+
684  ('0' + (((n) / 10)%10)), \
+
685  ('0' + ((n) % 10))
+
686 
+
687 /* Convert integer to hex digit literals. */
+
688 #define HEX(n) \
+
689  ('0' + ((n)>>28 & 0xF)), \
+
690  ('0' + ((n)>>24 & 0xF)), \
+
691  ('0' + ((n)>>20 & 0xF)), \
+
692  ('0' + ((n)>>16 & 0xF)), \
+
693  ('0' + ((n)>>12 & 0xF)), \
+
694  ('0' + ((n)>>8 & 0xF)), \
+
695  ('0' + ((n)>>4 & 0xF)), \
+
696  ('0' + ((n) & 0xF))
+
697 
+
698 /* Construct a string literal encoding the version number. */
+
699 #ifdef COMPILER_VERSION
+
700 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
701 
+
702 /* Construct a string literal encoding the version number components. */
+
703 #elif defined(COMPILER_VERSION_MAJOR)
+
704 char const info_version[] = {
+
705  'I', 'N', 'F', 'O', ':',
+
706  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
707  COMPILER_VERSION_MAJOR,
+
708 # ifdef COMPILER_VERSION_MINOR
+
709  '.', COMPILER_VERSION_MINOR,
+
710 # ifdef COMPILER_VERSION_PATCH
+
711  '.', COMPILER_VERSION_PATCH,
+
712 # ifdef COMPILER_VERSION_TWEAK
+
713  '.', COMPILER_VERSION_TWEAK,
+
714 # endif
+
715 # endif
+
716 # endif
+
717  ']','\0'};
+
718 #endif
+
719 
+
720 /* Construct a string literal encoding the internal version number. */
+
721 #ifdef COMPILER_VERSION_INTERNAL
+
722 char const info_version_internal[] = {
+
723  'I', 'N', 'F', 'O', ':',
+
724  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
725  'i','n','t','e','r','n','a','l','[',
+
726  COMPILER_VERSION_INTERNAL,']','\0'};
+
727 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
728 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
729 #endif
+
730 
+
731 /* Construct a string literal encoding the version number components. */
+
732 #ifdef SIMULATE_VERSION_MAJOR
+
733 char const info_simulate_version[] = {
+
734  'I', 'N', 'F', 'O', ':',
+
735  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
736  SIMULATE_VERSION_MAJOR,
+
737 # ifdef SIMULATE_VERSION_MINOR
+
738  '.', SIMULATE_VERSION_MINOR,
+
739 # ifdef SIMULATE_VERSION_PATCH
+
740  '.', SIMULATE_VERSION_PATCH,
+
741 # ifdef SIMULATE_VERSION_TWEAK
+
742  '.', SIMULATE_VERSION_TWEAK,
+
743 # endif
+
744 # endif
+
745 # endif
+
746  ']','\0'};
+
747 #endif
+
748 
+
749 /* Construct the string literal in pieces to prevent the source from
+
750  getting matched. Store it in a pointer rather than an array
+
751  because some compilers will just produce instructions to fill the
+
752  array rather than assigning a pointer to a static array. */
+
753 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
754 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
755 
+
756 
+
757 
+
758 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
759 # if defined(__INTEL_CXX11_MODE__)
+
760 # if defined(__cpp_aggregate_nsdmi)
+
761 # define CXX_STD 201402L
+
762 # else
+
763 # define CXX_STD 201103L
+
764 # endif
+
765 # else
+
766 # define CXX_STD 199711L
+
767 # endif
+
768 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
769 # define CXX_STD _MSVC_LANG
+
770 #else
+
771 # define CXX_STD __cplusplus
+
772 #endif
+
773 
+
774 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
775 #if CXX_STD > 202002L
+
776  "23"
+
777 #elif CXX_STD > 201703L
+
778  "20"
+
779 #elif CXX_STD >= 201703L
+
780  "17"
+
781 #elif CXX_STD >= 201402L
+
782  "14"
+
783 #elif CXX_STD >= 201103L
+
784  "11"
+
785 #else
+
786  "98"
+
787 #endif
+
788 "]";
+
789 
+
790 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
791 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
792  defined(__TI_COMPILER_VERSION__)) && \
+
793  !defined(__STRICT_ANSI__)
+
794  "ON"
+
795 #else
+
796  "OFF"
+
797 #endif
+
798 "]";
+
799 
+
800 /*--------------------------------------------------------------------------*/
+
801 
+
802 int main(int argc, char* argv[])
+
803 {
+
804  int require = 0;
+
805  require += info_compiler[argc];
+
806  require += info_platform[argc];
+
807 #ifdef COMPILER_VERSION_MAJOR
+
808  require += info_version[argc];
+
809 #endif
+
810 #ifdef COMPILER_VERSION_INTERNAL
+
811  require += info_version_internal[argc];
+
812 #endif
+
813 #ifdef SIMULATE_ID
+
814  require += info_simulate[argc];
+
815 #endif
+
816 #ifdef SIMULATE_VERSION_MAJOR
+
817  require += info_simulate_version[argc];
+
818 #endif
+
819 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
820  require += info_cray[argc];
+
821 #endif
+
822  require += info_language_standard_default[argc];
+
823  require += info_language_extensions_default[argc];
+
824  (void)argv;
+
825  return require;
+
826 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..b59f5df --- /dev/null +++ b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_OFF/CMakeFiles/3.25.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..26f57b4 --- /dev/null +++ b/docs/_rel_with_deb_info___o_f_f_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_OFF/CMakeFiles/3.25.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_n_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..0c2a38a --- /dev/null +++ b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,679 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_ON/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23  /* __INTEL_COMPILER = VRP */
+
24 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
25 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
26 # if defined(__INTEL_COMPILER_UPDATE)
+
27 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
28 # else
+
29 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
30 # endif
+
31 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
32  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
33 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
34 # endif
+
35 # if defined(_MSC_VER)
+
36  /* _MSC_VER = VVRR */
+
37 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
38 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
39 # endif
+
40 
+
41 #elif defined(__PATHCC__)
+
42 # define COMPILER_ID "PathScale"
+
43 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
44 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
45 # if defined(__PATHCC_PATCHLEVEL__)
+
46 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
47 # endif
+
48 
+
49 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
50 # define COMPILER_ID "Embarcadero"
+
51 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
52 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
53 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
54 
+
55 #elif defined(__BORLANDC__)
+
56 # define COMPILER_ID "Borland"
+
57  /* __BORLANDC__ = 0xVRR */
+
58 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
59 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
60 
+
61 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
62 # define COMPILER_ID "Watcom"
+
63  /* __WATCOMC__ = VVRR */
+
64 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
65 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
66 # if (__WATCOMC__ % 10) > 0
+
67 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
68 # endif
+
69 
+
70 #elif defined(__WATCOMC__)
+
71 # define COMPILER_ID "OpenWatcom"
+
72  /* __WATCOMC__ = VVRP + 1100 */
+
73 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
74 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
75 # if (__WATCOMC__ % 10) > 0
+
76 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
77 # endif
+
78 
+
79 #elif defined(__SUNPRO_CC)
+
80 # define COMPILER_ID "SunPro"
+
81 # if __SUNPRO_CC >= 0x5100
+
82  /* __SUNPRO_CC = 0xVRRP */
+
83 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
84 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
85 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
86 # else
+
87  /* __SUNPRO_CC = 0xVRP */
+
88 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
89 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
90 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
91 # endif
+
92 
+
93 #elif defined(__HP_aCC)
+
94 # define COMPILER_ID "HP"
+
95  /* __HP_aCC = VVRRPP */
+
96 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
97 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
98 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
99 
+
100 #elif defined(__DECCXX)
+
101 # define COMPILER_ID "Compaq"
+
102  /* __DECCXX_VER = VVRRTPPPP */
+
103 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
104 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
105 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
106 
+
107 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
108 # define COMPILER_ID "zOS"
+
109  /* __IBMCPP__ = VRP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
111 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
112 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
113 
+
114 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
115 # define COMPILER_ID "XL"
+
116  /* __IBMCPP__ = VRP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
118 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
119 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
120 
+
121 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
122 # define COMPILER_ID "VisualAge"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__PGI)
+
129 # define COMPILER_ID "PGI"
+
130 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
131 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
132 # if defined(__PGIC_PATCHLEVEL__)
+
133 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
134 # endif
+
135 
+
136 #elif defined(_CRAYC)
+
137 # define COMPILER_ID "Cray"
+
138 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
139 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
140 
+
141 #elif defined(__TI_COMPILER_VERSION__)
+
142 # define COMPILER_ID "TI"
+
143  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
144 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
145 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
146 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
147 
+
148 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
149 # define COMPILER_ID "Fujitsu"
+
150 
+
151 #elif defined(__SCO_VERSION__)
+
152 # define COMPILER_ID "SCO"
+
153 
+
154 #elif defined(__clang__) && defined(__apple_build_version__)
+
155 # define COMPILER_ID "AppleClang"
+
156 # if defined(_MSC_VER)
+
157 # define SIMULATE_ID "MSVC"
+
158 # endif
+
159 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
160 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
161 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
162 # if defined(_MSC_VER)
+
163  /* _MSC_VER = VVRR */
+
164 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
165 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
166 # endif
+
167 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
168 
+
169 #elif defined(__clang__)
+
170 # define COMPILER_ID "Clang"
+
171 # if defined(_MSC_VER)
+
172 # define SIMULATE_ID "MSVC"
+
173 # endif
+
174 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
175 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
176 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
177 # if defined(_MSC_VER)
+
178  /* _MSC_VER = VVRR */
+
179 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
180 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
181 # endif
+
182 
+
183 #elif defined(__GNUC__) || defined(__GNUG__)
+
184 # define COMPILER_ID "GNU"
+
185 # if defined(__GNUC__)
+
186 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
187 # else
+
188 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
189 # endif
+
190 # if defined(__GNUC_MINOR__)
+
191 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
192 # endif
+
193 # if defined(__GNUC_PATCHLEVEL__)
+
194 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
195 # endif
+
196 
+
197 #elif defined(_MSC_VER)
+
198 # define COMPILER_ID "MSVC"
+
199  /* _MSC_VER = VVRR */
+
200 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
201 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
202 # if defined(_MSC_FULL_VER)
+
203 # if _MSC_VER >= 1400
+
204  /* _MSC_FULL_VER = VVRRPPPPP */
+
205 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
206 # else
+
207  /* _MSC_FULL_VER = VVRRPPPP */
+
208 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
209 # endif
+
210 # endif
+
211 # if defined(_MSC_BUILD)
+
212 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
213 # endif
+
214 
+
215 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
216 # define COMPILER_ID "ADSP"
+
217 #if defined(__VISUALDSPVERSION__)
+
218  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
219 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
220 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
221 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
222 #endif
+
223 
+
224 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
225 # define COMPILER_ID "IAR"
+
226 # if defined(__VER__)
+
227 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
230 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
231 # endif
+
232 
+
233 #elif defined(__ARMCC_VERSION)
+
234 # define COMPILER_ID "ARMCC"
+
235 #if __ARMCC_VERSION >= 1000000
+
236  /* __ARMCC_VERSION = VRRPPPP */
+
237  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
238  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
239  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
240 #else
+
241  /* __ARMCC_VERSION = VRPPPP */
+
242  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
243  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
244  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
245 #endif
+
246 
+
247 
+
248 #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
+
249 # define COMPILER_ID "MIPSpro"
+
250 # if defined(_SGI_COMPILER_VERSION)
+
251  /* _SGI_COMPILER_VERSION = VRP */
+
252 # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
+
253 # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
+
254 # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
+
255 # else
+
256  /* _COMPILER_VERSION = VRP */
+
257 # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
+
258 # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
+
259 # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
+
260 # endif
+
261 
+
262 
+
263 /* These compilers are either not known or too old to define an
+
264  identification macro. Try to identify the platform and guess that
+
265  it is the native compiler. */
+
266 #elif defined(__sgi)
+
267 # define COMPILER_ID "MIPSpro"
+
268 
+
269 #elif defined(__hpux) || defined(__hpua)
+
270 # define COMPILER_ID "HP"
+
271 
+
272 #else /* unknown compiler */
+
273 # define COMPILER_ID ""
+
274 #endif
+
275 
+
276 /* Construct the string literal in pieces to prevent the source from
+
277  getting matched. Store it in a pointer rather than an array
+
278  because some compilers will just produce instructions to fill the
+
279  array rather than assigning a pointer to a static array. */
+
280 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
281 #ifdef SIMULATE_ID
+
282 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
283 #endif
+
284 
+
285 #ifdef __QNXNTO__
+
286 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
287 #endif
+
288 
+
289 #if defined(__CRAYXE) || defined(__CRAYXC)
+
290 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
291 #endif
+
292 
+
293 #define STRINGIFY_HELPER(X) #X
+
294 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
295 
+
296 /* Identify known platforms by name. */
+
297 #if defined(__linux) || defined(__linux__) || defined(linux)
+
298 # define PLATFORM_ID "Linux"
+
299 
+
300 #elif defined(__CYGWIN__)
+
301 # define PLATFORM_ID "Cygwin"
+
302 
+
303 #elif defined(__MINGW32__)
+
304 # define PLATFORM_ID "MinGW"
+
305 
+
306 #elif defined(__APPLE__)
+
307 # define PLATFORM_ID "Darwin"
+
308 
+
309 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
310 # define PLATFORM_ID "Windows"
+
311 
+
312 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
313 # define PLATFORM_ID "FreeBSD"
+
314 
+
315 #elif defined(__NetBSD__) || defined(__NetBSD)
+
316 # define PLATFORM_ID "NetBSD"
+
317 
+
318 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
319 # define PLATFORM_ID "OpenBSD"
+
320 
+
321 #elif defined(__sun) || defined(sun)
+
322 # define PLATFORM_ID "SunOS"
+
323 
+
324 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
325 # define PLATFORM_ID "AIX"
+
326 
+
327 #elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
+
328 # define PLATFORM_ID "IRIX"
+
329 
+
330 #elif defined(__hpux) || defined(__hpux__)
+
331 # define PLATFORM_ID "HP-UX"
+
332 
+
333 #elif defined(__HAIKU__)
+
334 # define PLATFORM_ID "Haiku"
+
335 
+
336 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
337 # define PLATFORM_ID "BeOS"
+
338 
+
339 #elif defined(__QNX__) || defined(__QNXNTO__)
+
340 # define PLATFORM_ID "QNX"
+
341 
+
342 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
343 # define PLATFORM_ID "Tru64"
+
344 
+
345 #elif defined(__riscos) || defined(__riscos__)
+
346 # define PLATFORM_ID "RISCos"
+
347 
+
348 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
349 # define PLATFORM_ID "SINIX"
+
350 
+
351 #elif defined(__UNIX_SV__)
+
352 # define PLATFORM_ID "UNIX_SV"
+
353 
+
354 #elif defined(__bsdos__)
+
355 # define PLATFORM_ID "BSDOS"
+
356 
+
357 #elif defined(_MPRAS) || defined(MPRAS)
+
358 # define PLATFORM_ID "MP-RAS"
+
359 
+
360 #elif defined(__osf) || defined(__osf__)
+
361 # define PLATFORM_ID "OSF1"
+
362 
+
363 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
364 # define PLATFORM_ID "SCO_SV"
+
365 
+
366 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
367 # define PLATFORM_ID "ULTRIX"
+
368 
+
369 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
370 # define PLATFORM_ID "Xenix"
+
371 
+
372 #elif defined(__WATCOMC__)
+
373 # if defined(__LINUX__)
+
374 # define PLATFORM_ID "Linux"
+
375 
+
376 # elif defined(__DOS__)
+
377 # define PLATFORM_ID "DOS"
+
378 
+
379 # elif defined(__OS2__)
+
380 # define PLATFORM_ID "OS2"
+
381 
+
382 # elif defined(__WINDOWS__)
+
383 # define PLATFORM_ID "Windows3x"
+
384 
+
385 # else /* unknown platform */
+
386 # define PLATFORM_ID
+
387 # endif
+
388 
+
389 #else /* unknown platform */
+
390 # define PLATFORM_ID
+
391 
+
392 #endif
+
393 
+
394 /* For windows compilers MSVC and Intel we can determine
+
395  the architecture of the compiler being used. This is because
+
396  the compilers do not have flags that can change the architecture,
+
397  but rather depend on which compiler is being used
+
398 */
+
399 #if defined(_WIN32) && defined(_MSC_VER)
+
400 # if defined(_M_IA64)
+
401 # define ARCHITECTURE_ID "IA64"
+
402 
+
403 # elif defined(_M_X64) || defined(_M_AMD64)
+
404 # define ARCHITECTURE_ID "x64"
+
405 
+
406 # elif defined(_M_IX86)
+
407 # define ARCHITECTURE_ID "X86"
+
408 
+
409 # elif defined(_M_ARM64)
+
410 # define ARCHITECTURE_ID "ARM64"
+
411 
+
412 # elif defined(_M_ARM)
+
413 # if _M_ARM == 4
+
414 # define ARCHITECTURE_ID "ARMV4I"
+
415 # elif _M_ARM == 5
+
416 # define ARCHITECTURE_ID "ARMV5I"
+
417 # else
+
418 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
419 # endif
+
420 
+
421 # elif defined(_M_MIPS)
+
422 # define ARCHITECTURE_ID "MIPS"
+
423 
+
424 # elif defined(_M_SH)
+
425 # define ARCHITECTURE_ID "SHx"
+
426 
+
427 # else /* unknown architecture */
+
428 # define ARCHITECTURE_ID ""
+
429 # endif
+
430 
+
431 #elif defined(__WATCOMC__)
+
432 # if defined(_M_I86)
+
433 # define ARCHITECTURE_ID "I86"
+
434 
+
435 # elif defined(_M_IX86)
+
436 # define ARCHITECTURE_ID "X86"
+
437 
+
438 # else /* unknown architecture */
+
439 # define ARCHITECTURE_ID ""
+
440 # endif
+
441 
+
442 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
443 # if defined(__ICCARM__)
+
444 # define ARCHITECTURE_ID "ARM"
+
445 
+
446 # elif defined(__ICCAVR__)
+
447 # define ARCHITECTURE_ID "AVR"
+
448 
+
449 # else /* unknown architecture */
+
450 # define ARCHITECTURE_ID ""
+
451 # endif
+
452 #else
+
453 # define ARCHITECTURE_ID
+
454 #endif
+
455 
+
456 /* Convert integer to decimal digit literals. */
+
457 #define DEC(n) \
+
458  ('0' + (((n) / 10000000)%10)), \
+
459  ('0' + (((n) / 1000000)%10)), \
+
460  ('0' + (((n) / 100000)%10)), \
+
461  ('0' + (((n) / 10000)%10)), \
+
462  ('0' + (((n) / 1000)%10)), \
+
463  ('0' + (((n) / 100)%10)), \
+
464  ('0' + (((n) / 10)%10)), \
+
465  ('0' + ((n) % 10))
+
466 
+
467 /* Convert integer to hex digit literals. */
+
468 #define HEX(n) \
+
469  ('0' + ((n)>>28 & 0xF)), \
+
470  ('0' + ((n)>>24 & 0xF)), \
+
471  ('0' + ((n)>>20 & 0xF)), \
+
472  ('0' + ((n)>>16 & 0xF)), \
+
473  ('0' + ((n)>>12 & 0xF)), \
+
474  ('0' + ((n)>>8 & 0xF)), \
+
475  ('0' + ((n)>>4 & 0xF)), \
+
476  ('0' + ((n) & 0xF))
+
477 
+
478 /* Construct a string literal encoding the version number components. */
+
479 #ifdef COMPILER_VERSION_MAJOR
+
480 char const info_version[] = {
+
481  'I', 'N', 'F', 'O', ':',
+
482  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
483  COMPILER_VERSION_MAJOR,
+
484 # ifdef COMPILER_VERSION_MINOR
+
485  '.', COMPILER_VERSION_MINOR,
+
486 # ifdef COMPILER_VERSION_PATCH
+
487  '.', COMPILER_VERSION_PATCH,
+
488 # ifdef COMPILER_VERSION_TWEAK
+
489  '.', COMPILER_VERSION_TWEAK,
+
490 # endif
+
491 # endif
+
492 # endif
+
493  ']','\0'};
+
494 #endif
+
495 
+
496 /* Construct a string literal encoding the internal version number. */
+
497 #ifdef COMPILER_VERSION_INTERNAL
+
498 char const info_version_internal[] = {
+
499  'I', 'N', 'F', 'O', ':',
+
500  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
501  'i','n','t','e','r','n','a','l','[',
+
502  COMPILER_VERSION_INTERNAL,']','\0'};
+
503 #endif
+
504 
+
505 /* Construct a string literal encoding the version number components. */
+
506 #ifdef SIMULATE_VERSION_MAJOR
+
507 char const info_simulate_version[] = {
+
508  'I', 'N', 'F', 'O', ':',
+
509  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
510  SIMULATE_VERSION_MAJOR,
+
511 # ifdef SIMULATE_VERSION_MINOR
+
512  '.', SIMULATE_VERSION_MINOR,
+
513 # ifdef SIMULATE_VERSION_PATCH
+
514  '.', SIMULATE_VERSION_PATCH,
+
515 # ifdef SIMULATE_VERSION_TWEAK
+
516  '.', SIMULATE_VERSION_TWEAK,
+
517 # endif
+
518 # endif
+
519 # endif
+
520  ']','\0'};
+
521 #endif
+
522 
+
523 /* Construct the string literal in pieces to prevent the source from
+
524  getting matched. Store it in a pointer rather than an array
+
525  because some compilers will just produce instructions to fill the
+
526  array rather than assigning a pointer to a static array. */
+
527 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
528 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
529 
+
530 
+
531 
+
532 
+
533 #if defined(_MSC_VER) && defined(_MSVC_LANG)
+
534 #define CXX_STD _MSVC_LANG
+
535 #else
+
536 #define CXX_STD __cplusplus
+
537 #endif
+
538 
+
539 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
540 #if CXX_STD > 201402L
+
541  "17"
+
542 #elif CXX_STD >= 201402L
+
543  "14"
+
544 #elif CXX_STD >= 201103L
+
545  "11"
+
546 #else
+
547  "98"
+
548 #endif
+
549 "]";
+
550 
+
551 /*--------------------------------------------------------------------------*/
+
552 
+
553 int main(int argc, char* argv[])
+
554 {
+
555  int require = 0;
+
556  require += info_compiler[argc];
+
557  require += info_platform[argc];
+
558 #ifdef COMPILER_VERSION_MAJOR
+
559  require += info_version[argc];
+
560 #endif
+
561 #ifdef COMPILER_VERSION_INTERNAL
+
562  require += info_version_internal[argc];
+
563 #endif
+
564 #ifdef SIMULATE_ID
+
565  require += info_simulate[argc];
+
566 #endif
+
567 #ifdef SIMULATE_VERSION_MAJOR
+
568  require += info_simulate_version[argc];
+
569 #endif
+
570 #if defined(__CRAYXE) || defined(__CRAYXC)
+
571  require += info_cray[argc];
+
572 #endif
+
573  require += info_language_dialect_default[argc];
+
574  (void)argv;
+
575  return require;
+
576 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_n_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..62cb43f --- /dev/null +++ b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,766 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_ON/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23 # if defined(__GNUC__)
+
24 # define SIMULATE_ID "GNU"
+
25 # endif
+
26  /* __INTEL_COMPILER = VRP */
+
27 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
28 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
29 # if defined(__INTEL_COMPILER_UPDATE)
+
30 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
31 # else
+
32 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
33 # endif
+
34 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
35  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
36 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
37 # endif
+
38 # if defined(_MSC_VER)
+
39  /* _MSC_VER = VVRR */
+
40 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
41 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
42 # endif
+
43 # if defined(__GNUC__)
+
44 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
45 # elif defined(__GNUG__)
+
46 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
47 # endif
+
48 # if defined(__GNUC_MINOR__)
+
49 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
50 # endif
+
51 # if defined(__GNUC_PATCHLEVEL__)
+
52 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
53 # endif
+
54 
+
55 #elif defined(__PATHCC__)
+
56 # define COMPILER_ID "PathScale"
+
57 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
58 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
59 # if defined(__PATHCC_PATCHLEVEL__)
+
60 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
61 # endif
+
62 
+
63 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
64 # define COMPILER_ID "Embarcadero"
+
65 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
66 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
67 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
68 
+
69 #elif defined(__BORLANDC__)
+
70 # define COMPILER_ID "Borland"
+
71  /* __BORLANDC__ = 0xVRR */
+
72 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
73 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
74 
+
75 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
76 # define COMPILER_ID "Watcom"
+
77  /* __WATCOMC__ = VVRR */
+
78 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
79 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
80 # if (__WATCOMC__ % 10) > 0
+
81 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
82 # endif
+
83 
+
84 #elif defined(__WATCOMC__)
+
85 # define COMPILER_ID "OpenWatcom"
+
86  /* __WATCOMC__ = VVRP + 1100 */
+
87 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
88 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
89 # if (__WATCOMC__ % 10) > 0
+
90 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
91 # endif
+
92 
+
93 #elif defined(__SUNPRO_CC)
+
94 # define COMPILER_ID "SunPro"
+
95 # if __SUNPRO_CC >= 0x5100
+
96  /* __SUNPRO_CC = 0xVRRP */
+
97 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
98 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
99 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
100 # else
+
101  /* __SUNPRO_CC = 0xVRP */
+
102 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
103 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
104 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
105 # endif
+
106 
+
107 #elif defined(__HP_aCC)
+
108 # define COMPILER_ID "HP"
+
109  /* __HP_aCC = VVRRPP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
111 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
112 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
113 
+
114 #elif defined(__DECCXX)
+
115 # define COMPILER_ID "Compaq"
+
116  /* __DECCXX_VER = VVRRTPPPP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
118 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
119 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
120 
+
121 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
122 # define COMPILER_ID "zOS"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__ibmxl__) && defined(__clang__)
+
129 # define COMPILER_ID "XLClang"
+
130 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
131 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
132 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
133 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
134 
+
135 
+
136 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
137 # define COMPILER_ID "XL"
+
138  /* __IBMCPP__ = VRP */
+
139 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
140 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
141 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
142 
+
143 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
144 # define COMPILER_ID "VisualAge"
+
145  /* __IBMCPP__ = VRP */
+
146 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
147 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
148 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
149 
+
150 #elif defined(__PGI)
+
151 # define COMPILER_ID "PGI"
+
152 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
153 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
154 # if defined(__PGIC_PATCHLEVEL__)
+
155 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
156 # endif
+
157 
+
158 #elif defined(_CRAYC)
+
159 # define COMPILER_ID "Cray"
+
160 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
161 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
162 
+
163 #elif defined(__TI_COMPILER_VERSION__)
+
164 # define COMPILER_ID "TI"
+
165  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
166 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
167 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
168 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
169 
+
170 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
171 # define COMPILER_ID "Fujitsu"
+
172 
+
173 #elif defined(__ghs__)
+
174 # define COMPILER_ID "GHS"
+
175 /* __GHS_VERSION_NUMBER = VVVVRP */
+
176 # ifdef __GHS_VERSION_NUMBER
+
177 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
178 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
180 # endif
+
181 
+
182 #elif defined(__SCO_VERSION__)
+
183 # define COMPILER_ID "SCO"
+
184 
+
185 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
186 # define COMPILER_ID "ARMCC"
+
187 #if __ARMCC_VERSION >= 1000000
+
188  /* __ARMCC_VERSION = VRRPPPP */
+
189  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
190  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
191  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
192 #else
+
193  /* __ARMCC_VERSION = VRPPPP */
+
194  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
195  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
196  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
197 #endif
+
198 
+
199 
+
200 #elif defined(__clang__) && defined(__apple_build_version__)
+
201 # define COMPILER_ID "AppleClang"
+
202 # if defined(_MSC_VER)
+
203 # define SIMULATE_ID "MSVC"
+
204 # endif
+
205 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
206 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
207 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
208 # if defined(_MSC_VER)
+
209  /* _MSC_VER = VVRR */
+
210 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
211 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
212 # endif
+
213 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
214 
+
215 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
216 # define COMPILER_ID "ARMClang"
+
217  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
218  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
219  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
220 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
221 
+
222 #elif defined(__clang__)
+
223 # define COMPILER_ID "Clang"
+
224 # if defined(_MSC_VER)
+
225 # define SIMULATE_ID "MSVC"
+
226 # endif
+
227 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
228 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
229 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
230 # if defined(_MSC_VER)
+
231  /* _MSC_VER = VVRR */
+
232 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
233 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
234 # endif
+
235 
+
236 #elif defined(__GNUC__) || defined(__GNUG__)
+
237 # define COMPILER_ID "GNU"
+
238 # if defined(__GNUC__)
+
239 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
240 # else
+
241 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
242 # endif
+
243 # if defined(__GNUC_MINOR__)
+
244 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
245 # endif
+
246 # if defined(__GNUC_PATCHLEVEL__)
+
247 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
248 # endif
+
249 
+
250 #elif defined(_MSC_VER)
+
251 # define COMPILER_ID "MSVC"
+
252  /* _MSC_VER = VVRR */
+
253 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
254 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
255 # if defined(_MSC_FULL_VER)
+
256 # if _MSC_VER >= 1400
+
257  /* _MSC_FULL_VER = VVRRPPPPP */
+
258 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
259 # else
+
260  /* _MSC_FULL_VER = VVRRPPPP */
+
261 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
262 # endif
+
263 # endif
+
264 # if defined(_MSC_BUILD)
+
265 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
266 # endif
+
267 
+
268 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
269 # define COMPILER_ID "ADSP"
+
270 #if defined(__VISUALDSPVERSION__)
+
271  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
272 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
273 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
274 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
275 #endif
+
276 
+
277 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
278 # define COMPILER_ID "IAR"
+
279 # if defined(__VER__) && defined(__ICCARM__)
+
280 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
281 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
282 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
283 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
284 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__))
+
285 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
286 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
287 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
288 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
289 # endif
+
290 
+
291 
+
292 /* These compilers are either not known or too old to define an
+
293  identification macro. Try to identify the platform and guess that
+
294  it is the native compiler. */
+
295 #elif defined(__hpux) || defined(__hpua)
+
296 # define COMPILER_ID "HP"
+
297 
+
298 #else /* unknown compiler */
+
299 # define COMPILER_ID ""
+
300 #endif
+
301 
+
302 /* Construct the string literal in pieces to prevent the source from
+
303  getting matched. Store it in a pointer rather than an array
+
304  because some compilers will just produce instructions to fill the
+
305  array rather than assigning a pointer to a static array. */
+
306 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
307 #ifdef SIMULATE_ID
+
308 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
309 #endif
+
310 
+
311 #ifdef __QNXNTO__
+
312 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
313 #endif
+
314 
+
315 #if defined(__CRAYXE) || defined(__CRAYXC)
+
316 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
317 #endif
+
318 
+
319 #define STRINGIFY_HELPER(X) #X
+
320 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
321 
+
322 /* Identify known platforms by name. */
+
323 #if defined(__linux) || defined(__linux__) || defined(linux)
+
324 # define PLATFORM_ID "Linux"
+
325 
+
326 #elif defined(__CYGWIN__)
+
327 # define PLATFORM_ID "Cygwin"
+
328 
+
329 #elif defined(__MINGW32__)
+
330 # define PLATFORM_ID "MinGW"
+
331 
+
332 #elif defined(__APPLE__)
+
333 # define PLATFORM_ID "Darwin"
+
334 
+
335 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
336 # define PLATFORM_ID "Windows"
+
337 
+
338 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
339 # define PLATFORM_ID "FreeBSD"
+
340 
+
341 #elif defined(__NetBSD__) || defined(__NetBSD)
+
342 # define PLATFORM_ID "NetBSD"
+
343 
+
344 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
345 # define PLATFORM_ID "OpenBSD"
+
346 
+
347 #elif defined(__sun) || defined(sun)
+
348 # define PLATFORM_ID "SunOS"
+
349 
+
350 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
351 # define PLATFORM_ID "AIX"
+
352 
+
353 #elif defined(__hpux) || defined(__hpux__)
+
354 # define PLATFORM_ID "HP-UX"
+
355 
+
356 #elif defined(__HAIKU__)
+
357 # define PLATFORM_ID "Haiku"
+
358 
+
359 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
360 # define PLATFORM_ID "BeOS"
+
361 
+
362 #elif defined(__QNX__) || defined(__QNXNTO__)
+
363 # define PLATFORM_ID "QNX"
+
364 
+
365 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
366 # define PLATFORM_ID "Tru64"
+
367 
+
368 #elif defined(__riscos) || defined(__riscos__)
+
369 # define PLATFORM_ID "RISCos"
+
370 
+
371 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
372 # define PLATFORM_ID "SINIX"
+
373 
+
374 #elif defined(__UNIX_SV__)
+
375 # define PLATFORM_ID "UNIX_SV"
+
376 
+
377 #elif defined(__bsdos__)
+
378 # define PLATFORM_ID "BSDOS"
+
379 
+
380 #elif defined(_MPRAS) || defined(MPRAS)
+
381 # define PLATFORM_ID "MP-RAS"
+
382 
+
383 #elif defined(__osf) || defined(__osf__)
+
384 # define PLATFORM_ID "OSF1"
+
385 
+
386 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
387 # define PLATFORM_ID "SCO_SV"
+
388 
+
389 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
390 # define PLATFORM_ID "ULTRIX"
+
391 
+
392 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
393 # define PLATFORM_ID "Xenix"
+
394 
+
395 #elif defined(__WATCOMC__)
+
396 # if defined(__LINUX__)
+
397 # define PLATFORM_ID "Linux"
+
398 
+
399 # elif defined(__DOS__)
+
400 # define PLATFORM_ID "DOS"
+
401 
+
402 # elif defined(__OS2__)
+
403 # define PLATFORM_ID "OS2"
+
404 
+
405 # elif defined(__WINDOWS__)
+
406 # define PLATFORM_ID "Windows3x"
+
407 
+
408 # elif defined(__VXWORKS__)
+
409 # define PLATFORM_ID "VxWorks"
+
410 
+
411 # else /* unknown platform */
+
412 # define PLATFORM_ID
+
413 # endif
+
414 
+
415 #elif defined(__INTEGRITY)
+
416 # if defined(INT_178B)
+
417 # define PLATFORM_ID "Integrity178"
+
418 
+
419 # else /* regular Integrity */
+
420 # define PLATFORM_ID "Integrity"
+
421 # endif
+
422 
+
423 #else /* unknown platform */
+
424 # define PLATFORM_ID
+
425 
+
426 #endif
+
427 
+
428 /* For windows compilers MSVC and Intel we can determine
+
429  the architecture of the compiler being used. This is because
+
430  the compilers do not have flags that can change the architecture,
+
431  but rather depend on which compiler is being used
+
432 */
+
433 #if defined(_WIN32) && defined(_MSC_VER)
+
434 # if defined(_M_IA64)
+
435 # define ARCHITECTURE_ID "IA64"
+
436 
+
437 # elif defined(_M_X64) || defined(_M_AMD64)
+
438 # define ARCHITECTURE_ID "x64"
+
439 
+
440 # elif defined(_M_IX86)
+
441 # define ARCHITECTURE_ID "X86"
+
442 
+
443 # elif defined(_M_ARM64)
+
444 # define ARCHITECTURE_ID "ARM64"
+
445 
+
446 # elif defined(_M_ARM)
+
447 # if _M_ARM == 4
+
448 # define ARCHITECTURE_ID "ARMV4I"
+
449 # elif _M_ARM == 5
+
450 # define ARCHITECTURE_ID "ARMV5I"
+
451 # else
+
452 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
453 # endif
+
454 
+
455 # elif defined(_M_MIPS)
+
456 # define ARCHITECTURE_ID "MIPS"
+
457 
+
458 # elif defined(_M_SH)
+
459 # define ARCHITECTURE_ID "SHx"
+
460 
+
461 # else /* unknown architecture */
+
462 # define ARCHITECTURE_ID ""
+
463 # endif
+
464 
+
465 #elif defined(__WATCOMC__)
+
466 # if defined(_M_I86)
+
467 # define ARCHITECTURE_ID "I86"
+
468 
+
469 # elif defined(_M_IX86)
+
470 # define ARCHITECTURE_ID "X86"
+
471 
+
472 # else /* unknown architecture */
+
473 # define ARCHITECTURE_ID ""
+
474 # endif
+
475 
+
476 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
477 # if defined(__ICCARM__)
+
478 # define ARCHITECTURE_ID "ARM"
+
479 
+
480 # elif defined(__ICCRX__)
+
481 # define ARCHITECTURE_ID "RX"
+
482 
+
483 # elif defined(__ICCRH850__)
+
484 # define ARCHITECTURE_ID "RH850"
+
485 
+
486 # elif defined(__ICCRL78__)
+
487 # define ARCHITECTURE_ID "RL78"
+
488 
+
489 # elif defined(__ICCRISCV__)
+
490 # define ARCHITECTURE_ID "RISCV"
+
491 
+
492 # elif defined(__ICCAVR__)
+
493 # define ARCHITECTURE_ID "AVR"
+
494 
+
495 # elif defined(__ICC430__)
+
496 # define ARCHITECTURE_ID "MSP430"
+
497 
+
498 # elif defined(__ICCV850__)
+
499 # define ARCHITECTURE_ID "V850"
+
500 
+
501 # elif defined(__ICC8051__)
+
502 # define ARCHITECTURE_ID "8051"
+
503 
+
504 # else /* unknown architecture */
+
505 # define ARCHITECTURE_ID ""
+
506 # endif
+
507 
+
508 #elif defined(__ghs__)
+
509 # if defined(__PPC64__)
+
510 # define ARCHITECTURE_ID "PPC64"
+
511 
+
512 # elif defined(__ppc__)
+
513 # define ARCHITECTURE_ID "PPC"
+
514 
+
515 # elif defined(__ARM__)
+
516 # define ARCHITECTURE_ID "ARM"
+
517 
+
518 # elif defined(__x86_64__)
+
519 # define ARCHITECTURE_ID "x64"
+
520 
+
521 # elif defined(__i386__)
+
522 # define ARCHITECTURE_ID "X86"
+
523 
+
524 # else /* unknown architecture */
+
525 # define ARCHITECTURE_ID ""
+
526 # endif
+
527 #else
+
528 # define ARCHITECTURE_ID
+
529 #endif
+
530 
+
531 /* Convert integer to decimal digit literals. */
+
532 #define DEC(n) \
+
533  ('0' + (((n) / 10000000)%10)), \
+
534  ('0' + (((n) / 1000000)%10)), \
+
535  ('0' + (((n) / 100000)%10)), \
+
536  ('0' + (((n) / 10000)%10)), \
+
537  ('0' + (((n) / 1000)%10)), \
+
538  ('0' + (((n) / 100)%10)), \
+
539  ('0' + (((n) / 10)%10)), \
+
540  ('0' + ((n) % 10))
+
541 
+
542 /* Convert integer to hex digit literals. */
+
543 #define HEX(n) \
+
544  ('0' + ((n)>>28 & 0xF)), \
+
545  ('0' + ((n)>>24 & 0xF)), \
+
546  ('0' + ((n)>>20 & 0xF)), \
+
547  ('0' + ((n)>>16 & 0xF)), \
+
548  ('0' + ((n)>>12 & 0xF)), \
+
549  ('0' + ((n)>>8 & 0xF)), \
+
550  ('0' + ((n)>>4 & 0xF)), \
+
551  ('0' + ((n) & 0xF))
+
552 
+
553 /* Construct a string literal encoding the version number components. */
+
554 #ifdef COMPILER_VERSION_MAJOR
+
555 char const info_version[] = {
+
556  'I', 'N', 'F', 'O', ':',
+
557  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
558  COMPILER_VERSION_MAJOR,
+
559 # ifdef COMPILER_VERSION_MINOR
+
560  '.', COMPILER_VERSION_MINOR,
+
561 # ifdef COMPILER_VERSION_PATCH
+
562  '.', COMPILER_VERSION_PATCH,
+
563 # ifdef COMPILER_VERSION_TWEAK
+
564  '.', COMPILER_VERSION_TWEAK,
+
565 # endif
+
566 # endif
+
567 # endif
+
568  ']','\0'};
+
569 #endif
+
570 
+
571 /* Construct a string literal encoding the internal version number. */
+
572 #ifdef COMPILER_VERSION_INTERNAL
+
573 char const info_version_internal[] = {
+
574  'I', 'N', 'F', 'O', ':',
+
575  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
576  'i','n','t','e','r','n','a','l','[',
+
577  COMPILER_VERSION_INTERNAL,']','\0'};
+
578 #endif
+
579 
+
580 /* Construct a string literal encoding the version number components. */
+
581 #ifdef SIMULATE_VERSION_MAJOR
+
582 char const info_simulate_version[] = {
+
583  'I', 'N', 'F', 'O', ':',
+
584  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
585  SIMULATE_VERSION_MAJOR,
+
586 # ifdef SIMULATE_VERSION_MINOR
+
587  '.', SIMULATE_VERSION_MINOR,
+
588 # ifdef SIMULATE_VERSION_PATCH
+
589  '.', SIMULATE_VERSION_PATCH,
+
590 # ifdef SIMULATE_VERSION_TWEAK
+
591  '.', SIMULATE_VERSION_TWEAK,
+
592 # endif
+
593 # endif
+
594 # endif
+
595  ']','\0'};
+
596 #endif
+
597 
+
598 /* Construct the string literal in pieces to prevent the source from
+
599  getting matched. Store it in a pointer rather than an array
+
600  because some compilers will just produce instructions to fill the
+
601  array rather than assigning a pointer to a static array. */
+
602 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
603 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
604 
+
605 
+
606 
+
607 
+
608 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
609 # if defined(__INTEL_CXX11_MODE__)
+
610 # if defined(__cpp_aggregate_nsdmi)
+
611 # define CXX_STD 201402L
+
612 # else
+
613 # define CXX_STD 201103L
+
614 # endif
+
615 # else
+
616 # define CXX_STD 199711L
+
617 # endif
+
618 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
619 # define CXX_STD _MSVC_LANG
+
620 #else
+
621 # define CXX_STD __cplusplus
+
622 #endif
+
623 
+
624 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
625 #if CXX_STD > 201703L
+
626  "20"
+
627 #elif CXX_STD >= 201703L
+
628  "17"
+
629 #elif CXX_STD >= 201402L
+
630  "14"
+
631 #elif CXX_STD >= 201103L
+
632  "11"
+
633 #else
+
634  "98"
+
635 #endif
+
636 "]";
+
637 
+
638 /*--------------------------------------------------------------------------*/
+
639 
+
640 int main(int argc, char* argv[])
+
641 {
+
642  int require = 0;
+
643  require += info_compiler[argc];
+
644  require += info_platform[argc];
+
645 #ifdef COMPILER_VERSION_MAJOR
+
646  require += info_version[argc];
+
647 #endif
+
648 #ifdef COMPILER_VERSION_INTERNAL
+
649  require += info_version_internal[argc];
+
650 #endif
+
651 #ifdef SIMULATE_ID
+
652  require += info_simulate[argc];
+
653 #endif
+
654 #ifdef SIMULATE_VERSION_MAJOR
+
655  require += info_simulate_version[argc];
+
656 #endif
+
657 #if defined(__CRAYXE) || defined(__CRAYXC)
+
658  require += info_cray[argc];
+
659 #endif
+
660  require += info_language_dialect_default[argc];
+
661  (void)argv;
+
662  return require;
+
663 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_n_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..601ac66 --- /dev/null +++ b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,894 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_ON/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__ibmxl__) && defined(__clang__)
+
182 # define COMPILER_ID "XLClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
190 # define COMPILER_ID "XL"
+
191  /* __IBMCPP__ = VRP */
+
192 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
193 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
194 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
195 
+
196 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
197 # define COMPILER_ID "VisualAge"
+
198  /* __IBMCPP__ = VRP */
+
199 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
200 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
201 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
202 
+
203 #elif defined(__NVCOMPILER)
+
204 # define COMPILER_ID "NVHPC"
+
205 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
206 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
207 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
208 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
209 # endif
+
210 
+
211 #elif defined(__PGI)
+
212 # define COMPILER_ID "PGI"
+
213 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
214 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
215 # if defined(__PGIC_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(_CRAYC)
+
220 # define COMPILER_ID "Cray"
+
221 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
222 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
223 
+
224 #elif defined(__TI_COMPILER_VERSION__)
+
225 # define COMPILER_ID "TI"
+
226  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
227 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
230 
+
231 #elif defined(__CLANG_FUJITSU)
+
232 # define COMPILER_ID "FujitsuClang"
+
233 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
234 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
235 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
236 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
237 
+
238 
+
239 #elif defined(__FUJITSU)
+
240 # define COMPILER_ID "Fujitsu"
+
241 # if defined(__FCC_version__)
+
242 # define COMPILER_VERSION __FCC_version__
+
243 # elif defined(__FCC_major__)
+
244 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
245 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
246 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
247 # endif
+
248 # if defined(__fcc_version)
+
249 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
250 # elif defined(__FCC_VERSION)
+
251 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
252 # endif
+
253 
+
254 
+
255 #elif defined(__ghs__)
+
256 # define COMPILER_ID "GHS"
+
257 /* __GHS_VERSION_NUMBER = VVVVRP */
+
258 # ifdef __GHS_VERSION_NUMBER
+
259 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
260 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
261 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
262 # endif
+
263 
+
264 #elif defined(__SCO_VERSION__)
+
265 # define COMPILER_ID "SCO"
+
266 
+
267 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
268 # define COMPILER_ID "ARMCC"
+
269 #if __ARMCC_VERSION >= 1000000
+
270  /* __ARMCC_VERSION = VRRPPPP */
+
271  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
272  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
273  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
274 #else
+
275  /* __ARMCC_VERSION = VRPPPP */
+
276  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
277  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
278  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
279 #endif
+
280 
+
281 
+
282 #elif defined(__clang__) && defined(__apple_build_version__)
+
283 # define COMPILER_ID "AppleClang"
+
284 # if defined(_MSC_VER)
+
285 # define SIMULATE_ID "MSVC"
+
286 # endif
+
287 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
288 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
289 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
290 # if defined(_MSC_VER)
+
291  /* _MSC_VER = VVRR */
+
292 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
293 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
294 # endif
+
295 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
296 
+
297 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
298 # define COMPILER_ID "ARMClang"
+
299  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
300  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
301  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
302 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
303 
+
304 #elif defined(__clang__)
+
305 # define COMPILER_ID "Clang"
+
306 # if defined(_MSC_VER)
+
307 # define SIMULATE_ID "MSVC"
+
308 # endif
+
309 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
310 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
311 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
312 # if defined(_MSC_VER)
+
313  /* _MSC_VER = VVRR */
+
314 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
315 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
316 # endif
+
317 
+
318 #elif defined(__GNUC__) || defined(__GNUG__)
+
319 # define COMPILER_ID "GNU"
+
320 # if defined(__GNUC__)
+
321 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
322 # else
+
323 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
324 # endif
+
325 # if defined(__GNUC_MINOR__)
+
326 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
327 # endif
+
328 # if defined(__GNUC_PATCHLEVEL__)
+
329 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
330 # endif
+
331 
+
332 #elif defined(_MSC_VER)
+
333 # define COMPILER_ID "MSVC"
+
334  /* _MSC_VER = VVRR */
+
335 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
336 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
337 # if defined(_MSC_FULL_VER)
+
338 # if _MSC_VER >= 1400
+
339  /* _MSC_FULL_VER = VVRRPPPPP */
+
340 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
341 # else
+
342  /* _MSC_FULL_VER = VVRRPPPP */
+
343 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
344 # endif
+
345 # endif
+
346 # if defined(_MSC_BUILD)
+
347 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
348 # endif
+
349 
+
350 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
351 # define COMPILER_ID "ADSP"
+
352 #if defined(__VISUALDSPVERSION__)
+
353  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
354 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
355 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
356 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
357 #endif
+
358 
+
359 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
360 # define COMPILER_ID "IAR"
+
361 # if defined(__VER__) && defined(__ICCARM__)
+
362 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
363 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
364 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
365 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
366 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
367 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
368 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
369 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
370 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
371 # endif
+
372 
+
373 
+
374 /* These compilers are either not known or too old to define an
+
375  identification macro. Try to identify the platform and guess that
+
376  it is the native compiler. */
+
377 #elif defined(__hpux) || defined(__hpua)
+
378 # define COMPILER_ID "HP"
+
379 
+
380 #else /* unknown compiler */
+
381 # define COMPILER_ID ""
+
382 #endif
+
383 
+
384 /* Construct the string literal in pieces to prevent the source from
+
385  getting matched. Store it in a pointer rather than an array
+
386  because some compilers will just produce instructions to fill the
+
387  array rather than assigning a pointer to a static array. */
+
388 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
389 #ifdef SIMULATE_ID
+
390 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
391 #endif
+
392 
+
393 #ifdef __QNXNTO__
+
394 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
395 #endif
+
396 
+
397 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
398 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
399 #endif
+
400 
+
401 #define STRINGIFY_HELPER(X) #X
+
402 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
403 
+
404 /* Identify known platforms by name. */
+
405 #if defined(__linux) || defined(__linux__) || defined(linux)
+
406 # define PLATFORM_ID "Linux"
+
407 
+
408 #elif defined(__MSYS__)
+
409 # define PLATFORM_ID "MSYS"
+
410 
+
411 #elif defined(__CYGWIN__)
+
412 # define PLATFORM_ID "Cygwin"
+
413 
+
414 #elif defined(__MINGW32__)
+
415 # define PLATFORM_ID "MinGW"
+
416 
+
417 #elif defined(__APPLE__)
+
418 # define PLATFORM_ID "Darwin"
+
419 
+
420 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
421 # define PLATFORM_ID "Windows"
+
422 
+
423 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
424 # define PLATFORM_ID "FreeBSD"
+
425 
+
426 #elif defined(__NetBSD__) || defined(__NetBSD)
+
427 # define PLATFORM_ID "NetBSD"
+
428 
+
429 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
430 # define PLATFORM_ID "OpenBSD"
+
431 
+
432 #elif defined(__sun) || defined(sun)
+
433 # define PLATFORM_ID "SunOS"
+
434 
+
435 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
436 # define PLATFORM_ID "AIX"
+
437 
+
438 #elif defined(__hpux) || defined(__hpux__)
+
439 # define PLATFORM_ID "HP-UX"
+
440 
+
441 #elif defined(__HAIKU__)
+
442 # define PLATFORM_ID "Haiku"
+
443 
+
444 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
445 # define PLATFORM_ID "BeOS"
+
446 
+
447 #elif defined(__QNX__) || defined(__QNXNTO__)
+
448 # define PLATFORM_ID "QNX"
+
449 
+
450 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
451 # define PLATFORM_ID "Tru64"
+
452 
+
453 #elif defined(__riscos) || defined(__riscos__)
+
454 # define PLATFORM_ID "RISCos"
+
455 
+
456 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
457 # define PLATFORM_ID "SINIX"
+
458 
+
459 #elif defined(__UNIX_SV__)
+
460 # define PLATFORM_ID "UNIX_SV"
+
461 
+
462 #elif defined(__bsdos__)
+
463 # define PLATFORM_ID "BSDOS"
+
464 
+
465 #elif defined(_MPRAS) || defined(MPRAS)
+
466 # define PLATFORM_ID "MP-RAS"
+
467 
+
468 #elif defined(__osf) || defined(__osf__)
+
469 # define PLATFORM_ID "OSF1"
+
470 
+
471 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
472 # define PLATFORM_ID "SCO_SV"
+
473 
+
474 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
475 # define PLATFORM_ID "ULTRIX"
+
476 
+
477 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
478 # define PLATFORM_ID "Xenix"
+
479 
+
480 #elif defined(__WATCOMC__)
+
481 # if defined(__LINUX__)
+
482 # define PLATFORM_ID "Linux"
+
483 
+
484 # elif defined(__DOS__)
+
485 # define PLATFORM_ID "DOS"
+
486 
+
487 # elif defined(__OS2__)
+
488 # define PLATFORM_ID "OS2"
+
489 
+
490 # elif defined(__WINDOWS__)
+
491 # define PLATFORM_ID "Windows3x"
+
492 
+
493 # elif defined(__VXWORKS__)
+
494 # define PLATFORM_ID "VxWorks"
+
495 
+
496 # else /* unknown platform */
+
497 # define PLATFORM_ID
+
498 # endif
+
499 
+
500 #elif defined(__INTEGRITY)
+
501 # if defined(INT_178B)
+
502 # define PLATFORM_ID "Integrity178"
+
503 
+
504 # else /* regular Integrity */
+
505 # define PLATFORM_ID "Integrity"
+
506 # endif
+
507 
+
508 #else /* unknown platform */
+
509 # define PLATFORM_ID
+
510 
+
511 #endif
+
512 
+
513 /* For windows compilers MSVC and Intel we can determine
+
514  the architecture of the compiler being used. This is because
+
515  the compilers do not have flags that can change the architecture,
+
516  but rather depend on which compiler is being used
+
517 */
+
518 #if defined(_WIN32) && defined(_MSC_VER)
+
519 # if defined(_M_IA64)
+
520 # define ARCHITECTURE_ID "IA64"
+
521 
+
522 # elif defined(_M_ARM64EC)
+
523 # define ARCHITECTURE_ID "ARM64EC"
+
524 
+
525 # elif defined(_M_X64) || defined(_M_AMD64)
+
526 # define ARCHITECTURE_ID "x64"
+
527 
+
528 # elif defined(_M_IX86)
+
529 # define ARCHITECTURE_ID "X86"
+
530 
+
531 # elif defined(_M_ARM64)
+
532 # define ARCHITECTURE_ID "ARM64"
+
533 
+
534 # elif defined(_M_ARM)
+
535 # if _M_ARM == 4
+
536 # define ARCHITECTURE_ID "ARMV4I"
+
537 # elif _M_ARM == 5
+
538 # define ARCHITECTURE_ID "ARMV5I"
+
539 # else
+
540 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
541 # endif
+
542 
+
543 # elif defined(_M_MIPS)
+
544 # define ARCHITECTURE_ID "MIPS"
+
545 
+
546 # elif defined(_M_SH)
+
547 # define ARCHITECTURE_ID "SHx"
+
548 
+
549 # else /* unknown architecture */
+
550 # define ARCHITECTURE_ID ""
+
551 # endif
+
552 
+
553 #elif defined(__WATCOMC__)
+
554 # if defined(_M_I86)
+
555 # define ARCHITECTURE_ID "I86"
+
556 
+
557 # elif defined(_M_IX86)
+
558 # define ARCHITECTURE_ID "X86"
+
559 
+
560 # else /* unknown architecture */
+
561 # define ARCHITECTURE_ID ""
+
562 # endif
+
563 
+
564 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
565 # if defined(__ICCARM__)
+
566 # define ARCHITECTURE_ID "ARM"
+
567 
+
568 # elif defined(__ICCRX__)
+
569 # define ARCHITECTURE_ID "RX"
+
570 
+
571 # elif defined(__ICCRH850__)
+
572 # define ARCHITECTURE_ID "RH850"
+
573 
+
574 # elif defined(__ICCRL78__)
+
575 # define ARCHITECTURE_ID "RL78"
+
576 
+
577 # elif defined(__ICCRISCV__)
+
578 # define ARCHITECTURE_ID "RISCV"
+
579 
+
580 # elif defined(__ICCAVR__)
+
581 # define ARCHITECTURE_ID "AVR"
+
582 
+
583 # elif defined(__ICC430__)
+
584 # define ARCHITECTURE_ID "MSP430"
+
585 
+
586 # elif defined(__ICCV850__)
+
587 # define ARCHITECTURE_ID "V850"
+
588 
+
589 # elif defined(__ICC8051__)
+
590 # define ARCHITECTURE_ID "8051"
+
591 
+
592 # elif defined(__ICCSTM8__)
+
593 # define ARCHITECTURE_ID "STM8"
+
594 
+
595 # else /* unknown architecture */
+
596 # define ARCHITECTURE_ID ""
+
597 # endif
+
598 
+
599 #elif defined(__ghs__)
+
600 # if defined(__PPC64__)
+
601 # define ARCHITECTURE_ID "PPC64"
+
602 
+
603 # elif defined(__ppc__)
+
604 # define ARCHITECTURE_ID "PPC"
+
605 
+
606 # elif defined(__ARM__)
+
607 # define ARCHITECTURE_ID "ARM"
+
608 
+
609 # elif defined(__x86_64__)
+
610 # define ARCHITECTURE_ID "x64"
+
611 
+
612 # elif defined(__i386__)
+
613 # define ARCHITECTURE_ID "X86"
+
614 
+
615 # else /* unknown architecture */
+
616 # define ARCHITECTURE_ID ""
+
617 # endif
+
618 
+
619 #elif defined(__TI_COMPILER_VERSION__)
+
620 # if defined(__TI_ARM__)
+
621 # define ARCHITECTURE_ID "ARM"
+
622 
+
623 # elif defined(__MSP430__)
+
624 # define ARCHITECTURE_ID "MSP430"
+
625 
+
626 # elif defined(__TMS320C28XX__)
+
627 # define ARCHITECTURE_ID "TMS320C28x"
+
628 
+
629 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
630 # define ARCHITECTURE_ID "TMS320C6x"
+
631 
+
632 # else /* unknown architecture */
+
633 # define ARCHITECTURE_ID ""
+
634 # endif
+
635 
+
636 #else
+
637 # define ARCHITECTURE_ID
+
638 #endif
+
639 
+
640 /* Convert integer to decimal digit literals. */
+
641 #define DEC(n) \
+
642  ('0' + (((n) / 10000000)%10)), \
+
643  ('0' + (((n) / 1000000)%10)), \
+
644  ('0' + (((n) / 100000)%10)), \
+
645  ('0' + (((n) / 10000)%10)), \
+
646  ('0' + (((n) / 1000)%10)), \
+
647  ('0' + (((n) / 100)%10)), \
+
648  ('0' + (((n) / 10)%10)), \
+
649  ('0' + ((n) % 10))
+
650 
+
651 /* Convert integer to hex digit literals. */
+
652 #define HEX(n) \
+
653  ('0' + ((n)>>28 & 0xF)), \
+
654  ('0' + ((n)>>24 & 0xF)), \
+
655  ('0' + ((n)>>20 & 0xF)), \
+
656  ('0' + ((n)>>16 & 0xF)), \
+
657  ('0' + ((n)>>12 & 0xF)), \
+
658  ('0' + ((n)>>8 & 0xF)), \
+
659  ('0' + ((n)>>4 & 0xF)), \
+
660  ('0' + ((n) & 0xF))
+
661 
+
662 /* Construct a string literal encoding the version number. */
+
663 #ifdef COMPILER_VERSION
+
664 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
665 
+
666 /* Construct a string literal encoding the version number components. */
+
667 #elif defined(COMPILER_VERSION_MAJOR)
+
668 char const info_version[] = {
+
669  'I', 'N', 'F', 'O', ':',
+
670  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
671  COMPILER_VERSION_MAJOR,
+
672 # ifdef COMPILER_VERSION_MINOR
+
673  '.', COMPILER_VERSION_MINOR,
+
674 # ifdef COMPILER_VERSION_PATCH
+
675  '.', COMPILER_VERSION_PATCH,
+
676 # ifdef COMPILER_VERSION_TWEAK
+
677  '.', COMPILER_VERSION_TWEAK,
+
678 # endif
+
679 # endif
+
680 # endif
+
681  ']','\0'};
+
682 #endif
+
683 
+
684 /* Construct a string literal encoding the internal version number. */
+
685 #ifdef COMPILER_VERSION_INTERNAL
+
686 char const info_version_internal[] = {
+
687  'I', 'N', 'F', 'O', ':',
+
688  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
689  'i','n','t','e','r','n','a','l','[',
+
690  COMPILER_VERSION_INTERNAL,']','\0'};
+
691 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
692 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
693 #endif
+
694 
+
695 /* Construct a string literal encoding the version number components. */
+
696 #ifdef SIMULATE_VERSION_MAJOR
+
697 char const info_simulate_version[] = {
+
698  'I', 'N', 'F', 'O', ':',
+
699  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
700  SIMULATE_VERSION_MAJOR,
+
701 # ifdef SIMULATE_VERSION_MINOR
+
702  '.', SIMULATE_VERSION_MINOR,
+
703 # ifdef SIMULATE_VERSION_PATCH
+
704  '.', SIMULATE_VERSION_PATCH,
+
705 # ifdef SIMULATE_VERSION_TWEAK
+
706  '.', SIMULATE_VERSION_TWEAK,
+
707 # endif
+
708 # endif
+
709 # endif
+
710  ']','\0'};
+
711 #endif
+
712 
+
713 /* Construct the string literal in pieces to prevent the source from
+
714  getting matched. Store it in a pointer rather than an array
+
715  because some compilers will just produce instructions to fill the
+
716  array rather than assigning a pointer to a static array. */
+
717 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
718 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
719 
+
720 
+
721 
+
722 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
723 # if defined(__INTEL_CXX11_MODE__)
+
724 # if defined(__cpp_aggregate_nsdmi)
+
725 # define CXX_STD 201402L
+
726 # else
+
727 # define CXX_STD 201103L
+
728 # endif
+
729 # else
+
730 # define CXX_STD 199711L
+
731 # endif
+
732 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
733 # define CXX_STD _MSVC_LANG
+
734 #else
+
735 # define CXX_STD __cplusplus
+
736 #endif
+
737 
+
738 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
739 #if CXX_STD > 202002L
+
740  "23"
+
741 #elif CXX_STD > 201703L
+
742  "20"
+
743 #elif CXX_STD >= 201703L
+
744  "17"
+
745 #elif CXX_STD >= 201402L
+
746  "14"
+
747 #elif CXX_STD >= 201103L
+
748  "11"
+
749 #else
+
750  "98"
+
751 #endif
+
752 "]";
+
753 
+
754 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
755 /* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */
+
756 #if (defined(__clang__) || defined(__GNUC__) || \
+
757  defined(__TI_COMPILER_VERSION__)) && \
+
758  !defined(__STRICT_ANSI__) && !defined(_MSC_VER)
+
759  "ON"
+
760 #else
+
761  "OFF"
+
762 #endif
+
763 "]";
+
764 
+
765 /*--------------------------------------------------------------------------*/
+
766 
+
767 int main(int argc, char* argv[])
+
768 {
+
769  int require = 0;
+
770  require += info_compiler[argc];
+
771  require += info_platform[argc];
+
772 #ifdef COMPILER_VERSION_MAJOR
+
773  require += info_version[argc];
+
774 #endif
+
775 #ifdef COMPILER_VERSION_INTERNAL
+
776  require += info_version_internal[argc];
+
777 #endif
+
778 #ifdef SIMULATE_ID
+
779  require += info_simulate[argc];
+
780 #endif
+
781 #ifdef SIMULATE_VERSION_MAJOR
+
782  require += info_simulate_version[argc];
+
783 #endif
+
784 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
785  require += info_cray[argc];
+
786 #endif
+
787  require += info_language_standard_default[argc];
+
788  require += info_language_extensions_default[argc];
+
789  (void)argv;
+
790  return require;
+
791 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_n_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..ca5f556 --- /dev/null +++ b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,929 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_ON/CMakeFiles/3.24.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__SCO_VERSION__)
+
273 # define COMPILER_ID "SCO"
+
274 
+
275 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
276 # define COMPILER_ID "ARMCC"
+
277 #if __ARMCC_VERSION >= 1000000
+
278  /* __ARMCC_VERSION = VRRPPPP */
+
279  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
280  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
281  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
282 #else
+
283  /* __ARMCC_VERSION = VRPPPP */
+
284  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
285  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
286  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
287 #endif
+
288 
+
289 
+
290 #elif defined(__clang__) && defined(__apple_build_version__)
+
291 # define COMPILER_ID "AppleClang"
+
292 # if defined(_MSC_VER)
+
293 # define SIMULATE_ID "MSVC"
+
294 # endif
+
295 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
296 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
297 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
298 # if defined(_MSC_VER)
+
299  /* _MSC_VER = VVRR */
+
300 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
301 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
302 # endif
+
303 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
304 
+
305 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
306 # define COMPILER_ID "ARMClang"
+
307  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
308  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
309  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
310 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
311 
+
312 #elif defined(__clang__)
+
313 # define COMPILER_ID "Clang"
+
314 # if defined(_MSC_VER)
+
315 # define SIMULATE_ID "MSVC"
+
316 # endif
+
317 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
318 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
319 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
320 # if defined(_MSC_VER)
+
321  /* _MSC_VER = VVRR */
+
322 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
323 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
324 # endif
+
325 
+
326 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
327 # define COMPILER_ID "LCC"
+
328 # define COMPILER_VERSION_MAJOR DEC(1)
+
329 # if defined(__LCC__)
+
330 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
331 # endif
+
332 # if defined(__LCC_MINOR__)
+
333 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
334 # endif
+
335 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
336 # define SIMULATE_ID "GNU"
+
337 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
338 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
339 # if defined(__GNUC_PATCHLEVEL__)
+
340 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
341 # endif
+
342 # endif
+
343 
+
344 #elif defined(__GNUC__) || defined(__GNUG__)
+
345 # define COMPILER_ID "GNU"
+
346 # if defined(__GNUC__)
+
347 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
348 # else
+
349 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
350 # endif
+
351 # if defined(__GNUC_MINOR__)
+
352 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
353 # endif
+
354 # if defined(__GNUC_PATCHLEVEL__)
+
355 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
356 # endif
+
357 
+
358 #elif defined(_MSC_VER)
+
359 # define COMPILER_ID "MSVC"
+
360  /* _MSC_VER = VVRR */
+
361 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
362 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
363 # if defined(_MSC_FULL_VER)
+
364 # if _MSC_VER >= 1400
+
365  /* _MSC_FULL_VER = VVRRPPPPP */
+
366 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
367 # else
+
368  /* _MSC_FULL_VER = VVRRPPPP */
+
369 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
370 # endif
+
371 # endif
+
372 # if defined(_MSC_BUILD)
+
373 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
374 # endif
+
375 
+
376 #elif defined(_ADI_COMPILER)
+
377 # define COMPILER_ID "ADSP"
+
378 #if defined(__VERSIONNUM__)
+
379  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
380 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
381 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
382 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
383 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
384 #endif
+
385 
+
386 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
387 # define COMPILER_ID "IAR"
+
388 # if defined(__VER__) && defined(__ICCARM__)
+
389 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
390 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
391 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
392 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
393 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
394 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
395 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
396 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
397 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
398 # endif
+
399 
+
400 
+
401 /* These compilers are either not known or too old to define an
+
402  identification macro. Try to identify the platform and guess that
+
403  it is the native compiler. */
+
404 #elif defined(__hpux) || defined(__hpua)
+
405 # define COMPILER_ID "HP"
+
406 
+
407 #else /* unknown compiler */
+
408 # define COMPILER_ID ""
+
409 #endif
+
410 
+
411 /* Construct the string literal in pieces to prevent the source from
+
412  getting matched. Store it in a pointer rather than an array
+
413  because some compilers will just produce instructions to fill the
+
414  array rather than assigning a pointer to a static array. */
+
415 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
416 #ifdef SIMULATE_ID
+
417 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
418 #endif
+
419 
+
420 #ifdef __QNXNTO__
+
421 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
422 #endif
+
423 
+
424 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
425 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
426 #endif
+
427 
+
428 #define STRINGIFY_HELPER(X) #X
+
429 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
430 
+
431 /* Identify known platforms by name. */
+
432 #if defined(__linux) || defined(__linux__) || defined(linux)
+
433 # define PLATFORM_ID "Linux"
+
434 
+
435 #elif defined(__MSYS__)
+
436 # define PLATFORM_ID "MSYS"
+
437 
+
438 #elif defined(__CYGWIN__)
+
439 # define PLATFORM_ID "Cygwin"
+
440 
+
441 #elif defined(__MINGW32__)
+
442 # define PLATFORM_ID "MinGW"
+
443 
+
444 #elif defined(__APPLE__)
+
445 # define PLATFORM_ID "Darwin"
+
446 
+
447 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
448 # define PLATFORM_ID "Windows"
+
449 
+
450 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
451 # define PLATFORM_ID "FreeBSD"
+
452 
+
453 #elif defined(__NetBSD__) || defined(__NetBSD)
+
454 # define PLATFORM_ID "NetBSD"
+
455 
+
456 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
457 # define PLATFORM_ID "OpenBSD"
+
458 
+
459 #elif defined(__sun) || defined(sun)
+
460 # define PLATFORM_ID "SunOS"
+
461 
+
462 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
463 # define PLATFORM_ID "AIX"
+
464 
+
465 #elif defined(__hpux) || defined(__hpux__)
+
466 # define PLATFORM_ID "HP-UX"
+
467 
+
468 #elif defined(__HAIKU__)
+
469 # define PLATFORM_ID "Haiku"
+
470 
+
471 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
472 # define PLATFORM_ID "BeOS"
+
473 
+
474 #elif defined(__QNX__) || defined(__QNXNTO__)
+
475 # define PLATFORM_ID "QNX"
+
476 
+
477 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
478 # define PLATFORM_ID "Tru64"
+
479 
+
480 #elif defined(__riscos) || defined(__riscos__)
+
481 # define PLATFORM_ID "RISCos"
+
482 
+
483 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
484 # define PLATFORM_ID "SINIX"
+
485 
+
486 #elif defined(__UNIX_SV__)
+
487 # define PLATFORM_ID "UNIX_SV"
+
488 
+
489 #elif defined(__bsdos__)
+
490 # define PLATFORM_ID "BSDOS"
+
491 
+
492 #elif defined(_MPRAS) || defined(MPRAS)
+
493 # define PLATFORM_ID "MP-RAS"
+
494 
+
495 #elif defined(__osf) || defined(__osf__)
+
496 # define PLATFORM_ID "OSF1"
+
497 
+
498 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
499 # define PLATFORM_ID "SCO_SV"
+
500 
+
501 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
502 # define PLATFORM_ID "ULTRIX"
+
503 
+
504 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
505 # define PLATFORM_ID "Xenix"
+
506 
+
507 #elif defined(__WATCOMC__)
+
508 # if defined(__LINUX__)
+
509 # define PLATFORM_ID "Linux"
+
510 
+
511 # elif defined(__DOS__)
+
512 # define PLATFORM_ID "DOS"
+
513 
+
514 # elif defined(__OS2__)
+
515 # define PLATFORM_ID "OS2"
+
516 
+
517 # elif defined(__WINDOWS__)
+
518 # define PLATFORM_ID "Windows3x"
+
519 
+
520 # elif defined(__VXWORKS__)
+
521 # define PLATFORM_ID "VxWorks"
+
522 
+
523 # else /* unknown platform */
+
524 # define PLATFORM_ID
+
525 # endif
+
526 
+
527 #elif defined(__INTEGRITY)
+
528 # if defined(INT_178B)
+
529 # define PLATFORM_ID "Integrity178"
+
530 
+
531 # else /* regular Integrity */
+
532 # define PLATFORM_ID "Integrity"
+
533 # endif
+
534 
+
535 # elif defined(_ADI_COMPILER)
+
536 # define PLATFORM_ID "ADSP"
+
537 
+
538 #else /* unknown platform */
+
539 # define PLATFORM_ID
+
540 
+
541 #endif
+
542 
+
543 /* For windows compilers MSVC and Intel we can determine
+
544  the architecture of the compiler being used. This is because
+
545  the compilers do not have flags that can change the architecture,
+
546  but rather depend on which compiler is being used
+
547 */
+
548 #if defined(_WIN32) && defined(_MSC_VER)
+
549 # if defined(_M_IA64)
+
550 # define ARCHITECTURE_ID "IA64"
+
551 
+
552 # elif defined(_M_ARM64EC)
+
553 # define ARCHITECTURE_ID "ARM64EC"
+
554 
+
555 # elif defined(_M_X64) || defined(_M_AMD64)
+
556 # define ARCHITECTURE_ID "x64"
+
557 
+
558 # elif defined(_M_IX86)
+
559 # define ARCHITECTURE_ID "X86"
+
560 
+
561 # elif defined(_M_ARM64)
+
562 # define ARCHITECTURE_ID "ARM64"
+
563 
+
564 # elif defined(_M_ARM)
+
565 # if _M_ARM == 4
+
566 # define ARCHITECTURE_ID "ARMV4I"
+
567 # elif _M_ARM == 5
+
568 # define ARCHITECTURE_ID "ARMV5I"
+
569 # else
+
570 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
571 # endif
+
572 
+
573 # elif defined(_M_MIPS)
+
574 # define ARCHITECTURE_ID "MIPS"
+
575 
+
576 # elif defined(_M_SH)
+
577 # define ARCHITECTURE_ID "SHx"
+
578 
+
579 # else /* unknown architecture */
+
580 # define ARCHITECTURE_ID ""
+
581 # endif
+
582 
+
583 #elif defined(__WATCOMC__)
+
584 # if defined(_M_I86)
+
585 # define ARCHITECTURE_ID "I86"
+
586 
+
587 # elif defined(_M_IX86)
+
588 # define ARCHITECTURE_ID "X86"
+
589 
+
590 # else /* unknown architecture */
+
591 # define ARCHITECTURE_ID ""
+
592 # endif
+
593 
+
594 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
595 # if defined(__ICCARM__)
+
596 # define ARCHITECTURE_ID "ARM"
+
597 
+
598 # elif defined(__ICCRX__)
+
599 # define ARCHITECTURE_ID "RX"
+
600 
+
601 # elif defined(__ICCRH850__)
+
602 # define ARCHITECTURE_ID "RH850"
+
603 
+
604 # elif defined(__ICCRL78__)
+
605 # define ARCHITECTURE_ID "RL78"
+
606 
+
607 # elif defined(__ICCRISCV__)
+
608 # define ARCHITECTURE_ID "RISCV"
+
609 
+
610 # elif defined(__ICCAVR__)
+
611 # define ARCHITECTURE_ID "AVR"
+
612 
+
613 # elif defined(__ICC430__)
+
614 # define ARCHITECTURE_ID "MSP430"
+
615 
+
616 # elif defined(__ICCV850__)
+
617 # define ARCHITECTURE_ID "V850"
+
618 
+
619 # elif defined(__ICC8051__)
+
620 # define ARCHITECTURE_ID "8051"
+
621 
+
622 # elif defined(__ICCSTM8__)
+
623 # define ARCHITECTURE_ID "STM8"
+
624 
+
625 # else /* unknown architecture */
+
626 # define ARCHITECTURE_ID ""
+
627 # endif
+
628 
+
629 #elif defined(__ghs__)
+
630 # if defined(__PPC64__)
+
631 # define ARCHITECTURE_ID "PPC64"
+
632 
+
633 # elif defined(__ppc__)
+
634 # define ARCHITECTURE_ID "PPC"
+
635 
+
636 # elif defined(__ARM__)
+
637 # define ARCHITECTURE_ID "ARM"
+
638 
+
639 # elif defined(__x86_64__)
+
640 # define ARCHITECTURE_ID "x64"
+
641 
+
642 # elif defined(__i386__)
+
643 # define ARCHITECTURE_ID "X86"
+
644 
+
645 # else /* unknown architecture */
+
646 # define ARCHITECTURE_ID ""
+
647 # endif
+
648 
+
649 #elif defined(__TI_COMPILER_VERSION__)
+
650 # if defined(__TI_ARM__)
+
651 # define ARCHITECTURE_ID "ARM"
+
652 
+
653 # elif defined(__MSP430__)
+
654 # define ARCHITECTURE_ID "MSP430"
+
655 
+
656 # elif defined(__TMS320C28XX__)
+
657 # define ARCHITECTURE_ID "TMS320C28x"
+
658 
+
659 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
660 # define ARCHITECTURE_ID "TMS320C6x"
+
661 
+
662 # else /* unknown architecture */
+
663 # define ARCHITECTURE_ID ""
+
664 # endif
+
665 
+
666 # elif defined(__ADSPSHARC__)
+
667 # define ARCHITECTURE_ID "SHARC"
+
668 
+
669 # elif defined(__ADSPBLACKFIN__)
+
670 # define ARCHITECTURE_ID "Blackfin"
+
671 
+
672 #else
+
673 # define ARCHITECTURE_ID
+
674 #endif
+
675 
+
676 /* Convert integer to decimal digit literals. */
+
677 #define DEC(n) \
+
678  ('0' + (((n) / 10000000)%10)), \
+
679  ('0' + (((n) / 1000000)%10)), \
+
680  ('0' + (((n) / 100000)%10)), \
+
681  ('0' + (((n) / 10000)%10)), \
+
682  ('0' + (((n) / 1000)%10)), \
+
683  ('0' + (((n) / 100)%10)), \
+
684  ('0' + (((n) / 10)%10)), \
+
685  ('0' + ((n) % 10))
+
686 
+
687 /* Convert integer to hex digit literals. */
+
688 #define HEX(n) \
+
689  ('0' + ((n)>>28 & 0xF)), \
+
690  ('0' + ((n)>>24 & 0xF)), \
+
691  ('0' + ((n)>>20 & 0xF)), \
+
692  ('0' + ((n)>>16 & 0xF)), \
+
693  ('0' + ((n)>>12 & 0xF)), \
+
694  ('0' + ((n)>>8 & 0xF)), \
+
695  ('0' + ((n)>>4 & 0xF)), \
+
696  ('0' + ((n) & 0xF))
+
697 
+
698 /* Construct a string literal encoding the version number. */
+
699 #ifdef COMPILER_VERSION
+
700 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
701 
+
702 /* Construct a string literal encoding the version number components. */
+
703 #elif defined(COMPILER_VERSION_MAJOR)
+
704 char const info_version[] = {
+
705  'I', 'N', 'F', 'O', ':',
+
706  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
707  COMPILER_VERSION_MAJOR,
+
708 # ifdef COMPILER_VERSION_MINOR
+
709  '.', COMPILER_VERSION_MINOR,
+
710 # ifdef COMPILER_VERSION_PATCH
+
711  '.', COMPILER_VERSION_PATCH,
+
712 # ifdef COMPILER_VERSION_TWEAK
+
713  '.', COMPILER_VERSION_TWEAK,
+
714 # endif
+
715 # endif
+
716 # endif
+
717  ']','\0'};
+
718 #endif
+
719 
+
720 /* Construct a string literal encoding the internal version number. */
+
721 #ifdef COMPILER_VERSION_INTERNAL
+
722 char const info_version_internal[] = {
+
723  'I', 'N', 'F', 'O', ':',
+
724  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
725  'i','n','t','e','r','n','a','l','[',
+
726  COMPILER_VERSION_INTERNAL,']','\0'};
+
727 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
728 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
729 #endif
+
730 
+
731 /* Construct a string literal encoding the version number components. */
+
732 #ifdef SIMULATE_VERSION_MAJOR
+
733 char const info_simulate_version[] = {
+
734  'I', 'N', 'F', 'O', ':',
+
735  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
736  SIMULATE_VERSION_MAJOR,
+
737 # ifdef SIMULATE_VERSION_MINOR
+
738  '.', SIMULATE_VERSION_MINOR,
+
739 # ifdef SIMULATE_VERSION_PATCH
+
740  '.', SIMULATE_VERSION_PATCH,
+
741 # ifdef SIMULATE_VERSION_TWEAK
+
742  '.', SIMULATE_VERSION_TWEAK,
+
743 # endif
+
744 # endif
+
745 # endif
+
746  ']','\0'};
+
747 #endif
+
748 
+
749 /* Construct the string literal in pieces to prevent the source from
+
750  getting matched. Store it in a pointer rather than an array
+
751  because some compilers will just produce instructions to fill the
+
752  array rather than assigning a pointer to a static array. */
+
753 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
754 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
755 
+
756 
+
757 
+
758 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
759 # if defined(__INTEL_CXX11_MODE__)
+
760 # if defined(__cpp_aggregate_nsdmi)
+
761 # define CXX_STD 201402L
+
762 # else
+
763 # define CXX_STD 201103L
+
764 # endif
+
765 # else
+
766 # define CXX_STD 199711L
+
767 # endif
+
768 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
769 # define CXX_STD _MSVC_LANG
+
770 #else
+
771 # define CXX_STD __cplusplus
+
772 #endif
+
773 
+
774 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
775 #if CXX_STD > 202002L
+
776  "23"
+
777 #elif CXX_STD > 201703L
+
778  "20"
+
779 #elif CXX_STD >= 201703L
+
780  "17"
+
781 #elif CXX_STD >= 201402L
+
782  "14"
+
783 #elif CXX_STD >= 201103L
+
784  "11"
+
785 #else
+
786  "98"
+
787 #endif
+
788 "]";
+
789 
+
790 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
791 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
792  defined(__TI_COMPILER_VERSION__)) && \
+
793  !defined(__STRICT_ANSI__)
+
794  "ON"
+
795 #else
+
796  "OFF"
+
797 #endif
+
798 "]";
+
799 
+
800 /*--------------------------------------------------------------------------*/
+
801 
+
802 int main(int argc, char* argv[])
+
803 {
+
804  int require = 0;
+
805  require += info_compiler[argc];
+
806  require += info_platform[argc];
+
807 #ifdef COMPILER_VERSION_MAJOR
+
808  require += info_version[argc];
+
809 #endif
+
810 #ifdef COMPILER_VERSION_INTERNAL
+
811  require += info_version_internal[argc];
+
812 #endif
+
813 #ifdef SIMULATE_ID
+
814  require += info_simulate[argc];
+
815 #endif
+
816 #ifdef SIMULATE_VERSION_MAJOR
+
817  require += info_simulate_version[argc];
+
818 #endif
+
819 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
820  require += info_cray[argc];
+
821 #endif
+
822  require += info_language_standard_default[argc];
+
823  require += info_language_extensions_default[argc];
+
824  (void)argv;
+
825  return require;
+
826 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_n_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..f5898bd --- /dev/null +++ b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_ON/CMakeFiles/3.25.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/_rel_with_deb_info___o_n_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..700e91c --- /dev/null +++ b/docs/_rel_with_deb_info___o_n_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RelWithDebInfo_ON/CMakeFiles/3.25.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/_release___o_f_f_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_f_f_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..1a42631 --- /dev/null +++ b/docs/_release___o_f_f_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,679 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_OFF/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23  /* __INTEL_COMPILER = VRP */
+
24 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
25 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
26 # if defined(__INTEL_COMPILER_UPDATE)
+
27 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
28 # else
+
29 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
30 # endif
+
31 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
32  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
33 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
34 # endif
+
35 # if defined(_MSC_VER)
+
36  /* _MSC_VER = VVRR */
+
37 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
38 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
39 # endif
+
40 
+
41 #elif defined(__PATHCC__)
+
42 # define COMPILER_ID "PathScale"
+
43 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
44 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
45 # if defined(__PATHCC_PATCHLEVEL__)
+
46 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
47 # endif
+
48 
+
49 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
50 # define COMPILER_ID "Embarcadero"
+
51 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
52 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
53 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
54 
+
55 #elif defined(__BORLANDC__)
+
56 # define COMPILER_ID "Borland"
+
57  /* __BORLANDC__ = 0xVRR */
+
58 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
59 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
60 
+
61 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
62 # define COMPILER_ID "Watcom"
+
63  /* __WATCOMC__ = VVRR */
+
64 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
65 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
66 # if (__WATCOMC__ % 10) > 0
+
67 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
68 # endif
+
69 
+
70 #elif defined(__WATCOMC__)
+
71 # define COMPILER_ID "OpenWatcom"
+
72  /* __WATCOMC__ = VVRP + 1100 */
+
73 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
74 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
75 # if (__WATCOMC__ % 10) > 0
+
76 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
77 # endif
+
78 
+
79 #elif defined(__SUNPRO_CC)
+
80 # define COMPILER_ID "SunPro"
+
81 # if __SUNPRO_CC >= 0x5100
+
82  /* __SUNPRO_CC = 0xVRRP */
+
83 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
84 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
85 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
86 # else
+
87  /* __SUNPRO_CC = 0xVRP */
+
88 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
89 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
90 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
91 # endif
+
92 
+
93 #elif defined(__HP_aCC)
+
94 # define COMPILER_ID "HP"
+
95  /* __HP_aCC = VVRRPP */
+
96 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
97 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
98 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
99 
+
100 #elif defined(__DECCXX)
+
101 # define COMPILER_ID "Compaq"
+
102  /* __DECCXX_VER = VVRRTPPPP */
+
103 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
104 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
105 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
106 
+
107 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
108 # define COMPILER_ID "zOS"
+
109  /* __IBMCPP__ = VRP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
111 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
112 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
113 
+
114 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
115 # define COMPILER_ID "XL"
+
116  /* __IBMCPP__ = VRP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
118 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
119 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
120 
+
121 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
122 # define COMPILER_ID "VisualAge"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__PGI)
+
129 # define COMPILER_ID "PGI"
+
130 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
131 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
132 # if defined(__PGIC_PATCHLEVEL__)
+
133 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
134 # endif
+
135 
+
136 #elif defined(_CRAYC)
+
137 # define COMPILER_ID "Cray"
+
138 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
139 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
140 
+
141 #elif defined(__TI_COMPILER_VERSION__)
+
142 # define COMPILER_ID "TI"
+
143  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
144 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
145 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
146 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
147 
+
148 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
149 # define COMPILER_ID "Fujitsu"
+
150 
+
151 #elif defined(__SCO_VERSION__)
+
152 # define COMPILER_ID "SCO"
+
153 
+
154 #elif defined(__clang__) && defined(__apple_build_version__)
+
155 # define COMPILER_ID "AppleClang"
+
156 # if defined(_MSC_VER)
+
157 # define SIMULATE_ID "MSVC"
+
158 # endif
+
159 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
160 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
161 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
162 # if defined(_MSC_VER)
+
163  /* _MSC_VER = VVRR */
+
164 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
165 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
166 # endif
+
167 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
168 
+
169 #elif defined(__clang__)
+
170 # define COMPILER_ID "Clang"
+
171 # if defined(_MSC_VER)
+
172 # define SIMULATE_ID "MSVC"
+
173 # endif
+
174 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
175 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
176 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
177 # if defined(_MSC_VER)
+
178  /* _MSC_VER = VVRR */
+
179 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
180 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
181 # endif
+
182 
+
183 #elif defined(__GNUC__) || defined(__GNUG__)
+
184 # define COMPILER_ID "GNU"
+
185 # if defined(__GNUC__)
+
186 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
187 # else
+
188 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
189 # endif
+
190 # if defined(__GNUC_MINOR__)
+
191 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
192 # endif
+
193 # if defined(__GNUC_PATCHLEVEL__)
+
194 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
195 # endif
+
196 
+
197 #elif defined(_MSC_VER)
+
198 # define COMPILER_ID "MSVC"
+
199  /* _MSC_VER = VVRR */
+
200 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
201 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
202 # if defined(_MSC_FULL_VER)
+
203 # if _MSC_VER >= 1400
+
204  /* _MSC_FULL_VER = VVRRPPPPP */
+
205 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
206 # else
+
207  /* _MSC_FULL_VER = VVRRPPPP */
+
208 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
209 # endif
+
210 # endif
+
211 # if defined(_MSC_BUILD)
+
212 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
213 # endif
+
214 
+
215 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
216 # define COMPILER_ID "ADSP"
+
217 #if defined(__VISUALDSPVERSION__)
+
218  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
219 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
220 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
221 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
222 #endif
+
223 
+
224 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
225 # define COMPILER_ID "IAR"
+
226 # if defined(__VER__)
+
227 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
230 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
231 # endif
+
232 
+
233 #elif defined(__ARMCC_VERSION)
+
234 # define COMPILER_ID "ARMCC"
+
235 #if __ARMCC_VERSION >= 1000000
+
236  /* __ARMCC_VERSION = VRRPPPP */
+
237  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
238  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
239  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
240 #else
+
241  /* __ARMCC_VERSION = VRPPPP */
+
242  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
243  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
244  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
245 #endif
+
246 
+
247 
+
248 #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
+
249 # define COMPILER_ID "MIPSpro"
+
250 # if defined(_SGI_COMPILER_VERSION)
+
251  /* _SGI_COMPILER_VERSION = VRP */
+
252 # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
+
253 # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
+
254 # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
+
255 # else
+
256  /* _COMPILER_VERSION = VRP */
+
257 # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
+
258 # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
+
259 # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
+
260 # endif
+
261 
+
262 
+
263 /* These compilers are either not known or too old to define an
+
264  identification macro. Try to identify the platform and guess that
+
265  it is the native compiler. */
+
266 #elif defined(__sgi)
+
267 # define COMPILER_ID "MIPSpro"
+
268 
+
269 #elif defined(__hpux) || defined(__hpua)
+
270 # define COMPILER_ID "HP"
+
271 
+
272 #else /* unknown compiler */
+
273 # define COMPILER_ID ""
+
274 #endif
+
275 
+
276 /* Construct the string literal in pieces to prevent the source from
+
277  getting matched. Store it in a pointer rather than an array
+
278  because some compilers will just produce instructions to fill the
+
279  array rather than assigning a pointer to a static array. */
+
280 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
281 #ifdef SIMULATE_ID
+
282 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
283 #endif
+
284 
+
285 #ifdef __QNXNTO__
+
286 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
287 #endif
+
288 
+
289 #if defined(__CRAYXE) || defined(__CRAYXC)
+
290 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
291 #endif
+
292 
+
293 #define STRINGIFY_HELPER(X) #X
+
294 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
295 
+
296 /* Identify known platforms by name. */
+
297 #if defined(__linux) || defined(__linux__) || defined(linux)
+
298 # define PLATFORM_ID "Linux"
+
299 
+
300 #elif defined(__CYGWIN__)
+
301 # define PLATFORM_ID "Cygwin"
+
302 
+
303 #elif defined(__MINGW32__)
+
304 # define PLATFORM_ID "MinGW"
+
305 
+
306 #elif defined(__APPLE__)
+
307 # define PLATFORM_ID "Darwin"
+
308 
+
309 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
310 # define PLATFORM_ID "Windows"
+
311 
+
312 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
313 # define PLATFORM_ID "FreeBSD"
+
314 
+
315 #elif defined(__NetBSD__) || defined(__NetBSD)
+
316 # define PLATFORM_ID "NetBSD"
+
317 
+
318 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
319 # define PLATFORM_ID "OpenBSD"
+
320 
+
321 #elif defined(__sun) || defined(sun)
+
322 # define PLATFORM_ID "SunOS"
+
323 
+
324 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
325 # define PLATFORM_ID "AIX"
+
326 
+
327 #elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
+
328 # define PLATFORM_ID "IRIX"
+
329 
+
330 #elif defined(__hpux) || defined(__hpux__)
+
331 # define PLATFORM_ID "HP-UX"
+
332 
+
333 #elif defined(__HAIKU__)
+
334 # define PLATFORM_ID "Haiku"
+
335 
+
336 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
337 # define PLATFORM_ID "BeOS"
+
338 
+
339 #elif defined(__QNX__) || defined(__QNXNTO__)
+
340 # define PLATFORM_ID "QNX"
+
341 
+
342 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
343 # define PLATFORM_ID "Tru64"
+
344 
+
345 #elif defined(__riscos) || defined(__riscos__)
+
346 # define PLATFORM_ID "RISCos"
+
347 
+
348 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
349 # define PLATFORM_ID "SINIX"
+
350 
+
351 #elif defined(__UNIX_SV__)
+
352 # define PLATFORM_ID "UNIX_SV"
+
353 
+
354 #elif defined(__bsdos__)
+
355 # define PLATFORM_ID "BSDOS"
+
356 
+
357 #elif defined(_MPRAS) || defined(MPRAS)
+
358 # define PLATFORM_ID "MP-RAS"
+
359 
+
360 #elif defined(__osf) || defined(__osf__)
+
361 # define PLATFORM_ID "OSF1"
+
362 
+
363 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
364 # define PLATFORM_ID "SCO_SV"
+
365 
+
366 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
367 # define PLATFORM_ID "ULTRIX"
+
368 
+
369 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
370 # define PLATFORM_ID "Xenix"
+
371 
+
372 #elif defined(__WATCOMC__)
+
373 # if defined(__LINUX__)
+
374 # define PLATFORM_ID "Linux"
+
375 
+
376 # elif defined(__DOS__)
+
377 # define PLATFORM_ID "DOS"
+
378 
+
379 # elif defined(__OS2__)
+
380 # define PLATFORM_ID "OS2"
+
381 
+
382 # elif defined(__WINDOWS__)
+
383 # define PLATFORM_ID "Windows3x"
+
384 
+
385 # else /* unknown platform */
+
386 # define PLATFORM_ID
+
387 # endif
+
388 
+
389 #else /* unknown platform */
+
390 # define PLATFORM_ID
+
391 
+
392 #endif
+
393 
+
394 /* For windows compilers MSVC and Intel we can determine
+
395  the architecture of the compiler being used. This is because
+
396  the compilers do not have flags that can change the architecture,
+
397  but rather depend on which compiler is being used
+
398 */
+
399 #if defined(_WIN32) && defined(_MSC_VER)
+
400 # if defined(_M_IA64)
+
401 # define ARCHITECTURE_ID "IA64"
+
402 
+
403 # elif defined(_M_X64) || defined(_M_AMD64)
+
404 # define ARCHITECTURE_ID "x64"
+
405 
+
406 # elif defined(_M_IX86)
+
407 # define ARCHITECTURE_ID "X86"
+
408 
+
409 # elif defined(_M_ARM64)
+
410 # define ARCHITECTURE_ID "ARM64"
+
411 
+
412 # elif defined(_M_ARM)
+
413 # if _M_ARM == 4
+
414 # define ARCHITECTURE_ID "ARMV4I"
+
415 # elif _M_ARM == 5
+
416 # define ARCHITECTURE_ID "ARMV5I"
+
417 # else
+
418 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
419 # endif
+
420 
+
421 # elif defined(_M_MIPS)
+
422 # define ARCHITECTURE_ID "MIPS"
+
423 
+
424 # elif defined(_M_SH)
+
425 # define ARCHITECTURE_ID "SHx"
+
426 
+
427 # else /* unknown architecture */
+
428 # define ARCHITECTURE_ID ""
+
429 # endif
+
430 
+
431 #elif defined(__WATCOMC__)
+
432 # if defined(_M_I86)
+
433 # define ARCHITECTURE_ID "I86"
+
434 
+
435 # elif defined(_M_IX86)
+
436 # define ARCHITECTURE_ID "X86"
+
437 
+
438 # else /* unknown architecture */
+
439 # define ARCHITECTURE_ID ""
+
440 # endif
+
441 
+
442 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
443 # if defined(__ICCARM__)
+
444 # define ARCHITECTURE_ID "ARM"
+
445 
+
446 # elif defined(__ICCAVR__)
+
447 # define ARCHITECTURE_ID "AVR"
+
448 
+
449 # else /* unknown architecture */
+
450 # define ARCHITECTURE_ID ""
+
451 # endif
+
452 #else
+
453 # define ARCHITECTURE_ID
+
454 #endif
+
455 
+
456 /* Convert integer to decimal digit literals. */
+
457 #define DEC(n) \
+
458  ('0' + (((n) / 10000000)%10)), \
+
459  ('0' + (((n) / 1000000)%10)), \
+
460  ('0' + (((n) / 100000)%10)), \
+
461  ('0' + (((n) / 10000)%10)), \
+
462  ('0' + (((n) / 1000)%10)), \
+
463  ('0' + (((n) / 100)%10)), \
+
464  ('0' + (((n) / 10)%10)), \
+
465  ('0' + ((n) % 10))
+
466 
+
467 /* Convert integer to hex digit literals. */
+
468 #define HEX(n) \
+
469  ('0' + ((n)>>28 & 0xF)), \
+
470  ('0' + ((n)>>24 & 0xF)), \
+
471  ('0' + ((n)>>20 & 0xF)), \
+
472  ('0' + ((n)>>16 & 0xF)), \
+
473  ('0' + ((n)>>12 & 0xF)), \
+
474  ('0' + ((n)>>8 & 0xF)), \
+
475  ('0' + ((n)>>4 & 0xF)), \
+
476  ('0' + ((n) & 0xF))
+
477 
+
478 /* Construct a string literal encoding the version number components. */
+
479 #ifdef COMPILER_VERSION_MAJOR
+
480 char const info_version[] = {
+
481  'I', 'N', 'F', 'O', ':',
+
482  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
483  COMPILER_VERSION_MAJOR,
+
484 # ifdef COMPILER_VERSION_MINOR
+
485  '.', COMPILER_VERSION_MINOR,
+
486 # ifdef COMPILER_VERSION_PATCH
+
487  '.', COMPILER_VERSION_PATCH,
+
488 # ifdef COMPILER_VERSION_TWEAK
+
489  '.', COMPILER_VERSION_TWEAK,
+
490 # endif
+
491 # endif
+
492 # endif
+
493  ']','\0'};
+
494 #endif
+
495 
+
496 /* Construct a string literal encoding the internal version number. */
+
497 #ifdef COMPILER_VERSION_INTERNAL
+
498 char const info_version_internal[] = {
+
499  'I', 'N', 'F', 'O', ':',
+
500  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
501  'i','n','t','e','r','n','a','l','[',
+
502  COMPILER_VERSION_INTERNAL,']','\0'};
+
503 #endif
+
504 
+
505 /* Construct a string literal encoding the version number components. */
+
506 #ifdef SIMULATE_VERSION_MAJOR
+
507 char const info_simulate_version[] = {
+
508  'I', 'N', 'F', 'O', ':',
+
509  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
510  SIMULATE_VERSION_MAJOR,
+
511 # ifdef SIMULATE_VERSION_MINOR
+
512  '.', SIMULATE_VERSION_MINOR,
+
513 # ifdef SIMULATE_VERSION_PATCH
+
514  '.', SIMULATE_VERSION_PATCH,
+
515 # ifdef SIMULATE_VERSION_TWEAK
+
516  '.', SIMULATE_VERSION_TWEAK,
+
517 # endif
+
518 # endif
+
519 # endif
+
520  ']','\0'};
+
521 #endif
+
522 
+
523 /* Construct the string literal in pieces to prevent the source from
+
524  getting matched. Store it in a pointer rather than an array
+
525  because some compilers will just produce instructions to fill the
+
526  array rather than assigning a pointer to a static array. */
+
527 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
528 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
529 
+
530 
+
531 
+
532 
+
533 #if defined(_MSC_VER) && defined(_MSVC_LANG)
+
534 #define CXX_STD _MSVC_LANG
+
535 #else
+
536 #define CXX_STD __cplusplus
+
537 #endif
+
538 
+
539 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
540 #if CXX_STD > 201402L
+
541  "17"
+
542 #elif CXX_STD >= 201402L
+
543  "14"
+
544 #elif CXX_STD >= 201103L
+
545  "11"
+
546 #else
+
547  "98"
+
548 #endif
+
549 "]";
+
550 
+
551 /*--------------------------------------------------------------------------*/
+
552 
+
553 int main(int argc, char* argv[])
+
554 {
+
555  int require = 0;
+
556  require += info_compiler[argc];
+
557  require += info_platform[argc];
+
558 #ifdef COMPILER_VERSION_MAJOR
+
559  require += info_version[argc];
+
560 #endif
+
561 #ifdef COMPILER_VERSION_INTERNAL
+
562  require += info_version_internal[argc];
+
563 #endif
+
564 #ifdef SIMULATE_ID
+
565  require += info_simulate[argc];
+
566 #endif
+
567 #ifdef SIMULATE_VERSION_MAJOR
+
568  require += info_simulate_version[argc];
+
569 #endif
+
570 #if defined(__CRAYXE) || defined(__CRAYXC)
+
571  require += info_cray[argc];
+
572 #endif
+
573  require += info_language_dialect_default[argc];
+
574  (void)argv;
+
575  return require;
+
576 }
+
+
+ + + + diff --git a/docs/_release___o_f_f_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_f_f_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..c74ce6f --- /dev/null +++ b/docs/_release___o_f_f_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,766 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_OFF/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23 # if defined(__GNUC__)
+
24 # define SIMULATE_ID "GNU"
+
25 # endif
+
26  /* __INTEL_COMPILER = VRP */
+
27 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
28 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
29 # if defined(__INTEL_COMPILER_UPDATE)
+
30 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
31 # else
+
32 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
33 # endif
+
34 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
35  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
36 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
37 # endif
+
38 # if defined(_MSC_VER)
+
39  /* _MSC_VER = VVRR */
+
40 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
41 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
42 # endif
+
43 # if defined(__GNUC__)
+
44 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
45 # elif defined(__GNUG__)
+
46 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
47 # endif
+
48 # if defined(__GNUC_MINOR__)
+
49 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
50 # endif
+
51 # if defined(__GNUC_PATCHLEVEL__)
+
52 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
53 # endif
+
54 
+
55 #elif defined(__PATHCC__)
+
56 # define COMPILER_ID "PathScale"
+
57 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
58 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
59 # if defined(__PATHCC_PATCHLEVEL__)
+
60 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
61 # endif
+
62 
+
63 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
64 # define COMPILER_ID "Embarcadero"
+
65 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
66 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
67 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
68 
+
69 #elif defined(__BORLANDC__)
+
70 # define COMPILER_ID "Borland"
+
71  /* __BORLANDC__ = 0xVRR */
+
72 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
73 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
74 
+
75 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
76 # define COMPILER_ID "Watcom"
+
77  /* __WATCOMC__ = VVRR */
+
78 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
79 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
80 # if (__WATCOMC__ % 10) > 0
+
81 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
82 # endif
+
83 
+
84 #elif defined(__WATCOMC__)
+
85 # define COMPILER_ID "OpenWatcom"
+
86  /* __WATCOMC__ = VVRP + 1100 */
+
87 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
88 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
89 # if (__WATCOMC__ % 10) > 0
+
90 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
91 # endif
+
92 
+
93 #elif defined(__SUNPRO_CC)
+
94 # define COMPILER_ID "SunPro"
+
95 # if __SUNPRO_CC >= 0x5100
+
96  /* __SUNPRO_CC = 0xVRRP */
+
97 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
98 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
99 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
100 # else
+
101  /* __SUNPRO_CC = 0xVRP */
+
102 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
103 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
104 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
105 # endif
+
106 
+
107 #elif defined(__HP_aCC)
+
108 # define COMPILER_ID "HP"
+
109  /* __HP_aCC = VVRRPP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
111 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
112 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
113 
+
114 #elif defined(__DECCXX)
+
115 # define COMPILER_ID "Compaq"
+
116  /* __DECCXX_VER = VVRRTPPPP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
118 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
119 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
120 
+
121 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
122 # define COMPILER_ID "zOS"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__ibmxl__) && defined(__clang__)
+
129 # define COMPILER_ID "XLClang"
+
130 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
131 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
132 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
133 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
134 
+
135 
+
136 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
137 # define COMPILER_ID "XL"
+
138  /* __IBMCPP__ = VRP */
+
139 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
140 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
141 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
142 
+
143 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
144 # define COMPILER_ID "VisualAge"
+
145  /* __IBMCPP__ = VRP */
+
146 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
147 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
148 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
149 
+
150 #elif defined(__PGI)
+
151 # define COMPILER_ID "PGI"
+
152 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
153 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
154 # if defined(__PGIC_PATCHLEVEL__)
+
155 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
156 # endif
+
157 
+
158 #elif defined(_CRAYC)
+
159 # define COMPILER_ID "Cray"
+
160 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
161 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
162 
+
163 #elif defined(__TI_COMPILER_VERSION__)
+
164 # define COMPILER_ID "TI"
+
165  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
166 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
167 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
168 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
169 
+
170 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
171 # define COMPILER_ID "Fujitsu"
+
172 
+
173 #elif defined(__ghs__)
+
174 # define COMPILER_ID "GHS"
+
175 /* __GHS_VERSION_NUMBER = VVVVRP */
+
176 # ifdef __GHS_VERSION_NUMBER
+
177 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
178 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
180 # endif
+
181 
+
182 #elif defined(__SCO_VERSION__)
+
183 # define COMPILER_ID "SCO"
+
184 
+
185 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
186 # define COMPILER_ID "ARMCC"
+
187 #if __ARMCC_VERSION >= 1000000
+
188  /* __ARMCC_VERSION = VRRPPPP */
+
189  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
190  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
191  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
192 #else
+
193  /* __ARMCC_VERSION = VRPPPP */
+
194  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
195  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
196  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
197 #endif
+
198 
+
199 
+
200 #elif defined(__clang__) && defined(__apple_build_version__)
+
201 # define COMPILER_ID "AppleClang"
+
202 # if defined(_MSC_VER)
+
203 # define SIMULATE_ID "MSVC"
+
204 # endif
+
205 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
206 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
207 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
208 # if defined(_MSC_VER)
+
209  /* _MSC_VER = VVRR */
+
210 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
211 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
212 # endif
+
213 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
214 
+
215 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
216 # define COMPILER_ID "ARMClang"
+
217  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
218  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
219  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
220 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
221 
+
222 #elif defined(__clang__)
+
223 # define COMPILER_ID "Clang"
+
224 # if defined(_MSC_VER)
+
225 # define SIMULATE_ID "MSVC"
+
226 # endif
+
227 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
228 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
229 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
230 # if defined(_MSC_VER)
+
231  /* _MSC_VER = VVRR */
+
232 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
233 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
234 # endif
+
235 
+
236 #elif defined(__GNUC__) || defined(__GNUG__)
+
237 # define COMPILER_ID "GNU"
+
238 # if defined(__GNUC__)
+
239 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
240 # else
+
241 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
242 # endif
+
243 # if defined(__GNUC_MINOR__)
+
244 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
245 # endif
+
246 # if defined(__GNUC_PATCHLEVEL__)
+
247 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
248 # endif
+
249 
+
250 #elif defined(_MSC_VER)
+
251 # define COMPILER_ID "MSVC"
+
252  /* _MSC_VER = VVRR */
+
253 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
254 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
255 # if defined(_MSC_FULL_VER)
+
256 # if _MSC_VER >= 1400
+
257  /* _MSC_FULL_VER = VVRRPPPPP */
+
258 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
259 # else
+
260  /* _MSC_FULL_VER = VVRRPPPP */
+
261 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
262 # endif
+
263 # endif
+
264 # if defined(_MSC_BUILD)
+
265 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
266 # endif
+
267 
+
268 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
269 # define COMPILER_ID "ADSP"
+
270 #if defined(__VISUALDSPVERSION__)
+
271  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
272 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
273 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
274 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
275 #endif
+
276 
+
277 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
278 # define COMPILER_ID "IAR"
+
279 # if defined(__VER__) && defined(__ICCARM__)
+
280 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
281 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
282 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
283 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
284 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__))
+
285 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
286 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
287 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
288 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
289 # endif
+
290 
+
291 
+
292 /* These compilers are either not known or too old to define an
+
293  identification macro. Try to identify the platform and guess that
+
294  it is the native compiler. */
+
295 #elif defined(__hpux) || defined(__hpua)
+
296 # define COMPILER_ID "HP"
+
297 
+
298 #else /* unknown compiler */
+
299 # define COMPILER_ID ""
+
300 #endif
+
301 
+
302 /* Construct the string literal in pieces to prevent the source from
+
303  getting matched. Store it in a pointer rather than an array
+
304  because some compilers will just produce instructions to fill the
+
305  array rather than assigning a pointer to a static array. */
+
306 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
307 #ifdef SIMULATE_ID
+
308 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
309 #endif
+
310 
+
311 #ifdef __QNXNTO__
+
312 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
313 #endif
+
314 
+
315 #if defined(__CRAYXE) || defined(__CRAYXC)
+
316 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
317 #endif
+
318 
+
319 #define STRINGIFY_HELPER(X) #X
+
320 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
321 
+
322 /* Identify known platforms by name. */
+
323 #if defined(__linux) || defined(__linux__) || defined(linux)
+
324 # define PLATFORM_ID "Linux"
+
325 
+
326 #elif defined(__CYGWIN__)
+
327 # define PLATFORM_ID "Cygwin"
+
328 
+
329 #elif defined(__MINGW32__)
+
330 # define PLATFORM_ID "MinGW"
+
331 
+
332 #elif defined(__APPLE__)
+
333 # define PLATFORM_ID "Darwin"
+
334 
+
335 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
336 # define PLATFORM_ID "Windows"
+
337 
+
338 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
339 # define PLATFORM_ID "FreeBSD"
+
340 
+
341 #elif defined(__NetBSD__) || defined(__NetBSD)
+
342 # define PLATFORM_ID "NetBSD"
+
343 
+
344 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
345 # define PLATFORM_ID "OpenBSD"
+
346 
+
347 #elif defined(__sun) || defined(sun)
+
348 # define PLATFORM_ID "SunOS"
+
349 
+
350 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
351 # define PLATFORM_ID "AIX"
+
352 
+
353 #elif defined(__hpux) || defined(__hpux__)
+
354 # define PLATFORM_ID "HP-UX"
+
355 
+
356 #elif defined(__HAIKU__)
+
357 # define PLATFORM_ID "Haiku"
+
358 
+
359 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
360 # define PLATFORM_ID "BeOS"
+
361 
+
362 #elif defined(__QNX__) || defined(__QNXNTO__)
+
363 # define PLATFORM_ID "QNX"
+
364 
+
365 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
366 # define PLATFORM_ID "Tru64"
+
367 
+
368 #elif defined(__riscos) || defined(__riscos__)
+
369 # define PLATFORM_ID "RISCos"
+
370 
+
371 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
372 # define PLATFORM_ID "SINIX"
+
373 
+
374 #elif defined(__UNIX_SV__)
+
375 # define PLATFORM_ID "UNIX_SV"
+
376 
+
377 #elif defined(__bsdos__)
+
378 # define PLATFORM_ID "BSDOS"
+
379 
+
380 #elif defined(_MPRAS) || defined(MPRAS)
+
381 # define PLATFORM_ID "MP-RAS"
+
382 
+
383 #elif defined(__osf) || defined(__osf__)
+
384 # define PLATFORM_ID "OSF1"
+
385 
+
386 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
387 # define PLATFORM_ID "SCO_SV"
+
388 
+
389 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
390 # define PLATFORM_ID "ULTRIX"
+
391 
+
392 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
393 # define PLATFORM_ID "Xenix"
+
394 
+
395 #elif defined(__WATCOMC__)
+
396 # if defined(__LINUX__)
+
397 # define PLATFORM_ID "Linux"
+
398 
+
399 # elif defined(__DOS__)
+
400 # define PLATFORM_ID "DOS"
+
401 
+
402 # elif defined(__OS2__)
+
403 # define PLATFORM_ID "OS2"
+
404 
+
405 # elif defined(__WINDOWS__)
+
406 # define PLATFORM_ID "Windows3x"
+
407 
+
408 # elif defined(__VXWORKS__)
+
409 # define PLATFORM_ID "VxWorks"
+
410 
+
411 # else /* unknown platform */
+
412 # define PLATFORM_ID
+
413 # endif
+
414 
+
415 #elif defined(__INTEGRITY)
+
416 # if defined(INT_178B)
+
417 # define PLATFORM_ID "Integrity178"
+
418 
+
419 # else /* regular Integrity */
+
420 # define PLATFORM_ID "Integrity"
+
421 # endif
+
422 
+
423 #else /* unknown platform */
+
424 # define PLATFORM_ID
+
425 
+
426 #endif
+
427 
+
428 /* For windows compilers MSVC and Intel we can determine
+
429  the architecture of the compiler being used. This is because
+
430  the compilers do not have flags that can change the architecture,
+
431  but rather depend on which compiler is being used
+
432 */
+
433 #if defined(_WIN32) && defined(_MSC_VER)
+
434 # if defined(_M_IA64)
+
435 # define ARCHITECTURE_ID "IA64"
+
436 
+
437 # elif defined(_M_X64) || defined(_M_AMD64)
+
438 # define ARCHITECTURE_ID "x64"
+
439 
+
440 # elif defined(_M_IX86)
+
441 # define ARCHITECTURE_ID "X86"
+
442 
+
443 # elif defined(_M_ARM64)
+
444 # define ARCHITECTURE_ID "ARM64"
+
445 
+
446 # elif defined(_M_ARM)
+
447 # if _M_ARM == 4
+
448 # define ARCHITECTURE_ID "ARMV4I"
+
449 # elif _M_ARM == 5
+
450 # define ARCHITECTURE_ID "ARMV5I"
+
451 # else
+
452 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
453 # endif
+
454 
+
455 # elif defined(_M_MIPS)
+
456 # define ARCHITECTURE_ID "MIPS"
+
457 
+
458 # elif defined(_M_SH)
+
459 # define ARCHITECTURE_ID "SHx"
+
460 
+
461 # else /* unknown architecture */
+
462 # define ARCHITECTURE_ID ""
+
463 # endif
+
464 
+
465 #elif defined(__WATCOMC__)
+
466 # if defined(_M_I86)
+
467 # define ARCHITECTURE_ID "I86"
+
468 
+
469 # elif defined(_M_IX86)
+
470 # define ARCHITECTURE_ID "X86"
+
471 
+
472 # else /* unknown architecture */
+
473 # define ARCHITECTURE_ID ""
+
474 # endif
+
475 
+
476 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
477 # if defined(__ICCARM__)
+
478 # define ARCHITECTURE_ID "ARM"
+
479 
+
480 # elif defined(__ICCRX__)
+
481 # define ARCHITECTURE_ID "RX"
+
482 
+
483 # elif defined(__ICCRH850__)
+
484 # define ARCHITECTURE_ID "RH850"
+
485 
+
486 # elif defined(__ICCRL78__)
+
487 # define ARCHITECTURE_ID "RL78"
+
488 
+
489 # elif defined(__ICCRISCV__)
+
490 # define ARCHITECTURE_ID "RISCV"
+
491 
+
492 # elif defined(__ICCAVR__)
+
493 # define ARCHITECTURE_ID "AVR"
+
494 
+
495 # elif defined(__ICC430__)
+
496 # define ARCHITECTURE_ID "MSP430"
+
497 
+
498 # elif defined(__ICCV850__)
+
499 # define ARCHITECTURE_ID "V850"
+
500 
+
501 # elif defined(__ICC8051__)
+
502 # define ARCHITECTURE_ID "8051"
+
503 
+
504 # else /* unknown architecture */
+
505 # define ARCHITECTURE_ID ""
+
506 # endif
+
507 
+
508 #elif defined(__ghs__)
+
509 # if defined(__PPC64__)
+
510 # define ARCHITECTURE_ID "PPC64"
+
511 
+
512 # elif defined(__ppc__)
+
513 # define ARCHITECTURE_ID "PPC"
+
514 
+
515 # elif defined(__ARM__)
+
516 # define ARCHITECTURE_ID "ARM"
+
517 
+
518 # elif defined(__x86_64__)
+
519 # define ARCHITECTURE_ID "x64"
+
520 
+
521 # elif defined(__i386__)
+
522 # define ARCHITECTURE_ID "X86"
+
523 
+
524 # else /* unknown architecture */
+
525 # define ARCHITECTURE_ID ""
+
526 # endif
+
527 #else
+
528 # define ARCHITECTURE_ID
+
529 #endif
+
530 
+
531 /* Convert integer to decimal digit literals. */
+
532 #define DEC(n) \
+
533  ('0' + (((n) / 10000000)%10)), \
+
534  ('0' + (((n) / 1000000)%10)), \
+
535  ('0' + (((n) / 100000)%10)), \
+
536  ('0' + (((n) / 10000)%10)), \
+
537  ('0' + (((n) / 1000)%10)), \
+
538  ('0' + (((n) / 100)%10)), \
+
539  ('0' + (((n) / 10)%10)), \
+
540  ('0' + ((n) % 10))
+
541 
+
542 /* Convert integer to hex digit literals. */
+
543 #define HEX(n) \
+
544  ('0' + ((n)>>28 & 0xF)), \
+
545  ('0' + ((n)>>24 & 0xF)), \
+
546  ('0' + ((n)>>20 & 0xF)), \
+
547  ('0' + ((n)>>16 & 0xF)), \
+
548  ('0' + ((n)>>12 & 0xF)), \
+
549  ('0' + ((n)>>8 & 0xF)), \
+
550  ('0' + ((n)>>4 & 0xF)), \
+
551  ('0' + ((n) & 0xF))
+
552 
+
553 /* Construct a string literal encoding the version number components. */
+
554 #ifdef COMPILER_VERSION_MAJOR
+
555 char const info_version[] = {
+
556  'I', 'N', 'F', 'O', ':',
+
557  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
558  COMPILER_VERSION_MAJOR,
+
559 # ifdef COMPILER_VERSION_MINOR
+
560  '.', COMPILER_VERSION_MINOR,
+
561 # ifdef COMPILER_VERSION_PATCH
+
562  '.', COMPILER_VERSION_PATCH,
+
563 # ifdef COMPILER_VERSION_TWEAK
+
564  '.', COMPILER_VERSION_TWEAK,
+
565 # endif
+
566 # endif
+
567 # endif
+
568  ']','\0'};
+
569 #endif
+
570 
+
571 /* Construct a string literal encoding the internal version number. */
+
572 #ifdef COMPILER_VERSION_INTERNAL
+
573 char const info_version_internal[] = {
+
574  'I', 'N', 'F', 'O', ':',
+
575  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
576  'i','n','t','e','r','n','a','l','[',
+
577  COMPILER_VERSION_INTERNAL,']','\0'};
+
578 #endif
+
579 
+
580 /* Construct a string literal encoding the version number components. */
+
581 #ifdef SIMULATE_VERSION_MAJOR
+
582 char const info_simulate_version[] = {
+
583  'I', 'N', 'F', 'O', ':',
+
584  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
585  SIMULATE_VERSION_MAJOR,
+
586 # ifdef SIMULATE_VERSION_MINOR
+
587  '.', SIMULATE_VERSION_MINOR,
+
588 # ifdef SIMULATE_VERSION_PATCH
+
589  '.', SIMULATE_VERSION_PATCH,
+
590 # ifdef SIMULATE_VERSION_TWEAK
+
591  '.', SIMULATE_VERSION_TWEAK,
+
592 # endif
+
593 # endif
+
594 # endif
+
595  ']','\0'};
+
596 #endif
+
597 
+
598 /* Construct the string literal in pieces to prevent the source from
+
599  getting matched. Store it in a pointer rather than an array
+
600  because some compilers will just produce instructions to fill the
+
601  array rather than assigning a pointer to a static array. */
+
602 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
603 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
604 
+
605 
+
606 
+
607 
+
608 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
609 # if defined(__INTEL_CXX11_MODE__)
+
610 # if defined(__cpp_aggregate_nsdmi)
+
611 # define CXX_STD 201402L
+
612 # else
+
613 # define CXX_STD 201103L
+
614 # endif
+
615 # else
+
616 # define CXX_STD 199711L
+
617 # endif
+
618 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
619 # define CXX_STD _MSVC_LANG
+
620 #else
+
621 # define CXX_STD __cplusplus
+
622 #endif
+
623 
+
624 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
625 #if CXX_STD > 201703L
+
626  "20"
+
627 #elif CXX_STD >= 201703L
+
628  "17"
+
629 #elif CXX_STD >= 201402L
+
630  "14"
+
631 #elif CXX_STD >= 201103L
+
632  "11"
+
633 #else
+
634  "98"
+
635 #endif
+
636 "]";
+
637 
+
638 /*--------------------------------------------------------------------------*/
+
639 
+
640 int main(int argc, char* argv[])
+
641 {
+
642  int require = 0;
+
643  require += info_compiler[argc];
+
644  require += info_platform[argc];
+
645 #ifdef COMPILER_VERSION_MAJOR
+
646  require += info_version[argc];
+
647 #endif
+
648 #ifdef COMPILER_VERSION_INTERNAL
+
649  require += info_version_internal[argc];
+
650 #endif
+
651 #ifdef SIMULATE_ID
+
652  require += info_simulate[argc];
+
653 #endif
+
654 #ifdef SIMULATE_VERSION_MAJOR
+
655  require += info_simulate_version[argc];
+
656 #endif
+
657 #if defined(__CRAYXE) || defined(__CRAYXC)
+
658  require += info_cray[argc];
+
659 #endif
+
660  require += info_language_dialect_default[argc];
+
661  (void)argv;
+
662  return require;
+
663 }
+
+
+ + + + diff --git a/docs/_release___o_f_f_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_f_f_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..da7e30a --- /dev/null +++ b/docs/_release___o_f_f_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,894 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_OFF/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__ibmxl__) && defined(__clang__)
+
182 # define COMPILER_ID "XLClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
190 # define COMPILER_ID "XL"
+
191  /* __IBMCPP__ = VRP */
+
192 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
193 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
194 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
195 
+
196 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
197 # define COMPILER_ID "VisualAge"
+
198  /* __IBMCPP__ = VRP */
+
199 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
200 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
201 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
202 
+
203 #elif defined(__NVCOMPILER)
+
204 # define COMPILER_ID "NVHPC"
+
205 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
206 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
207 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
208 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
209 # endif
+
210 
+
211 #elif defined(__PGI)
+
212 # define COMPILER_ID "PGI"
+
213 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
214 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
215 # if defined(__PGIC_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(_CRAYC)
+
220 # define COMPILER_ID "Cray"
+
221 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
222 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
223 
+
224 #elif defined(__TI_COMPILER_VERSION__)
+
225 # define COMPILER_ID "TI"
+
226  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
227 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
230 
+
231 #elif defined(__CLANG_FUJITSU)
+
232 # define COMPILER_ID "FujitsuClang"
+
233 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
234 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
235 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
236 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
237 
+
238 
+
239 #elif defined(__FUJITSU)
+
240 # define COMPILER_ID "Fujitsu"
+
241 # if defined(__FCC_version__)
+
242 # define COMPILER_VERSION __FCC_version__
+
243 # elif defined(__FCC_major__)
+
244 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
245 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
246 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
247 # endif
+
248 # if defined(__fcc_version)
+
249 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
250 # elif defined(__FCC_VERSION)
+
251 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
252 # endif
+
253 
+
254 
+
255 #elif defined(__ghs__)
+
256 # define COMPILER_ID "GHS"
+
257 /* __GHS_VERSION_NUMBER = VVVVRP */
+
258 # ifdef __GHS_VERSION_NUMBER
+
259 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
260 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
261 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
262 # endif
+
263 
+
264 #elif defined(__SCO_VERSION__)
+
265 # define COMPILER_ID "SCO"
+
266 
+
267 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
268 # define COMPILER_ID "ARMCC"
+
269 #if __ARMCC_VERSION >= 1000000
+
270  /* __ARMCC_VERSION = VRRPPPP */
+
271  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
272  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
273  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
274 #else
+
275  /* __ARMCC_VERSION = VRPPPP */
+
276  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
277  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
278  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
279 #endif
+
280 
+
281 
+
282 #elif defined(__clang__) && defined(__apple_build_version__)
+
283 # define COMPILER_ID "AppleClang"
+
284 # if defined(_MSC_VER)
+
285 # define SIMULATE_ID "MSVC"
+
286 # endif
+
287 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
288 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
289 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
290 # if defined(_MSC_VER)
+
291  /* _MSC_VER = VVRR */
+
292 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
293 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
294 # endif
+
295 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
296 
+
297 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
298 # define COMPILER_ID "ARMClang"
+
299  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
300  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
301  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
302 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
303 
+
304 #elif defined(__clang__)
+
305 # define COMPILER_ID "Clang"
+
306 # if defined(_MSC_VER)
+
307 # define SIMULATE_ID "MSVC"
+
308 # endif
+
309 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
310 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
311 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
312 # if defined(_MSC_VER)
+
313  /* _MSC_VER = VVRR */
+
314 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
315 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
316 # endif
+
317 
+
318 #elif defined(__GNUC__) || defined(__GNUG__)
+
319 # define COMPILER_ID "GNU"
+
320 # if defined(__GNUC__)
+
321 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
322 # else
+
323 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
324 # endif
+
325 # if defined(__GNUC_MINOR__)
+
326 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
327 # endif
+
328 # if defined(__GNUC_PATCHLEVEL__)
+
329 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
330 # endif
+
331 
+
332 #elif defined(_MSC_VER)
+
333 # define COMPILER_ID "MSVC"
+
334  /* _MSC_VER = VVRR */
+
335 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
336 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
337 # if defined(_MSC_FULL_VER)
+
338 # if _MSC_VER >= 1400
+
339  /* _MSC_FULL_VER = VVRRPPPPP */
+
340 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
341 # else
+
342  /* _MSC_FULL_VER = VVRRPPPP */
+
343 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
344 # endif
+
345 # endif
+
346 # if defined(_MSC_BUILD)
+
347 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
348 # endif
+
349 
+
350 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
351 # define COMPILER_ID "ADSP"
+
352 #if defined(__VISUALDSPVERSION__)
+
353  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
354 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
355 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
356 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
357 #endif
+
358 
+
359 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
360 # define COMPILER_ID "IAR"
+
361 # if defined(__VER__) && defined(__ICCARM__)
+
362 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
363 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
364 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
365 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
366 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
367 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
368 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
369 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
370 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
371 # endif
+
372 
+
373 
+
374 /* These compilers are either not known or too old to define an
+
375  identification macro. Try to identify the platform and guess that
+
376  it is the native compiler. */
+
377 #elif defined(__hpux) || defined(__hpua)
+
378 # define COMPILER_ID "HP"
+
379 
+
380 #else /* unknown compiler */
+
381 # define COMPILER_ID ""
+
382 #endif
+
383 
+
384 /* Construct the string literal in pieces to prevent the source from
+
385  getting matched. Store it in a pointer rather than an array
+
386  because some compilers will just produce instructions to fill the
+
387  array rather than assigning a pointer to a static array. */
+
388 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
389 #ifdef SIMULATE_ID
+
390 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
391 #endif
+
392 
+
393 #ifdef __QNXNTO__
+
394 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
395 #endif
+
396 
+
397 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
398 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
399 #endif
+
400 
+
401 #define STRINGIFY_HELPER(X) #X
+
402 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
403 
+
404 /* Identify known platforms by name. */
+
405 #if defined(__linux) || defined(__linux__) || defined(linux)
+
406 # define PLATFORM_ID "Linux"
+
407 
+
408 #elif defined(__MSYS__)
+
409 # define PLATFORM_ID "MSYS"
+
410 
+
411 #elif defined(__CYGWIN__)
+
412 # define PLATFORM_ID "Cygwin"
+
413 
+
414 #elif defined(__MINGW32__)
+
415 # define PLATFORM_ID "MinGW"
+
416 
+
417 #elif defined(__APPLE__)
+
418 # define PLATFORM_ID "Darwin"
+
419 
+
420 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
421 # define PLATFORM_ID "Windows"
+
422 
+
423 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
424 # define PLATFORM_ID "FreeBSD"
+
425 
+
426 #elif defined(__NetBSD__) || defined(__NetBSD)
+
427 # define PLATFORM_ID "NetBSD"
+
428 
+
429 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
430 # define PLATFORM_ID "OpenBSD"
+
431 
+
432 #elif defined(__sun) || defined(sun)
+
433 # define PLATFORM_ID "SunOS"
+
434 
+
435 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
436 # define PLATFORM_ID "AIX"
+
437 
+
438 #elif defined(__hpux) || defined(__hpux__)
+
439 # define PLATFORM_ID "HP-UX"
+
440 
+
441 #elif defined(__HAIKU__)
+
442 # define PLATFORM_ID "Haiku"
+
443 
+
444 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
445 # define PLATFORM_ID "BeOS"
+
446 
+
447 #elif defined(__QNX__) || defined(__QNXNTO__)
+
448 # define PLATFORM_ID "QNX"
+
449 
+
450 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
451 # define PLATFORM_ID "Tru64"
+
452 
+
453 #elif defined(__riscos) || defined(__riscos__)
+
454 # define PLATFORM_ID "RISCos"
+
455 
+
456 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
457 # define PLATFORM_ID "SINIX"
+
458 
+
459 #elif defined(__UNIX_SV__)
+
460 # define PLATFORM_ID "UNIX_SV"
+
461 
+
462 #elif defined(__bsdos__)
+
463 # define PLATFORM_ID "BSDOS"
+
464 
+
465 #elif defined(_MPRAS) || defined(MPRAS)
+
466 # define PLATFORM_ID "MP-RAS"
+
467 
+
468 #elif defined(__osf) || defined(__osf__)
+
469 # define PLATFORM_ID "OSF1"
+
470 
+
471 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
472 # define PLATFORM_ID "SCO_SV"
+
473 
+
474 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
475 # define PLATFORM_ID "ULTRIX"
+
476 
+
477 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
478 # define PLATFORM_ID "Xenix"
+
479 
+
480 #elif defined(__WATCOMC__)
+
481 # if defined(__LINUX__)
+
482 # define PLATFORM_ID "Linux"
+
483 
+
484 # elif defined(__DOS__)
+
485 # define PLATFORM_ID "DOS"
+
486 
+
487 # elif defined(__OS2__)
+
488 # define PLATFORM_ID "OS2"
+
489 
+
490 # elif defined(__WINDOWS__)
+
491 # define PLATFORM_ID "Windows3x"
+
492 
+
493 # elif defined(__VXWORKS__)
+
494 # define PLATFORM_ID "VxWorks"
+
495 
+
496 # else /* unknown platform */
+
497 # define PLATFORM_ID
+
498 # endif
+
499 
+
500 #elif defined(__INTEGRITY)
+
501 # if defined(INT_178B)
+
502 # define PLATFORM_ID "Integrity178"
+
503 
+
504 # else /* regular Integrity */
+
505 # define PLATFORM_ID "Integrity"
+
506 # endif
+
507 
+
508 #else /* unknown platform */
+
509 # define PLATFORM_ID
+
510 
+
511 #endif
+
512 
+
513 /* For windows compilers MSVC and Intel we can determine
+
514  the architecture of the compiler being used. This is because
+
515  the compilers do not have flags that can change the architecture,
+
516  but rather depend on which compiler is being used
+
517 */
+
518 #if defined(_WIN32) && defined(_MSC_VER)
+
519 # if defined(_M_IA64)
+
520 # define ARCHITECTURE_ID "IA64"
+
521 
+
522 # elif defined(_M_ARM64EC)
+
523 # define ARCHITECTURE_ID "ARM64EC"
+
524 
+
525 # elif defined(_M_X64) || defined(_M_AMD64)
+
526 # define ARCHITECTURE_ID "x64"
+
527 
+
528 # elif defined(_M_IX86)
+
529 # define ARCHITECTURE_ID "X86"
+
530 
+
531 # elif defined(_M_ARM64)
+
532 # define ARCHITECTURE_ID "ARM64"
+
533 
+
534 # elif defined(_M_ARM)
+
535 # if _M_ARM == 4
+
536 # define ARCHITECTURE_ID "ARMV4I"
+
537 # elif _M_ARM == 5
+
538 # define ARCHITECTURE_ID "ARMV5I"
+
539 # else
+
540 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
541 # endif
+
542 
+
543 # elif defined(_M_MIPS)
+
544 # define ARCHITECTURE_ID "MIPS"
+
545 
+
546 # elif defined(_M_SH)
+
547 # define ARCHITECTURE_ID "SHx"
+
548 
+
549 # else /* unknown architecture */
+
550 # define ARCHITECTURE_ID ""
+
551 # endif
+
552 
+
553 #elif defined(__WATCOMC__)
+
554 # if defined(_M_I86)
+
555 # define ARCHITECTURE_ID "I86"
+
556 
+
557 # elif defined(_M_IX86)
+
558 # define ARCHITECTURE_ID "X86"
+
559 
+
560 # else /* unknown architecture */
+
561 # define ARCHITECTURE_ID ""
+
562 # endif
+
563 
+
564 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
565 # if defined(__ICCARM__)
+
566 # define ARCHITECTURE_ID "ARM"
+
567 
+
568 # elif defined(__ICCRX__)
+
569 # define ARCHITECTURE_ID "RX"
+
570 
+
571 # elif defined(__ICCRH850__)
+
572 # define ARCHITECTURE_ID "RH850"
+
573 
+
574 # elif defined(__ICCRL78__)
+
575 # define ARCHITECTURE_ID "RL78"
+
576 
+
577 # elif defined(__ICCRISCV__)
+
578 # define ARCHITECTURE_ID "RISCV"
+
579 
+
580 # elif defined(__ICCAVR__)
+
581 # define ARCHITECTURE_ID "AVR"
+
582 
+
583 # elif defined(__ICC430__)
+
584 # define ARCHITECTURE_ID "MSP430"
+
585 
+
586 # elif defined(__ICCV850__)
+
587 # define ARCHITECTURE_ID "V850"
+
588 
+
589 # elif defined(__ICC8051__)
+
590 # define ARCHITECTURE_ID "8051"
+
591 
+
592 # elif defined(__ICCSTM8__)
+
593 # define ARCHITECTURE_ID "STM8"
+
594 
+
595 # else /* unknown architecture */
+
596 # define ARCHITECTURE_ID ""
+
597 # endif
+
598 
+
599 #elif defined(__ghs__)
+
600 # if defined(__PPC64__)
+
601 # define ARCHITECTURE_ID "PPC64"
+
602 
+
603 # elif defined(__ppc__)
+
604 # define ARCHITECTURE_ID "PPC"
+
605 
+
606 # elif defined(__ARM__)
+
607 # define ARCHITECTURE_ID "ARM"
+
608 
+
609 # elif defined(__x86_64__)
+
610 # define ARCHITECTURE_ID "x64"
+
611 
+
612 # elif defined(__i386__)
+
613 # define ARCHITECTURE_ID "X86"
+
614 
+
615 # else /* unknown architecture */
+
616 # define ARCHITECTURE_ID ""
+
617 # endif
+
618 
+
619 #elif defined(__TI_COMPILER_VERSION__)
+
620 # if defined(__TI_ARM__)
+
621 # define ARCHITECTURE_ID "ARM"
+
622 
+
623 # elif defined(__MSP430__)
+
624 # define ARCHITECTURE_ID "MSP430"
+
625 
+
626 # elif defined(__TMS320C28XX__)
+
627 # define ARCHITECTURE_ID "TMS320C28x"
+
628 
+
629 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
630 # define ARCHITECTURE_ID "TMS320C6x"
+
631 
+
632 # else /* unknown architecture */
+
633 # define ARCHITECTURE_ID ""
+
634 # endif
+
635 
+
636 #else
+
637 # define ARCHITECTURE_ID
+
638 #endif
+
639 
+
640 /* Convert integer to decimal digit literals. */
+
641 #define DEC(n) \
+
642  ('0' + (((n) / 10000000)%10)), \
+
643  ('0' + (((n) / 1000000)%10)), \
+
644  ('0' + (((n) / 100000)%10)), \
+
645  ('0' + (((n) / 10000)%10)), \
+
646  ('0' + (((n) / 1000)%10)), \
+
647  ('0' + (((n) / 100)%10)), \
+
648  ('0' + (((n) / 10)%10)), \
+
649  ('0' + ((n) % 10))
+
650 
+
651 /* Convert integer to hex digit literals. */
+
652 #define HEX(n) \
+
653  ('0' + ((n)>>28 & 0xF)), \
+
654  ('0' + ((n)>>24 & 0xF)), \
+
655  ('0' + ((n)>>20 & 0xF)), \
+
656  ('0' + ((n)>>16 & 0xF)), \
+
657  ('0' + ((n)>>12 & 0xF)), \
+
658  ('0' + ((n)>>8 & 0xF)), \
+
659  ('0' + ((n)>>4 & 0xF)), \
+
660  ('0' + ((n) & 0xF))
+
661 
+
662 /* Construct a string literal encoding the version number. */
+
663 #ifdef COMPILER_VERSION
+
664 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
665 
+
666 /* Construct a string literal encoding the version number components. */
+
667 #elif defined(COMPILER_VERSION_MAJOR)
+
668 char const info_version[] = {
+
669  'I', 'N', 'F', 'O', ':',
+
670  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
671  COMPILER_VERSION_MAJOR,
+
672 # ifdef COMPILER_VERSION_MINOR
+
673  '.', COMPILER_VERSION_MINOR,
+
674 # ifdef COMPILER_VERSION_PATCH
+
675  '.', COMPILER_VERSION_PATCH,
+
676 # ifdef COMPILER_VERSION_TWEAK
+
677  '.', COMPILER_VERSION_TWEAK,
+
678 # endif
+
679 # endif
+
680 # endif
+
681  ']','\0'};
+
682 #endif
+
683 
+
684 /* Construct a string literal encoding the internal version number. */
+
685 #ifdef COMPILER_VERSION_INTERNAL
+
686 char const info_version_internal[] = {
+
687  'I', 'N', 'F', 'O', ':',
+
688  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
689  'i','n','t','e','r','n','a','l','[',
+
690  COMPILER_VERSION_INTERNAL,']','\0'};
+
691 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
692 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
693 #endif
+
694 
+
695 /* Construct a string literal encoding the version number components. */
+
696 #ifdef SIMULATE_VERSION_MAJOR
+
697 char const info_simulate_version[] = {
+
698  'I', 'N', 'F', 'O', ':',
+
699  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
700  SIMULATE_VERSION_MAJOR,
+
701 # ifdef SIMULATE_VERSION_MINOR
+
702  '.', SIMULATE_VERSION_MINOR,
+
703 # ifdef SIMULATE_VERSION_PATCH
+
704  '.', SIMULATE_VERSION_PATCH,
+
705 # ifdef SIMULATE_VERSION_TWEAK
+
706  '.', SIMULATE_VERSION_TWEAK,
+
707 # endif
+
708 # endif
+
709 # endif
+
710  ']','\0'};
+
711 #endif
+
712 
+
713 /* Construct the string literal in pieces to prevent the source from
+
714  getting matched. Store it in a pointer rather than an array
+
715  because some compilers will just produce instructions to fill the
+
716  array rather than assigning a pointer to a static array. */
+
717 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
718 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
719 
+
720 
+
721 
+
722 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
723 # if defined(__INTEL_CXX11_MODE__)
+
724 # if defined(__cpp_aggregate_nsdmi)
+
725 # define CXX_STD 201402L
+
726 # else
+
727 # define CXX_STD 201103L
+
728 # endif
+
729 # else
+
730 # define CXX_STD 199711L
+
731 # endif
+
732 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
733 # define CXX_STD _MSVC_LANG
+
734 #else
+
735 # define CXX_STD __cplusplus
+
736 #endif
+
737 
+
738 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
739 #if CXX_STD > 202002L
+
740  "23"
+
741 #elif CXX_STD > 201703L
+
742  "20"
+
743 #elif CXX_STD >= 201703L
+
744  "17"
+
745 #elif CXX_STD >= 201402L
+
746  "14"
+
747 #elif CXX_STD >= 201103L
+
748  "11"
+
749 #else
+
750  "98"
+
751 #endif
+
752 "]";
+
753 
+
754 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
755 /* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */
+
756 #if (defined(__clang__) || defined(__GNUC__) || \
+
757  defined(__TI_COMPILER_VERSION__)) && \
+
758  !defined(__STRICT_ANSI__) && !defined(_MSC_VER)
+
759  "ON"
+
760 #else
+
761  "OFF"
+
762 #endif
+
763 "]";
+
764 
+
765 /*--------------------------------------------------------------------------*/
+
766 
+
767 int main(int argc, char* argv[])
+
768 {
+
769  int require = 0;
+
770  require += info_compiler[argc];
+
771  require += info_platform[argc];
+
772 #ifdef COMPILER_VERSION_MAJOR
+
773  require += info_version[argc];
+
774 #endif
+
775 #ifdef COMPILER_VERSION_INTERNAL
+
776  require += info_version_internal[argc];
+
777 #endif
+
778 #ifdef SIMULATE_ID
+
779  require += info_simulate[argc];
+
780 #endif
+
781 #ifdef SIMULATE_VERSION_MAJOR
+
782  require += info_simulate_version[argc];
+
783 #endif
+
784 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
785  require += info_cray[argc];
+
786 #endif
+
787  require += info_language_standard_default[argc];
+
788  require += info_language_extensions_default[argc];
+
789  (void)argv;
+
790  return require;
+
791 }
+
+
+ + + + diff --git a/docs/_release___o_f_f_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_f_f_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..b2f3d0f --- /dev/null +++ b/docs/_release___o_f_f_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,929 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_OFF/CMakeFiles/3.24.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__SCO_VERSION__)
+
273 # define COMPILER_ID "SCO"
+
274 
+
275 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
276 # define COMPILER_ID "ARMCC"
+
277 #if __ARMCC_VERSION >= 1000000
+
278  /* __ARMCC_VERSION = VRRPPPP */
+
279  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
280  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
281  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
282 #else
+
283  /* __ARMCC_VERSION = VRPPPP */
+
284  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
285  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
286  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
287 #endif
+
288 
+
289 
+
290 #elif defined(__clang__) && defined(__apple_build_version__)
+
291 # define COMPILER_ID "AppleClang"
+
292 # if defined(_MSC_VER)
+
293 # define SIMULATE_ID "MSVC"
+
294 # endif
+
295 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
296 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
297 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
298 # if defined(_MSC_VER)
+
299  /* _MSC_VER = VVRR */
+
300 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
301 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
302 # endif
+
303 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
304 
+
305 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
306 # define COMPILER_ID "ARMClang"
+
307  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
308  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
309  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
310 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
311 
+
312 #elif defined(__clang__)
+
313 # define COMPILER_ID "Clang"
+
314 # if defined(_MSC_VER)
+
315 # define SIMULATE_ID "MSVC"
+
316 # endif
+
317 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
318 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
319 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
320 # if defined(_MSC_VER)
+
321  /* _MSC_VER = VVRR */
+
322 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
323 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
324 # endif
+
325 
+
326 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
327 # define COMPILER_ID "LCC"
+
328 # define COMPILER_VERSION_MAJOR DEC(1)
+
329 # if defined(__LCC__)
+
330 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
331 # endif
+
332 # if defined(__LCC_MINOR__)
+
333 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
334 # endif
+
335 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
336 # define SIMULATE_ID "GNU"
+
337 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
338 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
339 # if defined(__GNUC_PATCHLEVEL__)
+
340 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
341 # endif
+
342 # endif
+
343 
+
344 #elif defined(__GNUC__) || defined(__GNUG__)
+
345 # define COMPILER_ID "GNU"
+
346 # if defined(__GNUC__)
+
347 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
348 # else
+
349 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
350 # endif
+
351 # if defined(__GNUC_MINOR__)
+
352 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
353 # endif
+
354 # if defined(__GNUC_PATCHLEVEL__)
+
355 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
356 # endif
+
357 
+
358 #elif defined(_MSC_VER)
+
359 # define COMPILER_ID "MSVC"
+
360  /* _MSC_VER = VVRR */
+
361 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
362 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
363 # if defined(_MSC_FULL_VER)
+
364 # if _MSC_VER >= 1400
+
365  /* _MSC_FULL_VER = VVRRPPPPP */
+
366 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
367 # else
+
368  /* _MSC_FULL_VER = VVRRPPPP */
+
369 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
370 # endif
+
371 # endif
+
372 # if defined(_MSC_BUILD)
+
373 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
374 # endif
+
375 
+
376 #elif defined(_ADI_COMPILER)
+
377 # define COMPILER_ID "ADSP"
+
378 #if defined(__VERSIONNUM__)
+
379  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
380 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
381 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
382 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
383 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
384 #endif
+
385 
+
386 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
387 # define COMPILER_ID "IAR"
+
388 # if defined(__VER__) && defined(__ICCARM__)
+
389 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
390 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
391 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
392 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
393 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
394 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
395 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
396 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
397 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
398 # endif
+
399 
+
400 
+
401 /* These compilers are either not known or too old to define an
+
402  identification macro. Try to identify the platform and guess that
+
403  it is the native compiler. */
+
404 #elif defined(__hpux) || defined(__hpua)
+
405 # define COMPILER_ID "HP"
+
406 
+
407 #else /* unknown compiler */
+
408 # define COMPILER_ID ""
+
409 #endif
+
410 
+
411 /* Construct the string literal in pieces to prevent the source from
+
412  getting matched. Store it in a pointer rather than an array
+
413  because some compilers will just produce instructions to fill the
+
414  array rather than assigning a pointer to a static array. */
+
415 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
416 #ifdef SIMULATE_ID
+
417 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
418 #endif
+
419 
+
420 #ifdef __QNXNTO__
+
421 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
422 #endif
+
423 
+
424 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
425 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
426 #endif
+
427 
+
428 #define STRINGIFY_HELPER(X) #X
+
429 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
430 
+
431 /* Identify known platforms by name. */
+
432 #if defined(__linux) || defined(__linux__) || defined(linux)
+
433 # define PLATFORM_ID "Linux"
+
434 
+
435 #elif defined(__MSYS__)
+
436 # define PLATFORM_ID "MSYS"
+
437 
+
438 #elif defined(__CYGWIN__)
+
439 # define PLATFORM_ID "Cygwin"
+
440 
+
441 #elif defined(__MINGW32__)
+
442 # define PLATFORM_ID "MinGW"
+
443 
+
444 #elif defined(__APPLE__)
+
445 # define PLATFORM_ID "Darwin"
+
446 
+
447 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
448 # define PLATFORM_ID "Windows"
+
449 
+
450 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
451 # define PLATFORM_ID "FreeBSD"
+
452 
+
453 #elif defined(__NetBSD__) || defined(__NetBSD)
+
454 # define PLATFORM_ID "NetBSD"
+
455 
+
456 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
457 # define PLATFORM_ID "OpenBSD"
+
458 
+
459 #elif defined(__sun) || defined(sun)
+
460 # define PLATFORM_ID "SunOS"
+
461 
+
462 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
463 # define PLATFORM_ID "AIX"
+
464 
+
465 #elif defined(__hpux) || defined(__hpux__)
+
466 # define PLATFORM_ID "HP-UX"
+
467 
+
468 #elif defined(__HAIKU__)
+
469 # define PLATFORM_ID "Haiku"
+
470 
+
471 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
472 # define PLATFORM_ID "BeOS"
+
473 
+
474 #elif defined(__QNX__) || defined(__QNXNTO__)
+
475 # define PLATFORM_ID "QNX"
+
476 
+
477 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
478 # define PLATFORM_ID "Tru64"
+
479 
+
480 #elif defined(__riscos) || defined(__riscos__)
+
481 # define PLATFORM_ID "RISCos"
+
482 
+
483 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
484 # define PLATFORM_ID "SINIX"
+
485 
+
486 #elif defined(__UNIX_SV__)
+
487 # define PLATFORM_ID "UNIX_SV"
+
488 
+
489 #elif defined(__bsdos__)
+
490 # define PLATFORM_ID "BSDOS"
+
491 
+
492 #elif defined(_MPRAS) || defined(MPRAS)
+
493 # define PLATFORM_ID "MP-RAS"
+
494 
+
495 #elif defined(__osf) || defined(__osf__)
+
496 # define PLATFORM_ID "OSF1"
+
497 
+
498 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
499 # define PLATFORM_ID "SCO_SV"
+
500 
+
501 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
502 # define PLATFORM_ID "ULTRIX"
+
503 
+
504 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
505 # define PLATFORM_ID "Xenix"
+
506 
+
507 #elif defined(__WATCOMC__)
+
508 # if defined(__LINUX__)
+
509 # define PLATFORM_ID "Linux"
+
510 
+
511 # elif defined(__DOS__)
+
512 # define PLATFORM_ID "DOS"
+
513 
+
514 # elif defined(__OS2__)
+
515 # define PLATFORM_ID "OS2"
+
516 
+
517 # elif defined(__WINDOWS__)
+
518 # define PLATFORM_ID "Windows3x"
+
519 
+
520 # elif defined(__VXWORKS__)
+
521 # define PLATFORM_ID "VxWorks"
+
522 
+
523 # else /* unknown platform */
+
524 # define PLATFORM_ID
+
525 # endif
+
526 
+
527 #elif defined(__INTEGRITY)
+
528 # if defined(INT_178B)
+
529 # define PLATFORM_ID "Integrity178"
+
530 
+
531 # else /* regular Integrity */
+
532 # define PLATFORM_ID "Integrity"
+
533 # endif
+
534 
+
535 # elif defined(_ADI_COMPILER)
+
536 # define PLATFORM_ID "ADSP"
+
537 
+
538 #else /* unknown platform */
+
539 # define PLATFORM_ID
+
540 
+
541 #endif
+
542 
+
543 /* For windows compilers MSVC and Intel we can determine
+
544  the architecture of the compiler being used. This is because
+
545  the compilers do not have flags that can change the architecture,
+
546  but rather depend on which compiler is being used
+
547 */
+
548 #if defined(_WIN32) && defined(_MSC_VER)
+
549 # if defined(_M_IA64)
+
550 # define ARCHITECTURE_ID "IA64"
+
551 
+
552 # elif defined(_M_ARM64EC)
+
553 # define ARCHITECTURE_ID "ARM64EC"
+
554 
+
555 # elif defined(_M_X64) || defined(_M_AMD64)
+
556 # define ARCHITECTURE_ID "x64"
+
557 
+
558 # elif defined(_M_IX86)
+
559 # define ARCHITECTURE_ID "X86"
+
560 
+
561 # elif defined(_M_ARM64)
+
562 # define ARCHITECTURE_ID "ARM64"
+
563 
+
564 # elif defined(_M_ARM)
+
565 # if _M_ARM == 4
+
566 # define ARCHITECTURE_ID "ARMV4I"
+
567 # elif _M_ARM == 5
+
568 # define ARCHITECTURE_ID "ARMV5I"
+
569 # else
+
570 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
571 # endif
+
572 
+
573 # elif defined(_M_MIPS)
+
574 # define ARCHITECTURE_ID "MIPS"
+
575 
+
576 # elif defined(_M_SH)
+
577 # define ARCHITECTURE_ID "SHx"
+
578 
+
579 # else /* unknown architecture */
+
580 # define ARCHITECTURE_ID ""
+
581 # endif
+
582 
+
583 #elif defined(__WATCOMC__)
+
584 # if defined(_M_I86)
+
585 # define ARCHITECTURE_ID "I86"
+
586 
+
587 # elif defined(_M_IX86)
+
588 # define ARCHITECTURE_ID "X86"
+
589 
+
590 # else /* unknown architecture */
+
591 # define ARCHITECTURE_ID ""
+
592 # endif
+
593 
+
594 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
595 # if defined(__ICCARM__)
+
596 # define ARCHITECTURE_ID "ARM"
+
597 
+
598 # elif defined(__ICCRX__)
+
599 # define ARCHITECTURE_ID "RX"
+
600 
+
601 # elif defined(__ICCRH850__)
+
602 # define ARCHITECTURE_ID "RH850"
+
603 
+
604 # elif defined(__ICCRL78__)
+
605 # define ARCHITECTURE_ID "RL78"
+
606 
+
607 # elif defined(__ICCRISCV__)
+
608 # define ARCHITECTURE_ID "RISCV"
+
609 
+
610 # elif defined(__ICCAVR__)
+
611 # define ARCHITECTURE_ID "AVR"
+
612 
+
613 # elif defined(__ICC430__)
+
614 # define ARCHITECTURE_ID "MSP430"
+
615 
+
616 # elif defined(__ICCV850__)
+
617 # define ARCHITECTURE_ID "V850"
+
618 
+
619 # elif defined(__ICC8051__)
+
620 # define ARCHITECTURE_ID "8051"
+
621 
+
622 # elif defined(__ICCSTM8__)
+
623 # define ARCHITECTURE_ID "STM8"
+
624 
+
625 # else /* unknown architecture */
+
626 # define ARCHITECTURE_ID ""
+
627 # endif
+
628 
+
629 #elif defined(__ghs__)
+
630 # if defined(__PPC64__)
+
631 # define ARCHITECTURE_ID "PPC64"
+
632 
+
633 # elif defined(__ppc__)
+
634 # define ARCHITECTURE_ID "PPC"
+
635 
+
636 # elif defined(__ARM__)
+
637 # define ARCHITECTURE_ID "ARM"
+
638 
+
639 # elif defined(__x86_64__)
+
640 # define ARCHITECTURE_ID "x64"
+
641 
+
642 # elif defined(__i386__)
+
643 # define ARCHITECTURE_ID "X86"
+
644 
+
645 # else /* unknown architecture */
+
646 # define ARCHITECTURE_ID ""
+
647 # endif
+
648 
+
649 #elif defined(__TI_COMPILER_VERSION__)
+
650 # if defined(__TI_ARM__)
+
651 # define ARCHITECTURE_ID "ARM"
+
652 
+
653 # elif defined(__MSP430__)
+
654 # define ARCHITECTURE_ID "MSP430"
+
655 
+
656 # elif defined(__TMS320C28XX__)
+
657 # define ARCHITECTURE_ID "TMS320C28x"
+
658 
+
659 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
660 # define ARCHITECTURE_ID "TMS320C6x"
+
661 
+
662 # else /* unknown architecture */
+
663 # define ARCHITECTURE_ID ""
+
664 # endif
+
665 
+
666 # elif defined(__ADSPSHARC__)
+
667 # define ARCHITECTURE_ID "SHARC"
+
668 
+
669 # elif defined(__ADSPBLACKFIN__)
+
670 # define ARCHITECTURE_ID "Blackfin"
+
671 
+
672 #else
+
673 # define ARCHITECTURE_ID
+
674 #endif
+
675 
+
676 /* Convert integer to decimal digit literals. */
+
677 #define DEC(n) \
+
678  ('0' + (((n) / 10000000)%10)), \
+
679  ('0' + (((n) / 1000000)%10)), \
+
680  ('0' + (((n) / 100000)%10)), \
+
681  ('0' + (((n) / 10000)%10)), \
+
682  ('0' + (((n) / 1000)%10)), \
+
683  ('0' + (((n) / 100)%10)), \
+
684  ('0' + (((n) / 10)%10)), \
+
685  ('0' + ((n) % 10))
+
686 
+
687 /* Convert integer to hex digit literals. */
+
688 #define HEX(n) \
+
689  ('0' + ((n)>>28 & 0xF)), \
+
690  ('0' + ((n)>>24 & 0xF)), \
+
691  ('0' + ((n)>>20 & 0xF)), \
+
692  ('0' + ((n)>>16 & 0xF)), \
+
693  ('0' + ((n)>>12 & 0xF)), \
+
694  ('0' + ((n)>>8 & 0xF)), \
+
695  ('0' + ((n)>>4 & 0xF)), \
+
696  ('0' + ((n) & 0xF))
+
697 
+
698 /* Construct a string literal encoding the version number. */
+
699 #ifdef COMPILER_VERSION
+
700 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
701 
+
702 /* Construct a string literal encoding the version number components. */
+
703 #elif defined(COMPILER_VERSION_MAJOR)
+
704 char const info_version[] = {
+
705  'I', 'N', 'F', 'O', ':',
+
706  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
707  COMPILER_VERSION_MAJOR,
+
708 # ifdef COMPILER_VERSION_MINOR
+
709  '.', COMPILER_VERSION_MINOR,
+
710 # ifdef COMPILER_VERSION_PATCH
+
711  '.', COMPILER_VERSION_PATCH,
+
712 # ifdef COMPILER_VERSION_TWEAK
+
713  '.', COMPILER_VERSION_TWEAK,
+
714 # endif
+
715 # endif
+
716 # endif
+
717  ']','\0'};
+
718 #endif
+
719 
+
720 /* Construct a string literal encoding the internal version number. */
+
721 #ifdef COMPILER_VERSION_INTERNAL
+
722 char const info_version_internal[] = {
+
723  'I', 'N', 'F', 'O', ':',
+
724  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
725  'i','n','t','e','r','n','a','l','[',
+
726  COMPILER_VERSION_INTERNAL,']','\0'};
+
727 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
728 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
729 #endif
+
730 
+
731 /* Construct a string literal encoding the version number components. */
+
732 #ifdef SIMULATE_VERSION_MAJOR
+
733 char const info_simulate_version[] = {
+
734  'I', 'N', 'F', 'O', ':',
+
735  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
736  SIMULATE_VERSION_MAJOR,
+
737 # ifdef SIMULATE_VERSION_MINOR
+
738  '.', SIMULATE_VERSION_MINOR,
+
739 # ifdef SIMULATE_VERSION_PATCH
+
740  '.', SIMULATE_VERSION_PATCH,
+
741 # ifdef SIMULATE_VERSION_TWEAK
+
742  '.', SIMULATE_VERSION_TWEAK,
+
743 # endif
+
744 # endif
+
745 # endif
+
746  ']','\0'};
+
747 #endif
+
748 
+
749 /* Construct the string literal in pieces to prevent the source from
+
750  getting matched. Store it in a pointer rather than an array
+
751  because some compilers will just produce instructions to fill the
+
752  array rather than assigning a pointer to a static array. */
+
753 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
754 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
755 
+
756 
+
757 
+
758 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
759 # if defined(__INTEL_CXX11_MODE__)
+
760 # if defined(__cpp_aggregate_nsdmi)
+
761 # define CXX_STD 201402L
+
762 # else
+
763 # define CXX_STD 201103L
+
764 # endif
+
765 # else
+
766 # define CXX_STD 199711L
+
767 # endif
+
768 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
769 # define CXX_STD _MSVC_LANG
+
770 #else
+
771 # define CXX_STD __cplusplus
+
772 #endif
+
773 
+
774 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
775 #if CXX_STD > 202002L
+
776  "23"
+
777 #elif CXX_STD > 201703L
+
778  "20"
+
779 #elif CXX_STD >= 201703L
+
780  "17"
+
781 #elif CXX_STD >= 201402L
+
782  "14"
+
783 #elif CXX_STD >= 201103L
+
784  "11"
+
785 #else
+
786  "98"
+
787 #endif
+
788 "]";
+
789 
+
790 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
791 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
792  defined(__TI_COMPILER_VERSION__)) && \
+
793  !defined(__STRICT_ANSI__)
+
794  "ON"
+
795 #else
+
796  "OFF"
+
797 #endif
+
798 "]";
+
799 
+
800 /*--------------------------------------------------------------------------*/
+
801 
+
802 int main(int argc, char* argv[])
+
803 {
+
804  int require = 0;
+
805  require += info_compiler[argc];
+
806  require += info_platform[argc];
+
807 #ifdef COMPILER_VERSION_MAJOR
+
808  require += info_version[argc];
+
809 #endif
+
810 #ifdef COMPILER_VERSION_INTERNAL
+
811  require += info_version_internal[argc];
+
812 #endif
+
813 #ifdef SIMULATE_ID
+
814  require += info_simulate[argc];
+
815 #endif
+
816 #ifdef SIMULATE_VERSION_MAJOR
+
817  require += info_simulate_version[argc];
+
818 #endif
+
819 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
820  require += info_cray[argc];
+
821 #endif
+
822  require += info_language_standard_default[argc];
+
823  require += info_language_extensions_default[argc];
+
824  (void)argv;
+
825  return require;
+
826 }
+
+
+ + + + diff --git a/docs/_release___o_f_f_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_f_f_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..95975d7 --- /dev/null +++ b/docs/_release___o_f_f_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_OFF/CMakeFiles/3.25.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/_release___o_f_f_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_f_f_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..49fc547 --- /dev/null +++ b/docs/_release___o_f_f_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_OFF/CMakeFiles/3.25.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/_release___o_n_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_n_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..d25adc1 --- /dev/null +++ b/docs/_release___o_n_2_c_make_files_23_810_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,679 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_ON/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23  /* __INTEL_COMPILER = VRP */
+
24 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
25 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
26 # if defined(__INTEL_COMPILER_UPDATE)
+
27 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
28 # else
+
29 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
30 # endif
+
31 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
32  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
33 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
34 # endif
+
35 # if defined(_MSC_VER)
+
36  /* _MSC_VER = VVRR */
+
37 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
38 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
39 # endif
+
40 
+
41 #elif defined(__PATHCC__)
+
42 # define COMPILER_ID "PathScale"
+
43 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
44 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
45 # if defined(__PATHCC_PATCHLEVEL__)
+
46 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
47 # endif
+
48 
+
49 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
50 # define COMPILER_ID "Embarcadero"
+
51 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
52 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
53 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
54 
+
55 #elif defined(__BORLANDC__)
+
56 # define COMPILER_ID "Borland"
+
57  /* __BORLANDC__ = 0xVRR */
+
58 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
59 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
60 
+
61 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
62 # define COMPILER_ID "Watcom"
+
63  /* __WATCOMC__ = VVRR */
+
64 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
65 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
66 # if (__WATCOMC__ % 10) > 0
+
67 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
68 # endif
+
69 
+
70 #elif defined(__WATCOMC__)
+
71 # define COMPILER_ID "OpenWatcom"
+
72  /* __WATCOMC__ = VVRP + 1100 */
+
73 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
74 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
75 # if (__WATCOMC__ % 10) > 0
+
76 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
77 # endif
+
78 
+
79 #elif defined(__SUNPRO_CC)
+
80 # define COMPILER_ID "SunPro"
+
81 # if __SUNPRO_CC >= 0x5100
+
82  /* __SUNPRO_CC = 0xVRRP */
+
83 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
84 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
85 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
86 # else
+
87  /* __SUNPRO_CC = 0xVRP */
+
88 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
89 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
90 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
91 # endif
+
92 
+
93 #elif defined(__HP_aCC)
+
94 # define COMPILER_ID "HP"
+
95  /* __HP_aCC = VVRRPP */
+
96 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
97 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
98 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
99 
+
100 #elif defined(__DECCXX)
+
101 # define COMPILER_ID "Compaq"
+
102  /* __DECCXX_VER = VVRRTPPPP */
+
103 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
104 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
105 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
106 
+
107 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
108 # define COMPILER_ID "zOS"
+
109  /* __IBMCPP__ = VRP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
111 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
112 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
113 
+
114 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
115 # define COMPILER_ID "XL"
+
116  /* __IBMCPP__ = VRP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
118 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
119 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
120 
+
121 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
122 # define COMPILER_ID "VisualAge"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__PGI)
+
129 # define COMPILER_ID "PGI"
+
130 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
131 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
132 # if defined(__PGIC_PATCHLEVEL__)
+
133 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
134 # endif
+
135 
+
136 #elif defined(_CRAYC)
+
137 # define COMPILER_ID "Cray"
+
138 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
139 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
140 
+
141 #elif defined(__TI_COMPILER_VERSION__)
+
142 # define COMPILER_ID "TI"
+
143  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
144 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
145 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
146 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
147 
+
148 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
149 # define COMPILER_ID "Fujitsu"
+
150 
+
151 #elif defined(__SCO_VERSION__)
+
152 # define COMPILER_ID "SCO"
+
153 
+
154 #elif defined(__clang__) && defined(__apple_build_version__)
+
155 # define COMPILER_ID "AppleClang"
+
156 # if defined(_MSC_VER)
+
157 # define SIMULATE_ID "MSVC"
+
158 # endif
+
159 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
160 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
161 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
162 # if defined(_MSC_VER)
+
163  /* _MSC_VER = VVRR */
+
164 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
165 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
166 # endif
+
167 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
168 
+
169 #elif defined(__clang__)
+
170 # define COMPILER_ID "Clang"
+
171 # if defined(_MSC_VER)
+
172 # define SIMULATE_ID "MSVC"
+
173 # endif
+
174 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
175 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
176 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
177 # if defined(_MSC_VER)
+
178  /* _MSC_VER = VVRR */
+
179 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
180 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
181 # endif
+
182 
+
183 #elif defined(__GNUC__) || defined(__GNUG__)
+
184 # define COMPILER_ID "GNU"
+
185 # if defined(__GNUC__)
+
186 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
187 # else
+
188 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
189 # endif
+
190 # if defined(__GNUC_MINOR__)
+
191 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
192 # endif
+
193 # if defined(__GNUC_PATCHLEVEL__)
+
194 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
195 # endif
+
196 
+
197 #elif defined(_MSC_VER)
+
198 # define COMPILER_ID "MSVC"
+
199  /* _MSC_VER = VVRR */
+
200 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
201 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
202 # if defined(_MSC_FULL_VER)
+
203 # if _MSC_VER >= 1400
+
204  /* _MSC_FULL_VER = VVRRPPPPP */
+
205 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
206 # else
+
207  /* _MSC_FULL_VER = VVRRPPPP */
+
208 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
209 # endif
+
210 # endif
+
211 # if defined(_MSC_BUILD)
+
212 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
213 # endif
+
214 
+
215 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
216 # define COMPILER_ID "ADSP"
+
217 #if defined(__VISUALDSPVERSION__)
+
218  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
219 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
220 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
221 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
222 #endif
+
223 
+
224 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
225 # define COMPILER_ID "IAR"
+
226 # if defined(__VER__)
+
227 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
230 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
231 # endif
+
232 
+
233 #elif defined(__ARMCC_VERSION)
+
234 # define COMPILER_ID "ARMCC"
+
235 #if __ARMCC_VERSION >= 1000000
+
236  /* __ARMCC_VERSION = VRRPPPP */
+
237  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
238  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
239  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
240 #else
+
241  /* __ARMCC_VERSION = VRPPPP */
+
242  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
243  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
244  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
245 #endif
+
246 
+
247 
+
248 #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
+
249 # define COMPILER_ID "MIPSpro"
+
250 # if defined(_SGI_COMPILER_VERSION)
+
251  /* _SGI_COMPILER_VERSION = VRP */
+
252 # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
+
253 # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
+
254 # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
+
255 # else
+
256  /* _COMPILER_VERSION = VRP */
+
257 # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
+
258 # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
+
259 # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
+
260 # endif
+
261 
+
262 
+
263 /* These compilers are either not known or too old to define an
+
264  identification macro. Try to identify the platform and guess that
+
265  it is the native compiler. */
+
266 #elif defined(__sgi)
+
267 # define COMPILER_ID "MIPSpro"
+
268 
+
269 #elif defined(__hpux) || defined(__hpua)
+
270 # define COMPILER_ID "HP"
+
271 
+
272 #else /* unknown compiler */
+
273 # define COMPILER_ID ""
+
274 #endif
+
275 
+
276 /* Construct the string literal in pieces to prevent the source from
+
277  getting matched. Store it in a pointer rather than an array
+
278  because some compilers will just produce instructions to fill the
+
279  array rather than assigning a pointer to a static array. */
+
280 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
281 #ifdef SIMULATE_ID
+
282 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
283 #endif
+
284 
+
285 #ifdef __QNXNTO__
+
286 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
287 #endif
+
288 
+
289 #if defined(__CRAYXE) || defined(__CRAYXC)
+
290 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
291 #endif
+
292 
+
293 #define STRINGIFY_HELPER(X) #X
+
294 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
295 
+
296 /* Identify known platforms by name. */
+
297 #if defined(__linux) || defined(__linux__) || defined(linux)
+
298 # define PLATFORM_ID "Linux"
+
299 
+
300 #elif defined(__CYGWIN__)
+
301 # define PLATFORM_ID "Cygwin"
+
302 
+
303 #elif defined(__MINGW32__)
+
304 # define PLATFORM_ID "MinGW"
+
305 
+
306 #elif defined(__APPLE__)
+
307 # define PLATFORM_ID "Darwin"
+
308 
+
309 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
310 # define PLATFORM_ID "Windows"
+
311 
+
312 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
313 # define PLATFORM_ID "FreeBSD"
+
314 
+
315 #elif defined(__NetBSD__) || defined(__NetBSD)
+
316 # define PLATFORM_ID "NetBSD"
+
317 
+
318 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
319 # define PLATFORM_ID "OpenBSD"
+
320 
+
321 #elif defined(__sun) || defined(sun)
+
322 # define PLATFORM_ID "SunOS"
+
323 
+
324 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
325 # define PLATFORM_ID "AIX"
+
326 
+
327 #elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
+
328 # define PLATFORM_ID "IRIX"
+
329 
+
330 #elif defined(__hpux) || defined(__hpux__)
+
331 # define PLATFORM_ID "HP-UX"
+
332 
+
333 #elif defined(__HAIKU__)
+
334 # define PLATFORM_ID "Haiku"
+
335 
+
336 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
337 # define PLATFORM_ID "BeOS"
+
338 
+
339 #elif defined(__QNX__) || defined(__QNXNTO__)
+
340 # define PLATFORM_ID "QNX"
+
341 
+
342 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
343 # define PLATFORM_ID "Tru64"
+
344 
+
345 #elif defined(__riscos) || defined(__riscos__)
+
346 # define PLATFORM_ID "RISCos"
+
347 
+
348 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
349 # define PLATFORM_ID "SINIX"
+
350 
+
351 #elif defined(__UNIX_SV__)
+
352 # define PLATFORM_ID "UNIX_SV"
+
353 
+
354 #elif defined(__bsdos__)
+
355 # define PLATFORM_ID "BSDOS"
+
356 
+
357 #elif defined(_MPRAS) || defined(MPRAS)
+
358 # define PLATFORM_ID "MP-RAS"
+
359 
+
360 #elif defined(__osf) || defined(__osf__)
+
361 # define PLATFORM_ID "OSF1"
+
362 
+
363 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
364 # define PLATFORM_ID "SCO_SV"
+
365 
+
366 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
367 # define PLATFORM_ID "ULTRIX"
+
368 
+
369 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
370 # define PLATFORM_ID "Xenix"
+
371 
+
372 #elif defined(__WATCOMC__)
+
373 # if defined(__LINUX__)
+
374 # define PLATFORM_ID "Linux"
+
375 
+
376 # elif defined(__DOS__)
+
377 # define PLATFORM_ID "DOS"
+
378 
+
379 # elif defined(__OS2__)
+
380 # define PLATFORM_ID "OS2"
+
381 
+
382 # elif defined(__WINDOWS__)
+
383 # define PLATFORM_ID "Windows3x"
+
384 
+
385 # else /* unknown platform */
+
386 # define PLATFORM_ID
+
387 # endif
+
388 
+
389 #else /* unknown platform */
+
390 # define PLATFORM_ID
+
391 
+
392 #endif
+
393 
+
394 /* For windows compilers MSVC and Intel we can determine
+
395  the architecture of the compiler being used. This is because
+
396  the compilers do not have flags that can change the architecture,
+
397  but rather depend on which compiler is being used
+
398 */
+
399 #if defined(_WIN32) && defined(_MSC_VER)
+
400 # if defined(_M_IA64)
+
401 # define ARCHITECTURE_ID "IA64"
+
402 
+
403 # elif defined(_M_X64) || defined(_M_AMD64)
+
404 # define ARCHITECTURE_ID "x64"
+
405 
+
406 # elif defined(_M_IX86)
+
407 # define ARCHITECTURE_ID "X86"
+
408 
+
409 # elif defined(_M_ARM64)
+
410 # define ARCHITECTURE_ID "ARM64"
+
411 
+
412 # elif defined(_M_ARM)
+
413 # if _M_ARM == 4
+
414 # define ARCHITECTURE_ID "ARMV4I"
+
415 # elif _M_ARM == 5
+
416 # define ARCHITECTURE_ID "ARMV5I"
+
417 # else
+
418 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
419 # endif
+
420 
+
421 # elif defined(_M_MIPS)
+
422 # define ARCHITECTURE_ID "MIPS"
+
423 
+
424 # elif defined(_M_SH)
+
425 # define ARCHITECTURE_ID "SHx"
+
426 
+
427 # else /* unknown architecture */
+
428 # define ARCHITECTURE_ID ""
+
429 # endif
+
430 
+
431 #elif defined(__WATCOMC__)
+
432 # if defined(_M_I86)
+
433 # define ARCHITECTURE_ID "I86"
+
434 
+
435 # elif defined(_M_IX86)
+
436 # define ARCHITECTURE_ID "X86"
+
437 
+
438 # else /* unknown architecture */
+
439 # define ARCHITECTURE_ID ""
+
440 # endif
+
441 
+
442 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
443 # if defined(__ICCARM__)
+
444 # define ARCHITECTURE_ID "ARM"
+
445 
+
446 # elif defined(__ICCAVR__)
+
447 # define ARCHITECTURE_ID "AVR"
+
448 
+
449 # else /* unknown architecture */
+
450 # define ARCHITECTURE_ID ""
+
451 # endif
+
452 #else
+
453 # define ARCHITECTURE_ID
+
454 #endif
+
455 
+
456 /* Convert integer to decimal digit literals. */
+
457 #define DEC(n) \
+
458  ('0' + (((n) / 10000000)%10)), \
+
459  ('0' + (((n) / 1000000)%10)), \
+
460  ('0' + (((n) / 100000)%10)), \
+
461  ('0' + (((n) / 10000)%10)), \
+
462  ('0' + (((n) / 1000)%10)), \
+
463  ('0' + (((n) / 100)%10)), \
+
464  ('0' + (((n) / 10)%10)), \
+
465  ('0' + ((n) % 10))
+
466 
+
467 /* Convert integer to hex digit literals. */
+
468 #define HEX(n) \
+
469  ('0' + ((n)>>28 & 0xF)), \
+
470  ('0' + ((n)>>24 & 0xF)), \
+
471  ('0' + ((n)>>20 & 0xF)), \
+
472  ('0' + ((n)>>16 & 0xF)), \
+
473  ('0' + ((n)>>12 & 0xF)), \
+
474  ('0' + ((n)>>8 & 0xF)), \
+
475  ('0' + ((n)>>4 & 0xF)), \
+
476  ('0' + ((n) & 0xF))
+
477 
+
478 /* Construct a string literal encoding the version number components. */
+
479 #ifdef COMPILER_VERSION_MAJOR
+
480 char const info_version[] = {
+
481  'I', 'N', 'F', 'O', ':',
+
482  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
483  COMPILER_VERSION_MAJOR,
+
484 # ifdef COMPILER_VERSION_MINOR
+
485  '.', COMPILER_VERSION_MINOR,
+
486 # ifdef COMPILER_VERSION_PATCH
+
487  '.', COMPILER_VERSION_PATCH,
+
488 # ifdef COMPILER_VERSION_TWEAK
+
489  '.', COMPILER_VERSION_TWEAK,
+
490 # endif
+
491 # endif
+
492 # endif
+
493  ']','\0'};
+
494 #endif
+
495 
+
496 /* Construct a string literal encoding the internal version number. */
+
497 #ifdef COMPILER_VERSION_INTERNAL
+
498 char const info_version_internal[] = {
+
499  'I', 'N', 'F', 'O', ':',
+
500  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
501  'i','n','t','e','r','n','a','l','[',
+
502  COMPILER_VERSION_INTERNAL,']','\0'};
+
503 #endif
+
504 
+
505 /* Construct a string literal encoding the version number components. */
+
506 #ifdef SIMULATE_VERSION_MAJOR
+
507 char const info_simulate_version[] = {
+
508  'I', 'N', 'F', 'O', ':',
+
509  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
510  SIMULATE_VERSION_MAJOR,
+
511 # ifdef SIMULATE_VERSION_MINOR
+
512  '.', SIMULATE_VERSION_MINOR,
+
513 # ifdef SIMULATE_VERSION_PATCH
+
514  '.', SIMULATE_VERSION_PATCH,
+
515 # ifdef SIMULATE_VERSION_TWEAK
+
516  '.', SIMULATE_VERSION_TWEAK,
+
517 # endif
+
518 # endif
+
519 # endif
+
520  ']','\0'};
+
521 #endif
+
522 
+
523 /* Construct the string literal in pieces to prevent the source from
+
524  getting matched. Store it in a pointer rather than an array
+
525  because some compilers will just produce instructions to fill the
+
526  array rather than assigning a pointer to a static array. */
+
527 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
528 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
529 
+
530 
+
531 
+
532 
+
533 #if defined(_MSC_VER) && defined(_MSVC_LANG)
+
534 #define CXX_STD _MSVC_LANG
+
535 #else
+
536 #define CXX_STD __cplusplus
+
537 #endif
+
538 
+
539 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
540 #if CXX_STD > 201402L
+
541  "17"
+
542 #elif CXX_STD >= 201402L
+
543  "14"
+
544 #elif CXX_STD >= 201103L
+
545  "11"
+
546 #else
+
547  "98"
+
548 #endif
+
549 "]";
+
550 
+
551 /*--------------------------------------------------------------------------*/
+
552 
+
553 int main(int argc, char* argv[])
+
554 {
+
555  int require = 0;
+
556  require += info_compiler[argc];
+
557  require += info_platform[argc];
+
558 #ifdef COMPILER_VERSION_MAJOR
+
559  require += info_version[argc];
+
560 #endif
+
561 #ifdef COMPILER_VERSION_INTERNAL
+
562  require += info_version_internal[argc];
+
563 #endif
+
564 #ifdef SIMULATE_ID
+
565  require += info_simulate[argc];
+
566 #endif
+
567 #ifdef SIMULATE_VERSION_MAJOR
+
568  require += info_simulate_version[argc];
+
569 #endif
+
570 #if defined(__CRAYXE) || defined(__CRAYXC)
+
571  require += info_cray[argc];
+
572 #endif
+
573  require += info_language_dialect_default[argc];
+
574  (void)argv;
+
575  return require;
+
576 }
+
+
+ + + + diff --git a/docs/_release___o_n_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_n_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..8afc032 --- /dev/null +++ b/docs/_release___o_n_2_c_make_files_23_818_84_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,766 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_ON/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 
+
9 /* Version number components: V=Version, R=Revision, P=Patch
+
10  Version date components: YYYY=Year, MM=Month, DD=Day */
+
11 
+
12 #if defined(__COMO__)
+
13 # define COMPILER_ID "Comeau"
+
14  /* __COMO_VERSION__ = VRR */
+
15 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
16 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
17 
+
18 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
19 # define COMPILER_ID "Intel"
+
20 # if defined(_MSC_VER)
+
21 # define SIMULATE_ID "MSVC"
+
22 # endif
+
23 # if defined(__GNUC__)
+
24 # define SIMULATE_ID "GNU"
+
25 # endif
+
26  /* __INTEL_COMPILER = VRP */
+
27 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
28 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
29 # if defined(__INTEL_COMPILER_UPDATE)
+
30 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
31 # else
+
32 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
33 # endif
+
34 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
35  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
36 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
37 # endif
+
38 # if defined(_MSC_VER)
+
39  /* _MSC_VER = VVRR */
+
40 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
41 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
42 # endif
+
43 # if defined(__GNUC__)
+
44 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
45 # elif defined(__GNUG__)
+
46 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
47 # endif
+
48 # if defined(__GNUC_MINOR__)
+
49 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
50 # endif
+
51 # if defined(__GNUC_PATCHLEVEL__)
+
52 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
53 # endif
+
54 
+
55 #elif defined(__PATHCC__)
+
56 # define COMPILER_ID "PathScale"
+
57 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
58 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
59 # if defined(__PATHCC_PATCHLEVEL__)
+
60 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
61 # endif
+
62 
+
63 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
64 # define COMPILER_ID "Embarcadero"
+
65 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
66 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
67 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
68 
+
69 #elif defined(__BORLANDC__)
+
70 # define COMPILER_ID "Borland"
+
71  /* __BORLANDC__ = 0xVRR */
+
72 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
73 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
74 
+
75 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
76 # define COMPILER_ID "Watcom"
+
77  /* __WATCOMC__ = VVRR */
+
78 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
79 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
80 # if (__WATCOMC__ % 10) > 0
+
81 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
82 # endif
+
83 
+
84 #elif defined(__WATCOMC__)
+
85 # define COMPILER_ID "OpenWatcom"
+
86  /* __WATCOMC__ = VVRP + 1100 */
+
87 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
88 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
89 # if (__WATCOMC__ % 10) > 0
+
90 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
91 # endif
+
92 
+
93 #elif defined(__SUNPRO_CC)
+
94 # define COMPILER_ID "SunPro"
+
95 # if __SUNPRO_CC >= 0x5100
+
96  /* __SUNPRO_CC = 0xVRRP */
+
97 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
98 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
99 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
100 # else
+
101  /* __SUNPRO_CC = 0xVRP */
+
102 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
103 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
104 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
105 # endif
+
106 
+
107 #elif defined(__HP_aCC)
+
108 # define COMPILER_ID "HP"
+
109  /* __HP_aCC = VVRRPP */
+
110 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
111 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
112 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
113 
+
114 #elif defined(__DECCXX)
+
115 # define COMPILER_ID "Compaq"
+
116  /* __DECCXX_VER = VVRRTPPPP */
+
117 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
118 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
119 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
120 
+
121 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
122 # define COMPILER_ID "zOS"
+
123  /* __IBMCPP__ = VRP */
+
124 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
125 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
126 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
127 
+
128 #elif defined(__ibmxl__) && defined(__clang__)
+
129 # define COMPILER_ID "XLClang"
+
130 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
131 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
132 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
133 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
134 
+
135 
+
136 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
137 # define COMPILER_ID "XL"
+
138  /* __IBMCPP__ = VRP */
+
139 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
140 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
141 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
142 
+
143 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
144 # define COMPILER_ID "VisualAge"
+
145  /* __IBMCPP__ = VRP */
+
146 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
147 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
148 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
149 
+
150 #elif defined(__PGI)
+
151 # define COMPILER_ID "PGI"
+
152 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
153 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
154 # if defined(__PGIC_PATCHLEVEL__)
+
155 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
156 # endif
+
157 
+
158 #elif defined(_CRAYC)
+
159 # define COMPILER_ID "Cray"
+
160 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
161 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
162 
+
163 #elif defined(__TI_COMPILER_VERSION__)
+
164 # define COMPILER_ID "TI"
+
165  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
166 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
167 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
168 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
169 
+
170 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
+
171 # define COMPILER_ID "Fujitsu"
+
172 
+
173 #elif defined(__ghs__)
+
174 # define COMPILER_ID "GHS"
+
175 /* __GHS_VERSION_NUMBER = VVVVRP */
+
176 # ifdef __GHS_VERSION_NUMBER
+
177 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
178 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
180 # endif
+
181 
+
182 #elif defined(__SCO_VERSION__)
+
183 # define COMPILER_ID "SCO"
+
184 
+
185 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
186 # define COMPILER_ID "ARMCC"
+
187 #if __ARMCC_VERSION >= 1000000
+
188  /* __ARMCC_VERSION = VRRPPPP */
+
189  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
190  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
191  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
192 #else
+
193  /* __ARMCC_VERSION = VRPPPP */
+
194  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
195  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
196  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
197 #endif
+
198 
+
199 
+
200 #elif defined(__clang__) && defined(__apple_build_version__)
+
201 # define COMPILER_ID "AppleClang"
+
202 # if defined(_MSC_VER)
+
203 # define SIMULATE_ID "MSVC"
+
204 # endif
+
205 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
206 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
207 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
208 # if defined(_MSC_VER)
+
209  /* _MSC_VER = VVRR */
+
210 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
211 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
212 # endif
+
213 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
214 
+
215 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
216 # define COMPILER_ID "ARMClang"
+
217  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
218  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
219  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
220 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
221 
+
222 #elif defined(__clang__)
+
223 # define COMPILER_ID "Clang"
+
224 # if defined(_MSC_VER)
+
225 # define SIMULATE_ID "MSVC"
+
226 # endif
+
227 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
228 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
229 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
230 # if defined(_MSC_VER)
+
231  /* _MSC_VER = VVRR */
+
232 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
233 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
234 # endif
+
235 
+
236 #elif defined(__GNUC__) || defined(__GNUG__)
+
237 # define COMPILER_ID "GNU"
+
238 # if defined(__GNUC__)
+
239 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
240 # else
+
241 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
242 # endif
+
243 # if defined(__GNUC_MINOR__)
+
244 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
245 # endif
+
246 # if defined(__GNUC_PATCHLEVEL__)
+
247 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
248 # endif
+
249 
+
250 #elif defined(_MSC_VER)
+
251 # define COMPILER_ID "MSVC"
+
252  /* _MSC_VER = VVRR */
+
253 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
254 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
255 # if defined(_MSC_FULL_VER)
+
256 # if _MSC_VER >= 1400
+
257  /* _MSC_FULL_VER = VVRRPPPPP */
+
258 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
259 # else
+
260  /* _MSC_FULL_VER = VVRRPPPP */
+
261 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
262 # endif
+
263 # endif
+
264 # if defined(_MSC_BUILD)
+
265 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
266 # endif
+
267 
+
268 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
269 # define COMPILER_ID "ADSP"
+
270 #if defined(__VISUALDSPVERSION__)
+
271  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
272 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
273 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
274 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
275 #endif
+
276 
+
277 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
278 # define COMPILER_ID "IAR"
+
279 # if defined(__VER__) && defined(__ICCARM__)
+
280 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
281 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
282 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
283 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
284 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__))
+
285 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
286 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
287 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
288 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
289 # endif
+
290 
+
291 
+
292 /* These compilers are either not known or too old to define an
+
293  identification macro. Try to identify the platform and guess that
+
294  it is the native compiler. */
+
295 #elif defined(__hpux) || defined(__hpua)
+
296 # define COMPILER_ID "HP"
+
297 
+
298 #else /* unknown compiler */
+
299 # define COMPILER_ID ""
+
300 #endif
+
301 
+
302 /* Construct the string literal in pieces to prevent the source from
+
303  getting matched. Store it in a pointer rather than an array
+
304  because some compilers will just produce instructions to fill the
+
305  array rather than assigning a pointer to a static array. */
+
306 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
307 #ifdef SIMULATE_ID
+
308 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
309 #endif
+
310 
+
311 #ifdef __QNXNTO__
+
312 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
313 #endif
+
314 
+
315 #if defined(__CRAYXE) || defined(__CRAYXC)
+
316 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
317 #endif
+
318 
+
319 #define STRINGIFY_HELPER(X) #X
+
320 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
321 
+
322 /* Identify known platforms by name. */
+
323 #if defined(__linux) || defined(__linux__) || defined(linux)
+
324 # define PLATFORM_ID "Linux"
+
325 
+
326 #elif defined(__CYGWIN__)
+
327 # define PLATFORM_ID "Cygwin"
+
328 
+
329 #elif defined(__MINGW32__)
+
330 # define PLATFORM_ID "MinGW"
+
331 
+
332 #elif defined(__APPLE__)
+
333 # define PLATFORM_ID "Darwin"
+
334 
+
335 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
336 # define PLATFORM_ID "Windows"
+
337 
+
338 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
339 # define PLATFORM_ID "FreeBSD"
+
340 
+
341 #elif defined(__NetBSD__) || defined(__NetBSD)
+
342 # define PLATFORM_ID "NetBSD"
+
343 
+
344 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
345 # define PLATFORM_ID "OpenBSD"
+
346 
+
347 #elif defined(__sun) || defined(sun)
+
348 # define PLATFORM_ID "SunOS"
+
349 
+
350 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
351 # define PLATFORM_ID "AIX"
+
352 
+
353 #elif defined(__hpux) || defined(__hpux__)
+
354 # define PLATFORM_ID "HP-UX"
+
355 
+
356 #elif defined(__HAIKU__)
+
357 # define PLATFORM_ID "Haiku"
+
358 
+
359 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
360 # define PLATFORM_ID "BeOS"
+
361 
+
362 #elif defined(__QNX__) || defined(__QNXNTO__)
+
363 # define PLATFORM_ID "QNX"
+
364 
+
365 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
366 # define PLATFORM_ID "Tru64"
+
367 
+
368 #elif defined(__riscos) || defined(__riscos__)
+
369 # define PLATFORM_ID "RISCos"
+
370 
+
371 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
372 # define PLATFORM_ID "SINIX"
+
373 
+
374 #elif defined(__UNIX_SV__)
+
375 # define PLATFORM_ID "UNIX_SV"
+
376 
+
377 #elif defined(__bsdos__)
+
378 # define PLATFORM_ID "BSDOS"
+
379 
+
380 #elif defined(_MPRAS) || defined(MPRAS)
+
381 # define PLATFORM_ID "MP-RAS"
+
382 
+
383 #elif defined(__osf) || defined(__osf__)
+
384 # define PLATFORM_ID "OSF1"
+
385 
+
386 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
387 # define PLATFORM_ID "SCO_SV"
+
388 
+
389 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
390 # define PLATFORM_ID "ULTRIX"
+
391 
+
392 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
393 # define PLATFORM_ID "Xenix"
+
394 
+
395 #elif defined(__WATCOMC__)
+
396 # if defined(__LINUX__)
+
397 # define PLATFORM_ID "Linux"
+
398 
+
399 # elif defined(__DOS__)
+
400 # define PLATFORM_ID "DOS"
+
401 
+
402 # elif defined(__OS2__)
+
403 # define PLATFORM_ID "OS2"
+
404 
+
405 # elif defined(__WINDOWS__)
+
406 # define PLATFORM_ID "Windows3x"
+
407 
+
408 # elif defined(__VXWORKS__)
+
409 # define PLATFORM_ID "VxWorks"
+
410 
+
411 # else /* unknown platform */
+
412 # define PLATFORM_ID
+
413 # endif
+
414 
+
415 #elif defined(__INTEGRITY)
+
416 # if defined(INT_178B)
+
417 # define PLATFORM_ID "Integrity178"
+
418 
+
419 # else /* regular Integrity */
+
420 # define PLATFORM_ID "Integrity"
+
421 # endif
+
422 
+
423 #else /* unknown platform */
+
424 # define PLATFORM_ID
+
425 
+
426 #endif
+
427 
+
428 /* For windows compilers MSVC and Intel we can determine
+
429  the architecture of the compiler being used. This is because
+
430  the compilers do not have flags that can change the architecture,
+
431  but rather depend on which compiler is being used
+
432 */
+
433 #if defined(_WIN32) && defined(_MSC_VER)
+
434 # if defined(_M_IA64)
+
435 # define ARCHITECTURE_ID "IA64"
+
436 
+
437 # elif defined(_M_X64) || defined(_M_AMD64)
+
438 # define ARCHITECTURE_ID "x64"
+
439 
+
440 # elif defined(_M_IX86)
+
441 # define ARCHITECTURE_ID "X86"
+
442 
+
443 # elif defined(_M_ARM64)
+
444 # define ARCHITECTURE_ID "ARM64"
+
445 
+
446 # elif defined(_M_ARM)
+
447 # if _M_ARM == 4
+
448 # define ARCHITECTURE_ID "ARMV4I"
+
449 # elif _M_ARM == 5
+
450 # define ARCHITECTURE_ID "ARMV5I"
+
451 # else
+
452 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
453 # endif
+
454 
+
455 # elif defined(_M_MIPS)
+
456 # define ARCHITECTURE_ID "MIPS"
+
457 
+
458 # elif defined(_M_SH)
+
459 # define ARCHITECTURE_ID "SHx"
+
460 
+
461 # else /* unknown architecture */
+
462 # define ARCHITECTURE_ID ""
+
463 # endif
+
464 
+
465 #elif defined(__WATCOMC__)
+
466 # if defined(_M_I86)
+
467 # define ARCHITECTURE_ID "I86"
+
468 
+
469 # elif defined(_M_IX86)
+
470 # define ARCHITECTURE_ID "X86"
+
471 
+
472 # else /* unknown architecture */
+
473 # define ARCHITECTURE_ID ""
+
474 # endif
+
475 
+
476 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
477 # if defined(__ICCARM__)
+
478 # define ARCHITECTURE_ID "ARM"
+
479 
+
480 # elif defined(__ICCRX__)
+
481 # define ARCHITECTURE_ID "RX"
+
482 
+
483 # elif defined(__ICCRH850__)
+
484 # define ARCHITECTURE_ID "RH850"
+
485 
+
486 # elif defined(__ICCRL78__)
+
487 # define ARCHITECTURE_ID "RL78"
+
488 
+
489 # elif defined(__ICCRISCV__)
+
490 # define ARCHITECTURE_ID "RISCV"
+
491 
+
492 # elif defined(__ICCAVR__)
+
493 # define ARCHITECTURE_ID "AVR"
+
494 
+
495 # elif defined(__ICC430__)
+
496 # define ARCHITECTURE_ID "MSP430"
+
497 
+
498 # elif defined(__ICCV850__)
+
499 # define ARCHITECTURE_ID "V850"
+
500 
+
501 # elif defined(__ICC8051__)
+
502 # define ARCHITECTURE_ID "8051"
+
503 
+
504 # else /* unknown architecture */
+
505 # define ARCHITECTURE_ID ""
+
506 # endif
+
507 
+
508 #elif defined(__ghs__)
+
509 # if defined(__PPC64__)
+
510 # define ARCHITECTURE_ID "PPC64"
+
511 
+
512 # elif defined(__ppc__)
+
513 # define ARCHITECTURE_ID "PPC"
+
514 
+
515 # elif defined(__ARM__)
+
516 # define ARCHITECTURE_ID "ARM"
+
517 
+
518 # elif defined(__x86_64__)
+
519 # define ARCHITECTURE_ID "x64"
+
520 
+
521 # elif defined(__i386__)
+
522 # define ARCHITECTURE_ID "X86"
+
523 
+
524 # else /* unknown architecture */
+
525 # define ARCHITECTURE_ID ""
+
526 # endif
+
527 #else
+
528 # define ARCHITECTURE_ID
+
529 #endif
+
530 
+
531 /* Convert integer to decimal digit literals. */
+
532 #define DEC(n) \
+
533  ('0' + (((n) / 10000000)%10)), \
+
534  ('0' + (((n) / 1000000)%10)), \
+
535  ('0' + (((n) / 100000)%10)), \
+
536  ('0' + (((n) / 10000)%10)), \
+
537  ('0' + (((n) / 1000)%10)), \
+
538  ('0' + (((n) / 100)%10)), \
+
539  ('0' + (((n) / 10)%10)), \
+
540  ('0' + ((n) % 10))
+
541 
+
542 /* Convert integer to hex digit literals. */
+
543 #define HEX(n) \
+
544  ('0' + ((n)>>28 & 0xF)), \
+
545  ('0' + ((n)>>24 & 0xF)), \
+
546  ('0' + ((n)>>20 & 0xF)), \
+
547  ('0' + ((n)>>16 & 0xF)), \
+
548  ('0' + ((n)>>12 & 0xF)), \
+
549  ('0' + ((n)>>8 & 0xF)), \
+
550  ('0' + ((n)>>4 & 0xF)), \
+
551  ('0' + ((n) & 0xF))
+
552 
+
553 /* Construct a string literal encoding the version number components. */
+
554 #ifdef COMPILER_VERSION_MAJOR
+
555 char const info_version[] = {
+
556  'I', 'N', 'F', 'O', ':',
+
557  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
558  COMPILER_VERSION_MAJOR,
+
559 # ifdef COMPILER_VERSION_MINOR
+
560  '.', COMPILER_VERSION_MINOR,
+
561 # ifdef COMPILER_VERSION_PATCH
+
562  '.', COMPILER_VERSION_PATCH,
+
563 # ifdef COMPILER_VERSION_TWEAK
+
564  '.', COMPILER_VERSION_TWEAK,
+
565 # endif
+
566 # endif
+
567 # endif
+
568  ']','\0'};
+
569 #endif
+
570 
+
571 /* Construct a string literal encoding the internal version number. */
+
572 #ifdef COMPILER_VERSION_INTERNAL
+
573 char const info_version_internal[] = {
+
574  'I', 'N', 'F', 'O', ':',
+
575  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
576  'i','n','t','e','r','n','a','l','[',
+
577  COMPILER_VERSION_INTERNAL,']','\0'};
+
578 #endif
+
579 
+
580 /* Construct a string literal encoding the version number components. */
+
581 #ifdef SIMULATE_VERSION_MAJOR
+
582 char const info_simulate_version[] = {
+
583  'I', 'N', 'F', 'O', ':',
+
584  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
585  SIMULATE_VERSION_MAJOR,
+
586 # ifdef SIMULATE_VERSION_MINOR
+
587  '.', SIMULATE_VERSION_MINOR,
+
588 # ifdef SIMULATE_VERSION_PATCH
+
589  '.', SIMULATE_VERSION_PATCH,
+
590 # ifdef SIMULATE_VERSION_TWEAK
+
591  '.', SIMULATE_VERSION_TWEAK,
+
592 # endif
+
593 # endif
+
594 # endif
+
595  ']','\0'};
+
596 #endif
+
597 
+
598 /* Construct the string literal in pieces to prevent the source from
+
599  getting matched. Store it in a pointer rather than an array
+
600  because some compilers will just produce instructions to fill the
+
601  array rather than assigning a pointer to a static array. */
+
602 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
603 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
604 
+
605 
+
606 
+
607 
+
608 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
609 # if defined(__INTEL_CXX11_MODE__)
+
610 # if defined(__cpp_aggregate_nsdmi)
+
611 # define CXX_STD 201402L
+
612 # else
+
613 # define CXX_STD 201103L
+
614 # endif
+
615 # else
+
616 # define CXX_STD 199711L
+
617 # endif
+
618 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
619 # define CXX_STD _MSVC_LANG
+
620 #else
+
621 # define CXX_STD __cplusplus
+
622 #endif
+
623 
+
624 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+
625 #if CXX_STD > 201703L
+
626  "20"
+
627 #elif CXX_STD >= 201703L
+
628  "17"
+
629 #elif CXX_STD >= 201402L
+
630  "14"
+
631 #elif CXX_STD >= 201103L
+
632  "11"
+
633 #else
+
634  "98"
+
635 #endif
+
636 "]";
+
637 
+
638 /*--------------------------------------------------------------------------*/
+
639 
+
640 int main(int argc, char* argv[])
+
641 {
+
642  int require = 0;
+
643  require += info_compiler[argc];
+
644  require += info_platform[argc];
+
645 #ifdef COMPILER_VERSION_MAJOR
+
646  require += info_version[argc];
+
647 #endif
+
648 #ifdef COMPILER_VERSION_INTERNAL
+
649  require += info_version_internal[argc];
+
650 #endif
+
651 #ifdef SIMULATE_ID
+
652  require += info_simulate[argc];
+
653 #endif
+
654 #ifdef SIMULATE_VERSION_MAJOR
+
655  require += info_simulate_version[argc];
+
656 #endif
+
657 #if defined(__CRAYXE) || defined(__CRAYXC)
+
658  require += info_cray[argc];
+
659 #endif
+
660  require += info_language_dialect_default[argc];
+
661  (void)argv;
+
662  return require;
+
663 }
+
+
+ + + + diff --git a/docs/_release___o_n_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_n_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..5e6841e --- /dev/null +++ b/docs/_release___o_n_2_c_make_files_23_822_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,894 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_ON/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__ibmxl__) && defined(__clang__)
+
182 # define COMPILER_ID "XLClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
190 # define COMPILER_ID "XL"
+
191  /* __IBMCPP__ = VRP */
+
192 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
193 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
194 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
195 
+
196 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
197 # define COMPILER_ID "VisualAge"
+
198  /* __IBMCPP__ = VRP */
+
199 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
200 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
201 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
202 
+
203 #elif defined(__NVCOMPILER)
+
204 # define COMPILER_ID "NVHPC"
+
205 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
206 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
207 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
208 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
209 # endif
+
210 
+
211 #elif defined(__PGI)
+
212 # define COMPILER_ID "PGI"
+
213 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
214 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
215 # if defined(__PGIC_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(_CRAYC)
+
220 # define COMPILER_ID "Cray"
+
221 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
222 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
223 
+
224 #elif defined(__TI_COMPILER_VERSION__)
+
225 # define COMPILER_ID "TI"
+
226  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
227 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
228 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
229 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
230 
+
231 #elif defined(__CLANG_FUJITSU)
+
232 # define COMPILER_ID "FujitsuClang"
+
233 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
234 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
235 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
236 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
237 
+
238 
+
239 #elif defined(__FUJITSU)
+
240 # define COMPILER_ID "Fujitsu"
+
241 # if defined(__FCC_version__)
+
242 # define COMPILER_VERSION __FCC_version__
+
243 # elif defined(__FCC_major__)
+
244 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
245 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
246 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
247 # endif
+
248 # if defined(__fcc_version)
+
249 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
250 # elif defined(__FCC_VERSION)
+
251 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
252 # endif
+
253 
+
254 
+
255 #elif defined(__ghs__)
+
256 # define COMPILER_ID "GHS"
+
257 /* __GHS_VERSION_NUMBER = VVVVRP */
+
258 # ifdef __GHS_VERSION_NUMBER
+
259 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
260 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
261 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
262 # endif
+
263 
+
264 #elif defined(__SCO_VERSION__)
+
265 # define COMPILER_ID "SCO"
+
266 
+
267 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
268 # define COMPILER_ID "ARMCC"
+
269 #if __ARMCC_VERSION >= 1000000
+
270  /* __ARMCC_VERSION = VRRPPPP */
+
271  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
272  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
273  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
274 #else
+
275  /* __ARMCC_VERSION = VRPPPP */
+
276  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
277  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
278  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
279 #endif
+
280 
+
281 
+
282 #elif defined(__clang__) && defined(__apple_build_version__)
+
283 # define COMPILER_ID "AppleClang"
+
284 # if defined(_MSC_VER)
+
285 # define SIMULATE_ID "MSVC"
+
286 # endif
+
287 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
288 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
289 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
290 # if defined(_MSC_VER)
+
291  /* _MSC_VER = VVRR */
+
292 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
293 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
294 # endif
+
295 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
296 
+
297 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
298 # define COMPILER_ID "ARMClang"
+
299  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
300  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
301  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
302 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
303 
+
304 #elif defined(__clang__)
+
305 # define COMPILER_ID "Clang"
+
306 # if defined(_MSC_VER)
+
307 # define SIMULATE_ID "MSVC"
+
308 # endif
+
309 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
310 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
311 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
312 # if defined(_MSC_VER)
+
313  /* _MSC_VER = VVRR */
+
314 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
315 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
316 # endif
+
317 
+
318 #elif defined(__GNUC__) || defined(__GNUG__)
+
319 # define COMPILER_ID "GNU"
+
320 # if defined(__GNUC__)
+
321 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
322 # else
+
323 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
324 # endif
+
325 # if defined(__GNUC_MINOR__)
+
326 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
327 # endif
+
328 # if defined(__GNUC_PATCHLEVEL__)
+
329 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
330 # endif
+
331 
+
332 #elif defined(_MSC_VER)
+
333 # define COMPILER_ID "MSVC"
+
334  /* _MSC_VER = VVRR */
+
335 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
336 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
337 # if defined(_MSC_FULL_VER)
+
338 # if _MSC_VER >= 1400
+
339  /* _MSC_FULL_VER = VVRRPPPPP */
+
340 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
341 # else
+
342  /* _MSC_FULL_VER = VVRRPPPP */
+
343 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
344 # endif
+
345 # endif
+
346 # if defined(_MSC_BUILD)
+
347 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
348 # endif
+
349 
+
350 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
+
351 # define COMPILER_ID "ADSP"
+
352 #if defined(__VISUALDSPVERSION__)
+
353  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
+
354 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
+
355 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
+
356 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
+
357 #endif
+
358 
+
359 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
360 # define COMPILER_ID "IAR"
+
361 # if defined(__VER__) && defined(__ICCARM__)
+
362 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
363 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
364 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
365 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
366 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
367 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
368 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
369 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
370 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
371 # endif
+
372 
+
373 
+
374 /* These compilers are either not known or too old to define an
+
375  identification macro. Try to identify the platform and guess that
+
376  it is the native compiler. */
+
377 #elif defined(__hpux) || defined(__hpua)
+
378 # define COMPILER_ID "HP"
+
379 
+
380 #else /* unknown compiler */
+
381 # define COMPILER_ID ""
+
382 #endif
+
383 
+
384 /* Construct the string literal in pieces to prevent the source from
+
385  getting matched. Store it in a pointer rather than an array
+
386  because some compilers will just produce instructions to fill the
+
387  array rather than assigning a pointer to a static array. */
+
388 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
389 #ifdef SIMULATE_ID
+
390 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
391 #endif
+
392 
+
393 #ifdef __QNXNTO__
+
394 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
395 #endif
+
396 
+
397 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
398 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
399 #endif
+
400 
+
401 #define STRINGIFY_HELPER(X) #X
+
402 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
403 
+
404 /* Identify known platforms by name. */
+
405 #if defined(__linux) || defined(__linux__) || defined(linux)
+
406 # define PLATFORM_ID "Linux"
+
407 
+
408 #elif defined(__MSYS__)
+
409 # define PLATFORM_ID "MSYS"
+
410 
+
411 #elif defined(__CYGWIN__)
+
412 # define PLATFORM_ID "Cygwin"
+
413 
+
414 #elif defined(__MINGW32__)
+
415 # define PLATFORM_ID "MinGW"
+
416 
+
417 #elif defined(__APPLE__)
+
418 # define PLATFORM_ID "Darwin"
+
419 
+
420 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
421 # define PLATFORM_ID "Windows"
+
422 
+
423 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
424 # define PLATFORM_ID "FreeBSD"
+
425 
+
426 #elif defined(__NetBSD__) || defined(__NetBSD)
+
427 # define PLATFORM_ID "NetBSD"
+
428 
+
429 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
430 # define PLATFORM_ID "OpenBSD"
+
431 
+
432 #elif defined(__sun) || defined(sun)
+
433 # define PLATFORM_ID "SunOS"
+
434 
+
435 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
436 # define PLATFORM_ID "AIX"
+
437 
+
438 #elif defined(__hpux) || defined(__hpux__)
+
439 # define PLATFORM_ID "HP-UX"
+
440 
+
441 #elif defined(__HAIKU__)
+
442 # define PLATFORM_ID "Haiku"
+
443 
+
444 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
445 # define PLATFORM_ID "BeOS"
+
446 
+
447 #elif defined(__QNX__) || defined(__QNXNTO__)
+
448 # define PLATFORM_ID "QNX"
+
449 
+
450 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
451 # define PLATFORM_ID "Tru64"
+
452 
+
453 #elif defined(__riscos) || defined(__riscos__)
+
454 # define PLATFORM_ID "RISCos"
+
455 
+
456 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
457 # define PLATFORM_ID "SINIX"
+
458 
+
459 #elif defined(__UNIX_SV__)
+
460 # define PLATFORM_ID "UNIX_SV"
+
461 
+
462 #elif defined(__bsdos__)
+
463 # define PLATFORM_ID "BSDOS"
+
464 
+
465 #elif defined(_MPRAS) || defined(MPRAS)
+
466 # define PLATFORM_ID "MP-RAS"
+
467 
+
468 #elif defined(__osf) || defined(__osf__)
+
469 # define PLATFORM_ID "OSF1"
+
470 
+
471 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
472 # define PLATFORM_ID "SCO_SV"
+
473 
+
474 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
475 # define PLATFORM_ID "ULTRIX"
+
476 
+
477 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
478 # define PLATFORM_ID "Xenix"
+
479 
+
480 #elif defined(__WATCOMC__)
+
481 # if defined(__LINUX__)
+
482 # define PLATFORM_ID "Linux"
+
483 
+
484 # elif defined(__DOS__)
+
485 # define PLATFORM_ID "DOS"
+
486 
+
487 # elif defined(__OS2__)
+
488 # define PLATFORM_ID "OS2"
+
489 
+
490 # elif defined(__WINDOWS__)
+
491 # define PLATFORM_ID "Windows3x"
+
492 
+
493 # elif defined(__VXWORKS__)
+
494 # define PLATFORM_ID "VxWorks"
+
495 
+
496 # else /* unknown platform */
+
497 # define PLATFORM_ID
+
498 # endif
+
499 
+
500 #elif defined(__INTEGRITY)
+
501 # if defined(INT_178B)
+
502 # define PLATFORM_ID "Integrity178"
+
503 
+
504 # else /* regular Integrity */
+
505 # define PLATFORM_ID "Integrity"
+
506 # endif
+
507 
+
508 #else /* unknown platform */
+
509 # define PLATFORM_ID
+
510 
+
511 #endif
+
512 
+
513 /* For windows compilers MSVC and Intel we can determine
+
514  the architecture of the compiler being used. This is because
+
515  the compilers do not have flags that can change the architecture,
+
516  but rather depend on which compiler is being used
+
517 */
+
518 #if defined(_WIN32) && defined(_MSC_VER)
+
519 # if defined(_M_IA64)
+
520 # define ARCHITECTURE_ID "IA64"
+
521 
+
522 # elif defined(_M_ARM64EC)
+
523 # define ARCHITECTURE_ID "ARM64EC"
+
524 
+
525 # elif defined(_M_X64) || defined(_M_AMD64)
+
526 # define ARCHITECTURE_ID "x64"
+
527 
+
528 # elif defined(_M_IX86)
+
529 # define ARCHITECTURE_ID "X86"
+
530 
+
531 # elif defined(_M_ARM64)
+
532 # define ARCHITECTURE_ID "ARM64"
+
533 
+
534 # elif defined(_M_ARM)
+
535 # if _M_ARM == 4
+
536 # define ARCHITECTURE_ID "ARMV4I"
+
537 # elif _M_ARM == 5
+
538 # define ARCHITECTURE_ID "ARMV5I"
+
539 # else
+
540 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
541 # endif
+
542 
+
543 # elif defined(_M_MIPS)
+
544 # define ARCHITECTURE_ID "MIPS"
+
545 
+
546 # elif defined(_M_SH)
+
547 # define ARCHITECTURE_ID "SHx"
+
548 
+
549 # else /* unknown architecture */
+
550 # define ARCHITECTURE_ID ""
+
551 # endif
+
552 
+
553 #elif defined(__WATCOMC__)
+
554 # if defined(_M_I86)
+
555 # define ARCHITECTURE_ID "I86"
+
556 
+
557 # elif defined(_M_IX86)
+
558 # define ARCHITECTURE_ID "X86"
+
559 
+
560 # else /* unknown architecture */
+
561 # define ARCHITECTURE_ID ""
+
562 # endif
+
563 
+
564 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
565 # if defined(__ICCARM__)
+
566 # define ARCHITECTURE_ID "ARM"
+
567 
+
568 # elif defined(__ICCRX__)
+
569 # define ARCHITECTURE_ID "RX"
+
570 
+
571 # elif defined(__ICCRH850__)
+
572 # define ARCHITECTURE_ID "RH850"
+
573 
+
574 # elif defined(__ICCRL78__)
+
575 # define ARCHITECTURE_ID "RL78"
+
576 
+
577 # elif defined(__ICCRISCV__)
+
578 # define ARCHITECTURE_ID "RISCV"
+
579 
+
580 # elif defined(__ICCAVR__)
+
581 # define ARCHITECTURE_ID "AVR"
+
582 
+
583 # elif defined(__ICC430__)
+
584 # define ARCHITECTURE_ID "MSP430"
+
585 
+
586 # elif defined(__ICCV850__)
+
587 # define ARCHITECTURE_ID "V850"
+
588 
+
589 # elif defined(__ICC8051__)
+
590 # define ARCHITECTURE_ID "8051"
+
591 
+
592 # elif defined(__ICCSTM8__)
+
593 # define ARCHITECTURE_ID "STM8"
+
594 
+
595 # else /* unknown architecture */
+
596 # define ARCHITECTURE_ID ""
+
597 # endif
+
598 
+
599 #elif defined(__ghs__)
+
600 # if defined(__PPC64__)
+
601 # define ARCHITECTURE_ID "PPC64"
+
602 
+
603 # elif defined(__ppc__)
+
604 # define ARCHITECTURE_ID "PPC"
+
605 
+
606 # elif defined(__ARM__)
+
607 # define ARCHITECTURE_ID "ARM"
+
608 
+
609 # elif defined(__x86_64__)
+
610 # define ARCHITECTURE_ID "x64"
+
611 
+
612 # elif defined(__i386__)
+
613 # define ARCHITECTURE_ID "X86"
+
614 
+
615 # else /* unknown architecture */
+
616 # define ARCHITECTURE_ID ""
+
617 # endif
+
618 
+
619 #elif defined(__TI_COMPILER_VERSION__)
+
620 # if defined(__TI_ARM__)
+
621 # define ARCHITECTURE_ID "ARM"
+
622 
+
623 # elif defined(__MSP430__)
+
624 # define ARCHITECTURE_ID "MSP430"
+
625 
+
626 # elif defined(__TMS320C28XX__)
+
627 # define ARCHITECTURE_ID "TMS320C28x"
+
628 
+
629 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
630 # define ARCHITECTURE_ID "TMS320C6x"
+
631 
+
632 # else /* unknown architecture */
+
633 # define ARCHITECTURE_ID ""
+
634 # endif
+
635 
+
636 #else
+
637 # define ARCHITECTURE_ID
+
638 #endif
+
639 
+
640 /* Convert integer to decimal digit literals. */
+
641 #define DEC(n) \
+
642  ('0' + (((n) / 10000000)%10)), \
+
643  ('0' + (((n) / 1000000)%10)), \
+
644  ('0' + (((n) / 100000)%10)), \
+
645  ('0' + (((n) / 10000)%10)), \
+
646  ('0' + (((n) / 1000)%10)), \
+
647  ('0' + (((n) / 100)%10)), \
+
648  ('0' + (((n) / 10)%10)), \
+
649  ('0' + ((n) % 10))
+
650 
+
651 /* Convert integer to hex digit literals. */
+
652 #define HEX(n) \
+
653  ('0' + ((n)>>28 & 0xF)), \
+
654  ('0' + ((n)>>24 & 0xF)), \
+
655  ('0' + ((n)>>20 & 0xF)), \
+
656  ('0' + ((n)>>16 & 0xF)), \
+
657  ('0' + ((n)>>12 & 0xF)), \
+
658  ('0' + ((n)>>8 & 0xF)), \
+
659  ('0' + ((n)>>4 & 0xF)), \
+
660  ('0' + ((n) & 0xF))
+
661 
+
662 /* Construct a string literal encoding the version number. */
+
663 #ifdef COMPILER_VERSION
+
664 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
665 
+
666 /* Construct a string literal encoding the version number components. */
+
667 #elif defined(COMPILER_VERSION_MAJOR)
+
668 char const info_version[] = {
+
669  'I', 'N', 'F', 'O', ':',
+
670  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
671  COMPILER_VERSION_MAJOR,
+
672 # ifdef COMPILER_VERSION_MINOR
+
673  '.', COMPILER_VERSION_MINOR,
+
674 # ifdef COMPILER_VERSION_PATCH
+
675  '.', COMPILER_VERSION_PATCH,
+
676 # ifdef COMPILER_VERSION_TWEAK
+
677  '.', COMPILER_VERSION_TWEAK,
+
678 # endif
+
679 # endif
+
680 # endif
+
681  ']','\0'};
+
682 #endif
+
683 
+
684 /* Construct a string literal encoding the internal version number. */
+
685 #ifdef COMPILER_VERSION_INTERNAL
+
686 char const info_version_internal[] = {
+
687  'I', 'N', 'F', 'O', ':',
+
688  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
689  'i','n','t','e','r','n','a','l','[',
+
690  COMPILER_VERSION_INTERNAL,']','\0'};
+
691 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
692 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
693 #endif
+
694 
+
695 /* Construct a string literal encoding the version number components. */
+
696 #ifdef SIMULATE_VERSION_MAJOR
+
697 char const info_simulate_version[] = {
+
698  'I', 'N', 'F', 'O', ':',
+
699  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
700  SIMULATE_VERSION_MAJOR,
+
701 # ifdef SIMULATE_VERSION_MINOR
+
702  '.', SIMULATE_VERSION_MINOR,
+
703 # ifdef SIMULATE_VERSION_PATCH
+
704  '.', SIMULATE_VERSION_PATCH,
+
705 # ifdef SIMULATE_VERSION_TWEAK
+
706  '.', SIMULATE_VERSION_TWEAK,
+
707 # endif
+
708 # endif
+
709 # endif
+
710  ']','\0'};
+
711 #endif
+
712 
+
713 /* Construct the string literal in pieces to prevent the source from
+
714  getting matched. Store it in a pointer rather than an array
+
715  because some compilers will just produce instructions to fill the
+
716  array rather than assigning a pointer to a static array. */
+
717 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
718 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
719 
+
720 
+
721 
+
722 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
723 # if defined(__INTEL_CXX11_MODE__)
+
724 # if defined(__cpp_aggregate_nsdmi)
+
725 # define CXX_STD 201402L
+
726 # else
+
727 # define CXX_STD 201103L
+
728 # endif
+
729 # else
+
730 # define CXX_STD 199711L
+
731 # endif
+
732 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
733 # define CXX_STD _MSVC_LANG
+
734 #else
+
735 # define CXX_STD __cplusplus
+
736 #endif
+
737 
+
738 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
739 #if CXX_STD > 202002L
+
740  "23"
+
741 #elif CXX_STD > 201703L
+
742  "20"
+
743 #elif CXX_STD >= 201703L
+
744  "17"
+
745 #elif CXX_STD >= 201402L
+
746  "14"
+
747 #elif CXX_STD >= 201103L
+
748  "11"
+
749 #else
+
750  "98"
+
751 #endif
+
752 "]";
+
753 
+
754 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
755 /* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */
+
756 #if (defined(__clang__) || defined(__GNUC__) || \
+
757  defined(__TI_COMPILER_VERSION__)) && \
+
758  !defined(__STRICT_ANSI__) && !defined(_MSC_VER)
+
759  "ON"
+
760 #else
+
761  "OFF"
+
762 #endif
+
763 "]";
+
764 
+
765 /*--------------------------------------------------------------------------*/
+
766 
+
767 int main(int argc, char* argv[])
+
768 {
+
769  int require = 0;
+
770  require += info_compiler[argc];
+
771  require += info_platform[argc];
+
772 #ifdef COMPILER_VERSION_MAJOR
+
773  require += info_version[argc];
+
774 #endif
+
775 #ifdef COMPILER_VERSION_INTERNAL
+
776  require += info_version_internal[argc];
+
777 #endif
+
778 #ifdef SIMULATE_ID
+
779  require += info_simulate[argc];
+
780 #endif
+
781 #ifdef SIMULATE_VERSION_MAJOR
+
782  require += info_simulate_version[argc];
+
783 #endif
+
784 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
785  require += info_cray[argc];
+
786 #endif
+
787  require += info_language_standard_default[argc];
+
788  require += info_language_extensions_default[argc];
+
789  (void)argv;
+
790  return require;
+
791 }
+
+
+ + + + diff --git a/docs/_release___o_n_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_n_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..820fa28 --- /dev/null +++ b/docs/_release___o_n_2_c_make_files_23_824_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,929 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_ON/CMakeFiles/3.24.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__SCO_VERSION__)
+
273 # define COMPILER_ID "SCO"
+
274 
+
275 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
276 # define COMPILER_ID "ARMCC"
+
277 #if __ARMCC_VERSION >= 1000000
+
278  /* __ARMCC_VERSION = VRRPPPP */
+
279  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
280  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
281  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
282 #else
+
283  /* __ARMCC_VERSION = VRPPPP */
+
284  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
285  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
286  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
287 #endif
+
288 
+
289 
+
290 #elif defined(__clang__) && defined(__apple_build_version__)
+
291 # define COMPILER_ID "AppleClang"
+
292 # if defined(_MSC_VER)
+
293 # define SIMULATE_ID "MSVC"
+
294 # endif
+
295 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
296 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
297 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
298 # if defined(_MSC_VER)
+
299  /* _MSC_VER = VVRR */
+
300 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
301 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
302 # endif
+
303 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
304 
+
305 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
306 # define COMPILER_ID "ARMClang"
+
307  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
308  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
309  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
310 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
311 
+
312 #elif defined(__clang__)
+
313 # define COMPILER_ID "Clang"
+
314 # if defined(_MSC_VER)
+
315 # define SIMULATE_ID "MSVC"
+
316 # endif
+
317 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
318 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
319 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
320 # if defined(_MSC_VER)
+
321  /* _MSC_VER = VVRR */
+
322 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
323 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
324 # endif
+
325 
+
326 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
327 # define COMPILER_ID "LCC"
+
328 # define COMPILER_VERSION_MAJOR DEC(1)
+
329 # if defined(__LCC__)
+
330 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
331 # endif
+
332 # if defined(__LCC_MINOR__)
+
333 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
334 # endif
+
335 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
336 # define SIMULATE_ID "GNU"
+
337 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
338 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
339 # if defined(__GNUC_PATCHLEVEL__)
+
340 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
341 # endif
+
342 # endif
+
343 
+
344 #elif defined(__GNUC__) || defined(__GNUG__)
+
345 # define COMPILER_ID "GNU"
+
346 # if defined(__GNUC__)
+
347 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
348 # else
+
349 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
350 # endif
+
351 # if defined(__GNUC_MINOR__)
+
352 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
353 # endif
+
354 # if defined(__GNUC_PATCHLEVEL__)
+
355 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
356 # endif
+
357 
+
358 #elif defined(_MSC_VER)
+
359 # define COMPILER_ID "MSVC"
+
360  /* _MSC_VER = VVRR */
+
361 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
362 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
363 # if defined(_MSC_FULL_VER)
+
364 # if _MSC_VER >= 1400
+
365  /* _MSC_FULL_VER = VVRRPPPPP */
+
366 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
367 # else
+
368  /* _MSC_FULL_VER = VVRRPPPP */
+
369 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
370 # endif
+
371 # endif
+
372 # if defined(_MSC_BUILD)
+
373 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
374 # endif
+
375 
+
376 #elif defined(_ADI_COMPILER)
+
377 # define COMPILER_ID "ADSP"
+
378 #if defined(__VERSIONNUM__)
+
379  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
380 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
381 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
382 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
383 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
384 #endif
+
385 
+
386 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
387 # define COMPILER_ID "IAR"
+
388 # if defined(__VER__) && defined(__ICCARM__)
+
389 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
390 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
391 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
392 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
393 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
394 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
395 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
396 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
397 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
398 # endif
+
399 
+
400 
+
401 /* These compilers are either not known or too old to define an
+
402  identification macro. Try to identify the platform and guess that
+
403  it is the native compiler. */
+
404 #elif defined(__hpux) || defined(__hpua)
+
405 # define COMPILER_ID "HP"
+
406 
+
407 #else /* unknown compiler */
+
408 # define COMPILER_ID ""
+
409 #endif
+
410 
+
411 /* Construct the string literal in pieces to prevent the source from
+
412  getting matched. Store it in a pointer rather than an array
+
413  because some compilers will just produce instructions to fill the
+
414  array rather than assigning a pointer to a static array. */
+
415 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
416 #ifdef SIMULATE_ID
+
417 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
418 #endif
+
419 
+
420 #ifdef __QNXNTO__
+
421 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
422 #endif
+
423 
+
424 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
425 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
426 #endif
+
427 
+
428 #define STRINGIFY_HELPER(X) #X
+
429 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
430 
+
431 /* Identify known platforms by name. */
+
432 #if defined(__linux) || defined(__linux__) || defined(linux)
+
433 # define PLATFORM_ID "Linux"
+
434 
+
435 #elif defined(__MSYS__)
+
436 # define PLATFORM_ID "MSYS"
+
437 
+
438 #elif defined(__CYGWIN__)
+
439 # define PLATFORM_ID "Cygwin"
+
440 
+
441 #elif defined(__MINGW32__)
+
442 # define PLATFORM_ID "MinGW"
+
443 
+
444 #elif defined(__APPLE__)
+
445 # define PLATFORM_ID "Darwin"
+
446 
+
447 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
448 # define PLATFORM_ID "Windows"
+
449 
+
450 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
451 # define PLATFORM_ID "FreeBSD"
+
452 
+
453 #elif defined(__NetBSD__) || defined(__NetBSD)
+
454 # define PLATFORM_ID "NetBSD"
+
455 
+
456 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
457 # define PLATFORM_ID "OpenBSD"
+
458 
+
459 #elif defined(__sun) || defined(sun)
+
460 # define PLATFORM_ID "SunOS"
+
461 
+
462 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
463 # define PLATFORM_ID "AIX"
+
464 
+
465 #elif defined(__hpux) || defined(__hpux__)
+
466 # define PLATFORM_ID "HP-UX"
+
467 
+
468 #elif defined(__HAIKU__)
+
469 # define PLATFORM_ID "Haiku"
+
470 
+
471 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
472 # define PLATFORM_ID "BeOS"
+
473 
+
474 #elif defined(__QNX__) || defined(__QNXNTO__)
+
475 # define PLATFORM_ID "QNX"
+
476 
+
477 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
478 # define PLATFORM_ID "Tru64"
+
479 
+
480 #elif defined(__riscos) || defined(__riscos__)
+
481 # define PLATFORM_ID "RISCos"
+
482 
+
483 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
484 # define PLATFORM_ID "SINIX"
+
485 
+
486 #elif defined(__UNIX_SV__)
+
487 # define PLATFORM_ID "UNIX_SV"
+
488 
+
489 #elif defined(__bsdos__)
+
490 # define PLATFORM_ID "BSDOS"
+
491 
+
492 #elif defined(_MPRAS) || defined(MPRAS)
+
493 # define PLATFORM_ID "MP-RAS"
+
494 
+
495 #elif defined(__osf) || defined(__osf__)
+
496 # define PLATFORM_ID "OSF1"
+
497 
+
498 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
499 # define PLATFORM_ID "SCO_SV"
+
500 
+
501 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
502 # define PLATFORM_ID "ULTRIX"
+
503 
+
504 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
505 # define PLATFORM_ID "Xenix"
+
506 
+
507 #elif defined(__WATCOMC__)
+
508 # if defined(__LINUX__)
+
509 # define PLATFORM_ID "Linux"
+
510 
+
511 # elif defined(__DOS__)
+
512 # define PLATFORM_ID "DOS"
+
513 
+
514 # elif defined(__OS2__)
+
515 # define PLATFORM_ID "OS2"
+
516 
+
517 # elif defined(__WINDOWS__)
+
518 # define PLATFORM_ID "Windows3x"
+
519 
+
520 # elif defined(__VXWORKS__)
+
521 # define PLATFORM_ID "VxWorks"
+
522 
+
523 # else /* unknown platform */
+
524 # define PLATFORM_ID
+
525 # endif
+
526 
+
527 #elif defined(__INTEGRITY)
+
528 # if defined(INT_178B)
+
529 # define PLATFORM_ID "Integrity178"
+
530 
+
531 # else /* regular Integrity */
+
532 # define PLATFORM_ID "Integrity"
+
533 # endif
+
534 
+
535 # elif defined(_ADI_COMPILER)
+
536 # define PLATFORM_ID "ADSP"
+
537 
+
538 #else /* unknown platform */
+
539 # define PLATFORM_ID
+
540 
+
541 #endif
+
542 
+
543 /* For windows compilers MSVC and Intel we can determine
+
544  the architecture of the compiler being used. This is because
+
545  the compilers do not have flags that can change the architecture,
+
546  but rather depend on which compiler is being used
+
547 */
+
548 #if defined(_WIN32) && defined(_MSC_VER)
+
549 # if defined(_M_IA64)
+
550 # define ARCHITECTURE_ID "IA64"
+
551 
+
552 # elif defined(_M_ARM64EC)
+
553 # define ARCHITECTURE_ID "ARM64EC"
+
554 
+
555 # elif defined(_M_X64) || defined(_M_AMD64)
+
556 # define ARCHITECTURE_ID "x64"
+
557 
+
558 # elif defined(_M_IX86)
+
559 # define ARCHITECTURE_ID "X86"
+
560 
+
561 # elif defined(_M_ARM64)
+
562 # define ARCHITECTURE_ID "ARM64"
+
563 
+
564 # elif defined(_M_ARM)
+
565 # if _M_ARM == 4
+
566 # define ARCHITECTURE_ID "ARMV4I"
+
567 # elif _M_ARM == 5
+
568 # define ARCHITECTURE_ID "ARMV5I"
+
569 # else
+
570 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
571 # endif
+
572 
+
573 # elif defined(_M_MIPS)
+
574 # define ARCHITECTURE_ID "MIPS"
+
575 
+
576 # elif defined(_M_SH)
+
577 # define ARCHITECTURE_ID "SHx"
+
578 
+
579 # else /* unknown architecture */
+
580 # define ARCHITECTURE_ID ""
+
581 # endif
+
582 
+
583 #elif defined(__WATCOMC__)
+
584 # if defined(_M_I86)
+
585 # define ARCHITECTURE_ID "I86"
+
586 
+
587 # elif defined(_M_IX86)
+
588 # define ARCHITECTURE_ID "X86"
+
589 
+
590 # else /* unknown architecture */
+
591 # define ARCHITECTURE_ID ""
+
592 # endif
+
593 
+
594 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
595 # if defined(__ICCARM__)
+
596 # define ARCHITECTURE_ID "ARM"
+
597 
+
598 # elif defined(__ICCRX__)
+
599 # define ARCHITECTURE_ID "RX"
+
600 
+
601 # elif defined(__ICCRH850__)
+
602 # define ARCHITECTURE_ID "RH850"
+
603 
+
604 # elif defined(__ICCRL78__)
+
605 # define ARCHITECTURE_ID "RL78"
+
606 
+
607 # elif defined(__ICCRISCV__)
+
608 # define ARCHITECTURE_ID "RISCV"
+
609 
+
610 # elif defined(__ICCAVR__)
+
611 # define ARCHITECTURE_ID "AVR"
+
612 
+
613 # elif defined(__ICC430__)
+
614 # define ARCHITECTURE_ID "MSP430"
+
615 
+
616 # elif defined(__ICCV850__)
+
617 # define ARCHITECTURE_ID "V850"
+
618 
+
619 # elif defined(__ICC8051__)
+
620 # define ARCHITECTURE_ID "8051"
+
621 
+
622 # elif defined(__ICCSTM8__)
+
623 # define ARCHITECTURE_ID "STM8"
+
624 
+
625 # else /* unknown architecture */
+
626 # define ARCHITECTURE_ID ""
+
627 # endif
+
628 
+
629 #elif defined(__ghs__)
+
630 # if defined(__PPC64__)
+
631 # define ARCHITECTURE_ID "PPC64"
+
632 
+
633 # elif defined(__ppc__)
+
634 # define ARCHITECTURE_ID "PPC"
+
635 
+
636 # elif defined(__ARM__)
+
637 # define ARCHITECTURE_ID "ARM"
+
638 
+
639 # elif defined(__x86_64__)
+
640 # define ARCHITECTURE_ID "x64"
+
641 
+
642 # elif defined(__i386__)
+
643 # define ARCHITECTURE_ID "X86"
+
644 
+
645 # else /* unknown architecture */
+
646 # define ARCHITECTURE_ID ""
+
647 # endif
+
648 
+
649 #elif defined(__TI_COMPILER_VERSION__)
+
650 # if defined(__TI_ARM__)
+
651 # define ARCHITECTURE_ID "ARM"
+
652 
+
653 # elif defined(__MSP430__)
+
654 # define ARCHITECTURE_ID "MSP430"
+
655 
+
656 # elif defined(__TMS320C28XX__)
+
657 # define ARCHITECTURE_ID "TMS320C28x"
+
658 
+
659 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
660 # define ARCHITECTURE_ID "TMS320C6x"
+
661 
+
662 # else /* unknown architecture */
+
663 # define ARCHITECTURE_ID ""
+
664 # endif
+
665 
+
666 # elif defined(__ADSPSHARC__)
+
667 # define ARCHITECTURE_ID "SHARC"
+
668 
+
669 # elif defined(__ADSPBLACKFIN__)
+
670 # define ARCHITECTURE_ID "Blackfin"
+
671 
+
672 #else
+
673 # define ARCHITECTURE_ID
+
674 #endif
+
675 
+
676 /* Convert integer to decimal digit literals. */
+
677 #define DEC(n) \
+
678  ('0' + (((n) / 10000000)%10)), \
+
679  ('0' + (((n) / 1000000)%10)), \
+
680  ('0' + (((n) / 100000)%10)), \
+
681  ('0' + (((n) / 10000)%10)), \
+
682  ('0' + (((n) / 1000)%10)), \
+
683  ('0' + (((n) / 100)%10)), \
+
684  ('0' + (((n) / 10)%10)), \
+
685  ('0' + ((n) % 10))
+
686 
+
687 /* Convert integer to hex digit literals. */
+
688 #define HEX(n) \
+
689  ('0' + ((n)>>28 & 0xF)), \
+
690  ('0' + ((n)>>24 & 0xF)), \
+
691  ('0' + ((n)>>20 & 0xF)), \
+
692  ('0' + ((n)>>16 & 0xF)), \
+
693  ('0' + ((n)>>12 & 0xF)), \
+
694  ('0' + ((n)>>8 & 0xF)), \
+
695  ('0' + ((n)>>4 & 0xF)), \
+
696  ('0' + ((n) & 0xF))
+
697 
+
698 /* Construct a string literal encoding the version number. */
+
699 #ifdef COMPILER_VERSION
+
700 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
701 
+
702 /* Construct a string literal encoding the version number components. */
+
703 #elif defined(COMPILER_VERSION_MAJOR)
+
704 char const info_version[] = {
+
705  'I', 'N', 'F', 'O', ':',
+
706  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
707  COMPILER_VERSION_MAJOR,
+
708 # ifdef COMPILER_VERSION_MINOR
+
709  '.', COMPILER_VERSION_MINOR,
+
710 # ifdef COMPILER_VERSION_PATCH
+
711  '.', COMPILER_VERSION_PATCH,
+
712 # ifdef COMPILER_VERSION_TWEAK
+
713  '.', COMPILER_VERSION_TWEAK,
+
714 # endif
+
715 # endif
+
716 # endif
+
717  ']','\0'};
+
718 #endif
+
719 
+
720 /* Construct a string literal encoding the internal version number. */
+
721 #ifdef COMPILER_VERSION_INTERNAL
+
722 char const info_version_internal[] = {
+
723  'I', 'N', 'F', 'O', ':',
+
724  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
725  'i','n','t','e','r','n','a','l','[',
+
726  COMPILER_VERSION_INTERNAL,']','\0'};
+
727 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
728 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
729 #endif
+
730 
+
731 /* Construct a string literal encoding the version number components. */
+
732 #ifdef SIMULATE_VERSION_MAJOR
+
733 char const info_simulate_version[] = {
+
734  'I', 'N', 'F', 'O', ':',
+
735  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
736  SIMULATE_VERSION_MAJOR,
+
737 # ifdef SIMULATE_VERSION_MINOR
+
738  '.', SIMULATE_VERSION_MINOR,
+
739 # ifdef SIMULATE_VERSION_PATCH
+
740  '.', SIMULATE_VERSION_PATCH,
+
741 # ifdef SIMULATE_VERSION_TWEAK
+
742  '.', SIMULATE_VERSION_TWEAK,
+
743 # endif
+
744 # endif
+
745 # endif
+
746  ']','\0'};
+
747 #endif
+
748 
+
749 /* Construct the string literal in pieces to prevent the source from
+
750  getting matched. Store it in a pointer rather than an array
+
751  because some compilers will just produce instructions to fill the
+
752  array rather than assigning a pointer to a static array. */
+
753 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
754 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
755 
+
756 
+
757 
+
758 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
759 # if defined(__INTEL_CXX11_MODE__)
+
760 # if defined(__cpp_aggregate_nsdmi)
+
761 # define CXX_STD 201402L
+
762 # else
+
763 # define CXX_STD 201103L
+
764 # endif
+
765 # else
+
766 # define CXX_STD 199711L
+
767 # endif
+
768 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
769 # define CXX_STD _MSVC_LANG
+
770 #else
+
771 # define CXX_STD __cplusplus
+
772 #endif
+
773 
+
774 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
775 #if CXX_STD > 202002L
+
776  "23"
+
777 #elif CXX_STD > 201703L
+
778  "20"
+
779 #elif CXX_STD >= 201703L
+
780  "17"
+
781 #elif CXX_STD >= 201402L
+
782  "14"
+
783 #elif CXX_STD >= 201103L
+
784  "11"
+
785 #else
+
786  "98"
+
787 #endif
+
788 "]";
+
789 
+
790 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
791 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
792  defined(__TI_COMPILER_VERSION__)) && \
+
793  !defined(__STRICT_ANSI__)
+
794  "ON"
+
795 #else
+
796  "OFF"
+
797 #endif
+
798 "]";
+
799 
+
800 /*--------------------------------------------------------------------------*/
+
801 
+
802 int main(int argc, char* argv[])
+
803 {
+
804  int require = 0;
+
805  require += info_compiler[argc];
+
806  require += info_platform[argc];
+
807 #ifdef COMPILER_VERSION_MAJOR
+
808  require += info_version[argc];
+
809 #endif
+
810 #ifdef COMPILER_VERSION_INTERNAL
+
811  require += info_version_internal[argc];
+
812 #endif
+
813 #ifdef SIMULATE_ID
+
814  require += info_simulate[argc];
+
815 #endif
+
816 #ifdef SIMULATE_VERSION_MAJOR
+
817  require += info_simulate_version[argc];
+
818 #endif
+
819 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
820  require += info_cray[argc];
+
821 #endif
+
822  require += info_language_standard_default[argc];
+
823  require += info_language_extensions_default[argc];
+
824  (void)argv;
+
825  return require;
+
826 }
+
+
+ + + + diff --git a/docs/_release___o_n_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_n_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..557a32d --- /dev/null +++ b/docs/_release___o_n_2_c_make_files_23_825_81_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_ON/CMakeFiles/3.25.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/_release___o_n_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html b/docs/_release___o_n_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html new file mode 100644 index 0000000..0090b63 --- /dev/null +++ b/docs/_release___o_n_2_c_make_files_23_825_82_2_compiler_id_c_x_x_2_c_make_c_x_x_compiler_id_8cpp_source.html @@ -0,0 +1,960 @@ + + + + + + + +clutchlog: CMakeCXXCompilerId.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Release_ON/CMakeFiles/3.25.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
+
+
+
1 /* This source file must have a .cpp extension so that all C++ compilers
+
2  recognize the extension without flags. Borland does not know .cxx for
+
3  example. */
+
4 #ifndef __cplusplus
+
5 # error "A C compiler has been selected for C++."
+
6 #endif
+
7 
+
8 #if !defined(__has_include)
+
9 /* If the compiler does not have __has_include, pretend the answer is
+
10  always no. */
+
11 # define __has_include(x) 0
+
12 #endif
+
13 
+
14 
+
15 /* Version number components: V=Version, R=Revision, P=Patch
+
16  Version date components: YYYY=Year, MM=Month, DD=Day */
+
17 
+
18 #if defined(__COMO__)
+
19 # define COMPILER_ID "Comeau"
+
20  /* __COMO_VERSION__ = VRR */
+
21 # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
+
22 # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
+
23 
+
24 #elif defined(__INTEL_COMPILER) || defined(__ICC)
+
25 # define COMPILER_ID "Intel"
+
26 # if defined(_MSC_VER)
+
27 # define SIMULATE_ID "MSVC"
+
28 # endif
+
29 # if defined(__GNUC__)
+
30 # define SIMULATE_ID "GNU"
+
31 # endif
+
32  /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
+
33  except that a few beta releases use the old format with V=2021. */
+
34 # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
+
35 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
+
36 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
+
37 # if defined(__INTEL_COMPILER_UPDATE)
+
38 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
+
39 # else
+
40 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
+
41 # endif
+
42 # else
+
43 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
+
44 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
+
45  /* The third version component from --version is an update index,
+
46  but no macro is provided for it. */
+
47 # define COMPILER_VERSION_PATCH DEC(0)
+
48 # endif
+
49 # if defined(__INTEL_COMPILER_BUILD_DATE)
+
50  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
+
51 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
+
52 # endif
+
53 # if defined(_MSC_VER)
+
54  /* _MSC_VER = VVRR */
+
55 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
56 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
57 # endif
+
58 # if defined(__GNUC__)
+
59 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
60 # elif defined(__GNUG__)
+
61 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
62 # endif
+
63 # if defined(__GNUC_MINOR__)
+
64 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
65 # endif
+
66 # if defined(__GNUC_PATCHLEVEL__)
+
67 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
68 # endif
+
69 
+
70 #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
+
71 # define COMPILER_ID "IntelLLVM"
+
72 #if defined(_MSC_VER)
+
73 # define SIMULATE_ID "MSVC"
+
74 #endif
+
75 #if defined(__GNUC__)
+
76 # define SIMULATE_ID "GNU"
+
77 #endif
+
78 /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
+
79  * later. Look for 6 digit vs. 8 digit version number to decide encoding.
+
80  * VVVV is no smaller than the current year when a version is released.
+
81  */
+
82 #if __INTEL_LLVM_COMPILER < 1000000L
+
83 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
+
84 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
+
85 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
+
86 #else
+
87 # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
+
88 # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
+
89 # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
+
90 #endif
+
91 #if defined(_MSC_VER)
+
92  /* _MSC_VER = VVRR */
+
93 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
94 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
95 #endif
+
96 #if defined(__GNUC__)
+
97 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
98 #elif defined(__GNUG__)
+
99 # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
+
100 #endif
+
101 #if defined(__GNUC_MINOR__)
+
102 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
103 #endif
+
104 #if defined(__GNUC_PATCHLEVEL__)
+
105 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
106 #endif
+
107 
+
108 #elif defined(__PATHCC__)
+
109 # define COMPILER_ID "PathScale"
+
110 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+
111 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+
112 # if defined(__PATHCC_PATCHLEVEL__)
+
113 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+
114 # endif
+
115 
+
116 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
+
117 # define COMPILER_ID "Embarcadero"
+
118 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
+
119 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
+
120 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
+
121 
+
122 #elif defined(__BORLANDC__)
+
123 # define COMPILER_ID "Borland"
+
124  /* __BORLANDC__ = 0xVRR */
+
125 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
+
126 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
+
127 
+
128 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
+
129 # define COMPILER_ID "Watcom"
+
130  /* __WATCOMC__ = VVRR */
+
131 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+
132 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
133 # if (__WATCOMC__ % 10) > 0
+
134 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
135 # endif
+
136 
+
137 #elif defined(__WATCOMC__)
+
138 # define COMPILER_ID "OpenWatcom"
+
139  /* __WATCOMC__ = VVRP + 1100 */
+
140 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
+
141 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
+
142 # if (__WATCOMC__ % 10) > 0
+
143 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
+
144 # endif
+
145 
+
146 #elif defined(__SUNPRO_CC)
+
147 # define COMPILER_ID "SunPro"
+
148 # if __SUNPRO_CC >= 0x5100
+
149  /* __SUNPRO_CC = 0xVRRP */
+
150 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
+
151 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
+
152 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
153 # else
+
154  /* __SUNPRO_CC = 0xVRP */
+
155 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
+
156 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
+
157 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
+
158 # endif
+
159 
+
160 #elif defined(__HP_aCC)
+
161 # define COMPILER_ID "HP"
+
162  /* __HP_aCC = VVRRPP */
+
163 # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+
164 # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+
165 # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
+
166 
+
167 #elif defined(__DECCXX)
+
168 # define COMPILER_ID "Compaq"
+
169  /* __DECCXX_VER = VVRRTPPPP */
+
170 # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
+
171 # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
+
172 # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
+
173 
+
174 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
+
175 # define COMPILER_ID "zOS"
+
176  /* __IBMCPP__ = VRP */
+
177 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
178 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
179 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
180 
+
181 #elif defined(__open_xl__) && defined(__clang__)
+
182 # define COMPILER_ID "IBMClang"
+
183 # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
+
184 # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
+
185 # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
+
186 # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
+
187 
+
188 
+
189 #elif defined(__ibmxl__) && defined(__clang__)
+
190 # define COMPILER_ID "XLClang"
+
191 # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
+
192 # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
+
193 # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
+
194 # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
+
195 
+
196 
+
197 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
+
198 # define COMPILER_ID "XL"
+
199  /* __IBMCPP__ = VRP */
+
200 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
201 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
202 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
203 
+
204 #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
+
205 # define COMPILER_ID "VisualAge"
+
206  /* __IBMCPP__ = VRP */
+
207 # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
+
208 # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
+
209 # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
+
210 
+
211 #elif defined(__NVCOMPILER)
+
212 # define COMPILER_ID "NVHPC"
+
213 # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
+
214 # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
+
215 # if defined(__NVCOMPILER_PATCHLEVEL__)
+
216 # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
+
217 # endif
+
218 
+
219 #elif defined(__PGI)
+
220 # define COMPILER_ID "PGI"
+
221 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+
222 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+
223 # if defined(__PGIC_PATCHLEVEL__)
+
224 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+
225 # endif
+
226 
+
227 #elif defined(_CRAYC)
+
228 # define COMPILER_ID "Cray"
+
229 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
+
230 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
+
231 
+
232 #elif defined(__TI_COMPILER_VERSION__)
+
233 # define COMPILER_ID "TI"
+
234  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
+
235 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
+
236 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
+
237 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
+
238 
+
239 #elif defined(__CLANG_FUJITSU)
+
240 # define COMPILER_ID "FujitsuClang"
+
241 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
242 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
243 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
244 # define COMPILER_VERSION_INTERNAL_STR __clang_version__
+
245 
+
246 
+
247 #elif defined(__FUJITSU)
+
248 # define COMPILER_ID "Fujitsu"
+
249 # if defined(__FCC_version__)
+
250 # define COMPILER_VERSION __FCC_version__
+
251 # elif defined(__FCC_major__)
+
252 # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
+
253 # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
+
254 # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
+
255 # endif
+
256 # if defined(__fcc_version)
+
257 # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
+
258 # elif defined(__FCC_VERSION)
+
259 # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
+
260 # endif
+
261 
+
262 
+
263 #elif defined(__ghs__)
+
264 # define COMPILER_ID "GHS"
+
265 /* __GHS_VERSION_NUMBER = VVVVRP */
+
266 # ifdef __GHS_VERSION_NUMBER
+
267 # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
+
268 # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
+
269 # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
+
270 # endif
+
271 
+
272 #elif defined(__TASKING__)
+
273 # define COMPILER_ID "Tasking"
+
274  # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
+
275  # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
+
276 # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
+
277 
+
278 #elif defined(__SCO_VERSION__)
+
279 # define COMPILER_ID "SCO"
+
280 
+
281 #elif defined(__ARMCC_VERSION) && !defined(__clang__)
+
282 # define COMPILER_ID "ARMCC"
+
283 #if __ARMCC_VERSION >= 1000000
+
284  /* __ARMCC_VERSION = VRRPPPP */
+
285  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
+
286  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
+
287  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
288 #else
+
289  /* __ARMCC_VERSION = VRPPPP */
+
290  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
+
291  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
+
292  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
+
293 #endif
+
294 
+
295 
+
296 #elif defined(__clang__) && defined(__apple_build_version__)
+
297 # define COMPILER_ID "AppleClang"
+
298 # if defined(_MSC_VER)
+
299 # define SIMULATE_ID "MSVC"
+
300 # endif
+
301 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
302 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
303 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
304 # if defined(_MSC_VER)
+
305  /* _MSC_VER = VVRR */
+
306 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
307 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
308 # endif
+
309 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+
310 
+
311 #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
+
312 # define COMPILER_ID "ARMClang"
+
313  # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
+
314  # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
+
315  # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
+
316 # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
+
317 
+
318 #elif defined(__clang__)
+
319 # define COMPILER_ID "Clang"
+
320 # if defined(_MSC_VER)
+
321 # define SIMULATE_ID "MSVC"
+
322 # endif
+
323 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
+
324 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
+
325 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
+
326 # if defined(_MSC_VER)
+
327  /* _MSC_VER = VVRR */
+
328 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
+
329 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
+
330 # endif
+
331 
+
332 #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
+
333 # define COMPILER_ID "LCC"
+
334 # define COMPILER_VERSION_MAJOR DEC(1)
+
335 # if defined(__LCC__)
+
336 # define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
+
337 # endif
+
338 # if defined(__LCC_MINOR__)
+
339 # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
+
340 # endif
+
341 # if defined(__GNUC__) && defined(__GNUC_MINOR__)
+
342 # define SIMULATE_ID "GNU"
+
343 # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
+
344 # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
+
345 # if defined(__GNUC_PATCHLEVEL__)
+
346 # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
347 # endif
+
348 # endif
+
349 
+
350 #elif defined(__GNUC__) || defined(__GNUG__)
+
351 # define COMPILER_ID "GNU"
+
352 # if defined(__GNUC__)
+
353 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
+
354 # else
+
355 # define COMPILER_VERSION_MAJOR DEC(__GNUG__)
+
356 # endif
+
357 # if defined(__GNUC_MINOR__)
+
358 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
+
359 # endif
+
360 # if defined(__GNUC_PATCHLEVEL__)
+
361 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
+
362 # endif
+
363 
+
364 #elif defined(_MSC_VER)
+
365 # define COMPILER_ID "MSVC"
+
366  /* _MSC_VER = VVRR */
+
367 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
+
368 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
+
369 # if defined(_MSC_FULL_VER)
+
370 # if _MSC_VER >= 1400
+
371  /* _MSC_FULL_VER = VVRRPPPPP */
+
372 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
+
373 # else
+
374  /* _MSC_FULL_VER = VVRRPPPP */
+
375 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
+
376 # endif
+
377 # endif
+
378 # if defined(_MSC_BUILD)
+
379 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
+
380 # endif
+
381 
+
382 #elif defined(_ADI_COMPILER)
+
383 # define COMPILER_ID "ADSP"
+
384 #if defined(__VERSIONNUM__)
+
385  /* __VERSIONNUM__ = 0xVVRRPPTT */
+
386 # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
+
387 # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
+
388 # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
+
389 # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
+
390 #endif
+
391 
+
392 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
393 # define COMPILER_ID "IAR"
+
394 # if defined(__VER__) && defined(__ICCARM__)
+
395 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
+
396 # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
+
397 # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
+
398 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
399 # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
+
400 # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
+
401 # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
+
402 # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
+
403 # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
+
404 # endif
+
405 
+
406 
+
407 /* These compilers are either not known or too old to define an
+
408  identification macro. Try to identify the platform and guess that
+
409  it is the native compiler. */
+
410 #elif defined(__hpux) || defined(__hpua)
+
411 # define COMPILER_ID "HP"
+
412 
+
413 #else /* unknown compiler */
+
414 # define COMPILER_ID ""
+
415 #endif
+
416 
+
417 /* Construct the string literal in pieces to prevent the source from
+
418  getting matched. Store it in a pointer rather than an array
+
419  because some compilers will just produce instructions to fill the
+
420  array rather than assigning a pointer to a static array. */
+
421 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
+
422 #ifdef SIMULATE_ID
+
423 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
+
424 #endif
+
425 
+
426 #ifdef __QNXNTO__
+
427 char const* qnxnto = "INFO" ":" "qnxnto[]";
+
428 #endif
+
429 
+
430 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
431 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
+
432 #endif
+
433 
+
434 #define STRINGIFY_HELPER(X) #X
+
435 #define STRINGIFY(X) STRINGIFY_HELPER(X)
+
436 
+
437 /* Identify known platforms by name. */
+
438 #if defined(__linux) || defined(__linux__) || defined(linux)
+
439 # define PLATFORM_ID "Linux"
+
440 
+
441 #elif defined(__MSYS__)
+
442 # define PLATFORM_ID "MSYS"
+
443 
+
444 #elif defined(__CYGWIN__)
+
445 # define PLATFORM_ID "Cygwin"
+
446 
+
447 #elif defined(__MINGW32__)
+
448 # define PLATFORM_ID "MinGW"
+
449 
+
450 #elif defined(__APPLE__)
+
451 # define PLATFORM_ID "Darwin"
+
452 
+
453 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
+
454 # define PLATFORM_ID "Windows"
+
455 
+
456 #elif defined(__FreeBSD__) || defined(__FreeBSD)
+
457 # define PLATFORM_ID "FreeBSD"
+
458 
+
459 #elif defined(__NetBSD__) || defined(__NetBSD)
+
460 # define PLATFORM_ID "NetBSD"
+
461 
+
462 #elif defined(__OpenBSD__) || defined(__OPENBSD)
+
463 # define PLATFORM_ID "OpenBSD"
+
464 
+
465 #elif defined(__sun) || defined(sun)
+
466 # define PLATFORM_ID "SunOS"
+
467 
+
468 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
+
469 # define PLATFORM_ID "AIX"
+
470 
+
471 #elif defined(__hpux) || defined(__hpux__)
+
472 # define PLATFORM_ID "HP-UX"
+
473 
+
474 #elif defined(__HAIKU__)
+
475 # define PLATFORM_ID "Haiku"
+
476 
+
477 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
+
478 # define PLATFORM_ID "BeOS"
+
479 
+
480 #elif defined(__QNX__) || defined(__QNXNTO__)
+
481 # define PLATFORM_ID "QNX"
+
482 
+
483 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
+
484 # define PLATFORM_ID "Tru64"
+
485 
+
486 #elif defined(__riscos) || defined(__riscos__)
+
487 # define PLATFORM_ID "RISCos"
+
488 
+
489 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
+
490 # define PLATFORM_ID "SINIX"
+
491 
+
492 #elif defined(__UNIX_SV__)
+
493 # define PLATFORM_ID "UNIX_SV"
+
494 
+
495 #elif defined(__bsdos__)
+
496 # define PLATFORM_ID "BSDOS"
+
497 
+
498 #elif defined(_MPRAS) || defined(MPRAS)
+
499 # define PLATFORM_ID "MP-RAS"
+
500 
+
501 #elif defined(__osf) || defined(__osf__)
+
502 # define PLATFORM_ID "OSF1"
+
503 
+
504 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
+
505 # define PLATFORM_ID "SCO_SV"
+
506 
+
507 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
+
508 # define PLATFORM_ID "ULTRIX"
+
509 
+
510 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
+
511 # define PLATFORM_ID "Xenix"
+
512 
+
513 #elif defined(__WATCOMC__)
+
514 # if defined(__LINUX__)
+
515 # define PLATFORM_ID "Linux"
+
516 
+
517 # elif defined(__DOS__)
+
518 # define PLATFORM_ID "DOS"
+
519 
+
520 # elif defined(__OS2__)
+
521 # define PLATFORM_ID "OS2"
+
522 
+
523 # elif defined(__WINDOWS__)
+
524 # define PLATFORM_ID "Windows3x"
+
525 
+
526 # elif defined(__VXWORKS__)
+
527 # define PLATFORM_ID "VxWorks"
+
528 
+
529 # else /* unknown platform */
+
530 # define PLATFORM_ID
+
531 # endif
+
532 
+
533 #elif defined(__INTEGRITY)
+
534 # if defined(INT_178B)
+
535 # define PLATFORM_ID "Integrity178"
+
536 
+
537 # else /* regular Integrity */
+
538 # define PLATFORM_ID "Integrity"
+
539 # endif
+
540 
+
541 # elif defined(_ADI_COMPILER)
+
542 # define PLATFORM_ID "ADSP"
+
543 
+
544 #else /* unknown platform */
+
545 # define PLATFORM_ID
+
546 
+
547 #endif
+
548 
+
549 /* For windows compilers MSVC and Intel we can determine
+
550  the architecture of the compiler being used. This is because
+
551  the compilers do not have flags that can change the architecture,
+
552  but rather depend on which compiler is being used
+
553 */
+
554 #if defined(_WIN32) && defined(_MSC_VER)
+
555 # if defined(_M_IA64)
+
556 # define ARCHITECTURE_ID "IA64"
+
557 
+
558 # elif defined(_M_ARM64EC)
+
559 # define ARCHITECTURE_ID "ARM64EC"
+
560 
+
561 # elif defined(_M_X64) || defined(_M_AMD64)
+
562 # define ARCHITECTURE_ID "x64"
+
563 
+
564 # elif defined(_M_IX86)
+
565 # define ARCHITECTURE_ID "X86"
+
566 
+
567 # elif defined(_M_ARM64)
+
568 # define ARCHITECTURE_ID "ARM64"
+
569 
+
570 # elif defined(_M_ARM)
+
571 # if _M_ARM == 4
+
572 # define ARCHITECTURE_ID "ARMV4I"
+
573 # elif _M_ARM == 5
+
574 # define ARCHITECTURE_ID "ARMV5I"
+
575 # else
+
576 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
+
577 # endif
+
578 
+
579 # elif defined(_M_MIPS)
+
580 # define ARCHITECTURE_ID "MIPS"
+
581 
+
582 # elif defined(_M_SH)
+
583 # define ARCHITECTURE_ID "SHx"
+
584 
+
585 # else /* unknown architecture */
+
586 # define ARCHITECTURE_ID ""
+
587 # endif
+
588 
+
589 #elif defined(__WATCOMC__)
+
590 # if defined(_M_I86)
+
591 # define ARCHITECTURE_ID "I86"
+
592 
+
593 # elif defined(_M_IX86)
+
594 # define ARCHITECTURE_ID "X86"
+
595 
+
596 # else /* unknown architecture */
+
597 # define ARCHITECTURE_ID ""
+
598 # endif
+
599 
+
600 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
+
601 # if defined(__ICCARM__)
+
602 # define ARCHITECTURE_ID "ARM"
+
603 
+
604 # elif defined(__ICCRX__)
+
605 # define ARCHITECTURE_ID "RX"
+
606 
+
607 # elif defined(__ICCRH850__)
+
608 # define ARCHITECTURE_ID "RH850"
+
609 
+
610 # elif defined(__ICCRL78__)
+
611 # define ARCHITECTURE_ID "RL78"
+
612 
+
613 # elif defined(__ICCRISCV__)
+
614 # define ARCHITECTURE_ID "RISCV"
+
615 
+
616 # elif defined(__ICCAVR__)
+
617 # define ARCHITECTURE_ID "AVR"
+
618 
+
619 # elif defined(__ICC430__)
+
620 # define ARCHITECTURE_ID "MSP430"
+
621 
+
622 # elif defined(__ICCV850__)
+
623 # define ARCHITECTURE_ID "V850"
+
624 
+
625 # elif defined(__ICC8051__)
+
626 # define ARCHITECTURE_ID "8051"
+
627 
+
628 # elif defined(__ICCSTM8__)
+
629 # define ARCHITECTURE_ID "STM8"
+
630 
+
631 # else /* unknown architecture */
+
632 # define ARCHITECTURE_ID ""
+
633 # endif
+
634 
+
635 #elif defined(__ghs__)
+
636 # if defined(__PPC64__)
+
637 # define ARCHITECTURE_ID "PPC64"
+
638 
+
639 # elif defined(__ppc__)
+
640 # define ARCHITECTURE_ID "PPC"
+
641 
+
642 # elif defined(__ARM__)
+
643 # define ARCHITECTURE_ID "ARM"
+
644 
+
645 # elif defined(__x86_64__)
+
646 # define ARCHITECTURE_ID "x64"
+
647 
+
648 # elif defined(__i386__)
+
649 # define ARCHITECTURE_ID "X86"
+
650 
+
651 # else /* unknown architecture */
+
652 # define ARCHITECTURE_ID ""
+
653 # endif
+
654 
+
655 #elif defined(__TI_COMPILER_VERSION__)
+
656 # if defined(__TI_ARM__)
+
657 # define ARCHITECTURE_ID "ARM"
+
658 
+
659 # elif defined(__MSP430__)
+
660 # define ARCHITECTURE_ID "MSP430"
+
661 
+
662 # elif defined(__TMS320C28XX__)
+
663 # define ARCHITECTURE_ID "TMS320C28x"
+
664 
+
665 # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
+
666 # define ARCHITECTURE_ID "TMS320C6x"
+
667 
+
668 # else /* unknown architecture */
+
669 # define ARCHITECTURE_ID ""
+
670 # endif
+
671 
+
672 # elif defined(__ADSPSHARC__)
+
673 # define ARCHITECTURE_ID "SHARC"
+
674 
+
675 # elif defined(__ADSPBLACKFIN__)
+
676 # define ARCHITECTURE_ID "Blackfin"
+
677 
+
678 #elif defined(__TASKING__)
+
679 
+
680 # if defined(__CTC__) || defined(__CPTC__)
+
681 # define ARCHITECTURE_ID "TriCore"
+
682 
+
683 # elif defined(__CMCS__)
+
684 # define ARCHITECTURE_ID "MCS"
+
685 
+
686 # elif defined(__CARM__)
+
687 # define ARCHITECTURE_ID "ARM"
+
688 
+
689 # elif defined(__CARC__)
+
690 # define ARCHITECTURE_ID "ARC"
+
691 
+
692 # elif defined(__C51__)
+
693 # define ARCHITECTURE_ID "8051"
+
694 
+
695 # elif defined(__CPCP__)
+
696 # define ARCHITECTURE_ID "PCP"
+
697 
+
698 # else
+
699 # define ARCHITECTURE_ID ""
+
700 # endif
+
701 
+
702 #else
+
703 # define ARCHITECTURE_ID
+
704 #endif
+
705 
+
706 /* Convert integer to decimal digit literals. */
+
707 #define DEC(n) \
+
708  ('0' + (((n) / 10000000)%10)), \
+
709  ('0' + (((n) / 1000000)%10)), \
+
710  ('0' + (((n) / 100000)%10)), \
+
711  ('0' + (((n) / 10000)%10)), \
+
712  ('0' + (((n) / 1000)%10)), \
+
713  ('0' + (((n) / 100)%10)), \
+
714  ('0' + (((n) / 10)%10)), \
+
715  ('0' + ((n) % 10))
+
716 
+
717 /* Convert integer to hex digit literals. */
+
718 #define HEX(n) \
+
719  ('0' + ((n)>>28 & 0xF)), \
+
720  ('0' + ((n)>>24 & 0xF)), \
+
721  ('0' + ((n)>>20 & 0xF)), \
+
722  ('0' + ((n)>>16 & 0xF)), \
+
723  ('0' + ((n)>>12 & 0xF)), \
+
724  ('0' + ((n)>>8 & 0xF)), \
+
725  ('0' + ((n)>>4 & 0xF)), \
+
726  ('0' + ((n) & 0xF))
+
727 
+
728 /* Construct a string literal encoding the version number. */
+
729 #ifdef COMPILER_VERSION
+
730 char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
+
731 
+
732 /* Construct a string literal encoding the version number components. */
+
733 #elif defined(COMPILER_VERSION_MAJOR)
+
734 char const info_version[] = {
+
735  'I', 'N', 'F', 'O', ':',
+
736  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
+
737  COMPILER_VERSION_MAJOR,
+
738 # ifdef COMPILER_VERSION_MINOR
+
739  '.', COMPILER_VERSION_MINOR,
+
740 # ifdef COMPILER_VERSION_PATCH
+
741  '.', COMPILER_VERSION_PATCH,
+
742 # ifdef COMPILER_VERSION_TWEAK
+
743  '.', COMPILER_VERSION_TWEAK,
+
744 # endif
+
745 # endif
+
746 # endif
+
747  ']','\0'};
+
748 #endif
+
749 
+
750 /* Construct a string literal encoding the internal version number. */
+
751 #ifdef COMPILER_VERSION_INTERNAL
+
752 char const info_version_internal[] = {
+
753  'I', 'N', 'F', 'O', ':',
+
754  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
+
755  'i','n','t','e','r','n','a','l','[',
+
756  COMPILER_VERSION_INTERNAL,']','\0'};
+
757 #elif defined(COMPILER_VERSION_INTERNAL_STR)
+
758 char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
+
759 #endif
+
760 
+
761 /* Construct a string literal encoding the version number components. */
+
762 #ifdef SIMULATE_VERSION_MAJOR
+
763 char const info_simulate_version[] = {
+
764  'I', 'N', 'F', 'O', ':',
+
765  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
+
766  SIMULATE_VERSION_MAJOR,
+
767 # ifdef SIMULATE_VERSION_MINOR
+
768  '.', SIMULATE_VERSION_MINOR,
+
769 # ifdef SIMULATE_VERSION_PATCH
+
770  '.', SIMULATE_VERSION_PATCH,
+
771 # ifdef SIMULATE_VERSION_TWEAK
+
772  '.', SIMULATE_VERSION_TWEAK,
+
773 # endif
+
774 # endif
+
775 # endif
+
776  ']','\0'};
+
777 #endif
+
778 
+
779 /* Construct the string literal in pieces to prevent the source from
+
780  getting matched. Store it in a pointer rather than an array
+
781  because some compilers will just produce instructions to fill the
+
782  array rather than assigning a pointer to a static array. */
+
783 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
+
784 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
+
785 
+
786 
+
787 
+
788 #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
+
789 # if defined(__INTEL_CXX11_MODE__)
+
790 # if defined(__cpp_aggregate_nsdmi)
+
791 # define CXX_STD 201402L
+
792 # else
+
793 # define CXX_STD 201103L
+
794 # endif
+
795 # else
+
796 # define CXX_STD 199711L
+
797 # endif
+
798 #elif defined(_MSC_VER) && defined(_MSVC_LANG)
+
799 # define CXX_STD _MSVC_LANG
+
800 #else
+
801 # define CXX_STD __cplusplus
+
802 #endif
+
803 
+
804 const char* info_language_standard_default = "INFO" ":" "standard_default["
+
805 #if CXX_STD > 202002L
+
806  "23"
+
807 #elif CXX_STD > 201703L
+
808  "20"
+
809 #elif CXX_STD >= 201703L
+
810  "17"
+
811 #elif CXX_STD >= 201402L
+
812  "14"
+
813 #elif CXX_STD >= 201103L
+
814  "11"
+
815 #else
+
816  "98"
+
817 #endif
+
818 "]";
+
819 
+
820 const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+
821 #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
+
822  defined(__TI_COMPILER_VERSION__)) && \
+
823  !defined(__STRICT_ANSI__)
+
824  "ON"
+
825 #else
+
826  "OFF"
+
827 #endif
+
828 "]";
+
829 
+
830 /*--------------------------------------------------------------------------*/
+
831 
+
832 int main(int argc, char* argv[])
+
833 {
+
834  int require = 0;
+
835  require += info_compiler[argc];
+
836  require += info_platform[argc];
+
837  require += info_arch[argc];
+
838 #ifdef COMPILER_VERSION_MAJOR
+
839  require += info_version[argc];
+
840 #endif
+
841 #ifdef COMPILER_VERSION_INTERNAL
+
842  require += info_version_internal[argc];
+
843 #endif
+
844 #ifdef SIMULATE_ID
+
845  require += info_simulate[argc];
+
846 #endif
+
847 #ifdef SIMULATE_VERSION_MAJOR
+
848  require += info_simulate_version[argc];
+
849 #endif
+
850 #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
+
851  require += info_cray[argc];
+
852 #endif
+
853  require += info_language_standard_default[argc];
+
854  require += info_language_extensions_default[argc];
+
855  (void)argv;
+
856  return require;
+
857 }
+
+
+ + + + diff --git a/docs/annotated.html b/docs/annotated.html index df2e41a..a0df3f9 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +
+ - + diff --git a/docs/annotated_dup.js b/docs/annotated_dup.js new file mode 100644 index 0000000..ba262c4 --- /dev/null +++ b/docs/annotated_dup.js @@ -0,0 +1,4 @@ +var annotated_dup = +[ + [ "clutchlog", "classclutchlog.html", "classclutchlog" ] +]; \ No newline at end of file diff --git a/docs/classclutchlog-members.html b/docs/classclutchlog-members.html index 82a96d4..3d10653 100644 --- a/docs/classclutchlog-members.html +++ b/docs/classclutchlog-members.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
-
clutchlog Member List
@@ -81,54 +103,58 @@ $(function() {
_strip_callsclutchlogprotected
_word_levelclutchlogprotected
clutchlog(clutchlog const &)=delete (defined in clutchlog)clutchlog
critical enum value (defined in clutchlog)clutchlog
debug enum value (defined in clutchlog)clutchlog
default_depth_markclutchloginlineprotectedstatic
default_formatclutchloginlineprotectedstatic
default_hfill_charclutchloginlineprotectedstatic
default_hfill_maxclutchloginlineprotectedstatic
default_strip_callsclutchloginlineprotectedstatic
dump(const level &stage, const In container_begin, const In container_end, const std::string &file, const std::string &func, size_t line, const std::string &filename_template="dump_{n}.dat", const std::string sep=dump_default_sep) constclutchloginline
dump_default_formatclutchloginlineprotectedstatic
dump_default_sepclutchloginlineprotectedstatic
error enum value (defined in clutchlog)clutchlog
file(std::string file)clutchloginline
format(const std::string &format)clutchloginline
format() constclutchloginline
format(std::string row, const std::string &what, const level &stage, const std::string &file, const std::string &func, const size_t line) constclutchloginline
format_comment(const std::string &format)clutchloginline
format_comment() constclutchloginline
func(std::string func)clutchloginline
info enum value (defined in clutchlog)clutchlog
level enum nameclutchlog
level_of(const std::string name)clutchloginline
levels() constclutchloginline
line(std::string line)clutchloginline
locate(const level &stage, const std::string &file, const std::string &func, const size_t line) constclutchloginline
location(const std::string &in_file, const std::string &in_function=".*", const std::string &in_line=".*")clutchloginline
log(const level &stage, const std::string &what, const std::string &file, const std::string &func, size_t line) constclutchloginline
logger()clutchloginlinestatic
note enum value (defined in clutchlog)clutchlog
operator=(clutchlog const &)=delete (defined in clutchlog)clutchlog
out(std::ostream &out)clutchloginline
out()clutchloginline
progress enum value (defined in clutchlog)clutchlog
replace(const std::string &form, const std::string &mark, const std::string &tag) constclutchloginline
replace(const std::string &form, const std::string &mark, const size_t tag) constclutchloginline
style(level stage, FMT... styles)clutchloginline
style(level stage, fmt style)clutchloginline
style(level stage) constclutchloginline
threshold(level l)clutchloginline
threshold(const std::string &l)clutchloginline
threshold() constclutchloginline
warning enum value (defined in clutchlog)clutchlog
xdebug enum value (defined in clutchlog)clutchlog
clutchlog() (defined in clutchlog)clutchloginlineprivate
critical enum value (defined in clutchlog)clutchlog
debug enum value (defined in clutchlog)clutchlog
default_depth_markclutchloginlineprotectedstatic
default_formatclutchloginlineprotectedstatic
default_hfill_charclutchloginlineprotectedstatic
default_hfill_maxclutchloginlineprotectedstatic
default_strip_callsclutchloginlineprotectedstatic
dump(const level &stage, const In container_begin, const In container_end, const std::string &file, const std::string &func, size_t line, const std::string &filename_template="dump_{n}.dat", const std::string sep=dump_default_sep) constclutchloginline
dump_default_formatclutchloginlineprotectedstatic
dump_default_sepclutchloginlineprotectedstatic
error enum value (defined in clutchlog)clutchlog
file(std::string file)clutchloginline
format(const std::string &format)clutchloginline
format() constclutchloginline
format(std::string row, const std::string &what, const level &stage, const std::string &file, const std::string &func, const size_t line) constclutchloginline
format_comment(const std::string &format)clutchloginline
format_comment() constclutchloginline
func(std::string func)clutchloginline
info enum value (defined in clutchlog)clutchlog
level enum nameclutchlog
level_of(const std::string name)clutchloginline
levels() constclutchloginline
line(std::string line)clutchloginline
locate(const level &stage, const std::string &file, const std::string &func, const size_t line) constclutchloginline
location(const std::string &in_file, const std::string &in_function=".*", const std::string &in_line=".*")clutchloginline
log(const level &stage, const std::string &what, const std::string &file, const std::string &func, size_t line) constclutchloginline
logger()clutchloginlinestatic
note enum value (defined in clutchlog)clutchlog
operator=(clutchlog const &)=delete (defined in clutchlog)clutchlog
out(std::ostream &out)clutchloginline
out()clutchloginline
progress enum value (defined in clutchlog)clutchlog
replace(const std::string &form, const std::string &mark, const std::string &tag) constclutchloginline
replace(const std::string &form, const std::string &mark, const size_t tag) constclutchloginline
style(level stage, FMT... styles)clutchloginline
style(level stage, fmt style)clutchloginline
style(level stage) constclutchloginline
threshold(level l)clutchloginline
threshold(const std::string &l)clutchloginline
threshold() constclutchloginline
warning enum value (defined in clutchlog)clutchlog
xdebug enum value (defined in clutchlog)clutchlog
+ - + diff --git a/docs/classclutchlog.html b/docs/classclutchlog.html index 52c88ce..c423188 100644 --- a/docs/classclutchlog.html +++ b/docs/classclutchlog.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
-
-
clutchlog Class Reference
+
clutchlog Class Reference
@@ -74,16 +96,12 @@ $(function() { More...

#include <clutchlog.h>

- - - - - - - - -

-Classes

class  fmt
 Color and style formatter for ANSI terminal escape sequences. More...
 
struct  scope_t
 Structure holding a location matching. More...
 
+

Detailed Description

+

The single class which holds everything.

+

This is a Singleton class.

+ +

Definition at line 177 of file clutchlog.h.

+
@@ -188,27 +206,27 @@ template<class In > Static Protected Attributes +static std::string  +static std::string  +static std::string  +static std::string  +static unsigned int  +static char 

Public Member Functions

Configuration accessors
Default configuration members
-static std::string default_format = CLUTCHLOG_DEFAULT_FORMAT
default_format = CLUTCHLOG_DEFAULT_FORMAT
 Default format of the messages.
 
-static std::string dump_default_format = CLUTCHDUMP_DEFAULT_FORMAT
dump_default_format = CLUTCHDUMP_DEFAULT_FORMAT
 Default format of the comment line in file dump.
 
-static std::string dump_default_sep = CLUTCHDUMP_DEFAULT_SEP
dump_default_sep = CLUTCHDUMP_DEFAULT_SEP
 Default item separator for dump.
 
-static std::string default_depth_mark = CLUTCHLOG_DEFAULT_DEPTH_MARK
default_depth_mark = CLUTCHLOG_DEFAULT_DEPTH_MARK
 Default mark for stack depth.
 
-static unsigned int default_strip_calls = CLUTCHLOG_STRIP_CALLS
default_strip_calls = CLUTCHLOG_STRIP_CALLS
 Number of call stack levels to remove from depth display by default.
 
-static char default_hfill_char = CLUTCHLOG_HFILL_MARK
default_hfill_char = CLUTCHLOG_HFILL_MARK
 Default character used as a filling for right-align the right part of messages with "{hfill}".
 
@@ -216,6 +234,15 @@ static size_t  Default maximum number of character used as a filling for right-align the right part of messages with "{hfill}".
 
+ + + + + + + +

+Classes

class  fmt
 Color and style formatter for ANSI terminal escape sequences. More...
 
struct  scope_t
 Structure holding a location matching. More...
 
+ +

High-level API

enum  level {
@@ -288,11 +315,41 @@ std::regex 
void operator= (clutchlog const &)=delete
 
clutchlog ()
 
-

Detailed Description

-

The single class which holds everything.

-

This is a Singleton class.

-

Member Function Documentation

+

Member Function Documentation

+ +

◆ logger()

+ +
+
+ + + + + +
+ + + + + + + +
static clutchlog& clutchlog::logger ()
+
+inlinestatic
+
+ +

Get the logger instance.

+
+
+

Definition at line 291 of file clutchlog.h.

+ +
+

◆ level_of()

@@ -320,34 +377,59 @@ void 
operator= (Return the log level tag corresponding to the given pre-configured name.

Note
This is case sensitive, see the pre-configured _level_word.
+

Definition at line 606 of file clutchlog.h.

+ +

References _word_level.

+ +

Referenced by threshold().

+ - -

◆ logger()

+ +

◆ style()

+
+template<class ... FMT>
+inline
- + - + + + + + + + + + + + +
static clutchlog& clutchlog::logger void clutchlog::style ()level stage,
FMT... styles 
)
-inlinestatic
-

Get the logger instance.

-
-
+

Set the style (color and typo) of the given log level.

+

This version accept style arguments as if they were passed to clutchlog::fmt.

+ +

Definition at line 640 of file clutchlog.h.

+ +

References style().

+ +

Referenced by style().

+
@@ -394,60 +476,27 @@ void 
operator= (
log.replace("{greet} {world}", "\\{greet\\}", "hello");
// returns "hello {world}"
- - - -

◆ style()

+

Definition at line 729 of file clutchlog.h.

-
-
-
-template<class ... FMT>
- - - - - -
- - - - - - - - - - - - - - - - - - -
void clutchlog::style (level stage,
FMT... styles 
)
-
-inline
-
- -

Set the style (color and typo) of the given log level.

-

This version accept style arguments as if they were passed to clutchlog::fmt.

+

Referenced by dump(), format(), and replace().


The documentation for this class was generated from the following file: -
void log(const level &stage, const std::string &what, const std::string &file, const std::string &func, size_t line) const
Print a log message IF the location matches the given one.
Definition: clutchlog.h:891
-
static clutchlog & logger()
Get the logger instance.
Definition: clutchlog.h:291
+ +
void log(const level &stage, const std::string &what, const std::string &file, const std::string &func, size_t line) const
Print a log message IF the location matches the given one.
Definition: clutchlog.h:891
+
static clutchlog & logger()
Get the logger instance.
Definition: clutchlog.h:291
- + diff --git a/docs/classclutchlog.js b/docs/classclutchlog.js new file mode 100644 index 0000000..fa191d7 --- /dev/null +++ b/docs/classclutchlog.js @@ -0,0 +1,60 @@ +var classclutchlog = +[ + [ "scope_t", "structclutchlog_1_1scope__t.html", "structclutchlog_1_1scope__t" ], + [ "clutchlog", "classclutchlog.html#a0906d74275cedcd403da94879764815e", null ], + [ "clutchlog", "classclutchlog.html#a03b145e36f15435a640bb5a885d9f642", null ], + [ "logger", "classclutchlog.html#acfaceb77da01503b432644a3efaee4fa", null ], + [ "operator=", "classclutchlog.html#aef653a9744a72a889ca8163269bb781e", null ], + [ "format", "classclutchlog.html#a656c277e074b64728cca871f2b484d1c", null ], + [ "format", "classclutchlog.html#afc53dbca51d0e2322a21899d0c571a80", null ], + [ "format_comment", "classclutchlog.html#a2144abe4ec6f630126b6490908b5f924", null ], + [ "format_comment", "classclutchlog.html#aa8d0a569ed3623ce36c5e567ec2d1ad5", null ], + [ "out", "classclutchlog.html#a7fd7c7bd3668c537061c314a619a336d", null ], + [ "out", "classclutchlog.html#a6c6ab42a1df147e6c2d115bc36ec8266", null ], + [ "threshold", "classclutchlog.html#a3cb0e4f43a4cadf1966001ad7c9861f4", null ], + [ "threshold", "classclutchlog.html#a7a7738eaad114bfa870121412fe23ad9", null ], + [ "threshold", "classclutchlog.html#ab45287cc9c14217904a13aff49573732", null ], + [ "levels", "classclutchlog.html#aff3aa09fb60f7d6dc688c028d3834d8a", null ], + [ "level_of", "classclutchlog.html#acebed8c9df9204f22bf8488e62e1cedd", null ], + [ "file", "classclutchlog.html#a10064493c22f5c03b502a42d814c5c5c", null ], + [ "func", "classclutchlog.html#ad32b5a0274dc03ee0004f67ba58b2447", null ], + [ "line", "classclutchlog.html#aa26c6b81ebaeb9e9daa3457e3a3d17c9", null ], + [ "location", "classclutchlog.html#a6666106b9e5c239b6ae5e0d1091648e3", null ], + [ "style", "classclutchlog.html#ac3ec55057b9c734b66f169bf43dbd591", null ], + [ "style", "classclutchlog.html#ad1cfa9945c3f7f98fe8ce724c627d0d6", null ], + [ "style", "classclutchlog.html#a4831f44fd5ade102e57320632095934d", null ], + [ "locate", "classclutchlog.html#a4ebdfcded6c56262676bf6926d63fc96", null ], + [ "replace", "classclutchlog.html#a972f895c70edc335f3018a2c8971d59e", null ], + [ "replace", "classclutchlog.html#ae90d5a1a428587ad67b38b2ea4ca9fa2", null ], + [ "format", "classclutchlog.html#abd692cca9a2e772e7c9d6531bb3c7761", null ], + [ "log", "classclutchlog.html#a23dbb98f0d3c5cc21c232cde16cf317a", null ], + [ "dump", "classclutchlog.html#a63308e8deae3cfec6801318203494143", null ], + [ "default_format", "classclutchlog.html#a0c4ac57601e6f8d146fd5cc060968ecc", null ], + [ "dump_default_format", "classclutchlog.html#ace879554298e6e6e36dafef330c27be8", null ], + [ "dump_default_sep", "classclutchlog.html#af898bffe23b125245e338d7495c76d45", null ], + [ "default_depth_mark", "classclutchlog.html#a229fd61519f1245282440120f2d45fb5", null ], + [ "default_strip_calls", "classclutchlog.html#a1a8cb6411726133208f5a2f2cb42d468", null ], + [ "default_hfill_char", "classclutchlog.html#a76eb34537b634aadb75e255f7887eeb6", null ], + [ "default_hfill_max", "classclutchlog.html#ac95630bfe9cf547d2b7c4b3430eaedc1", null ], + [ "_strip_calls", "classclutchlog.html#a356df86455409193792b6ed550dfd09e", null ], + [ "_level_word", "classclutchlog.html#ab1c377a376e6772fe1746ff7147c125f", null ], + [ "_word_level", "classclutchlog.html#abd4625bf211bfbaa30d9c126fa3d7888", null ], + [ "_level_fmt", "classclutchlog.html#ab805ac5c33885459f9f752518a4aa735", null ], + [ "_format_log", "classclutchlog.html#a7c6e3fc082bc6f55d50131ed2b32e81e", null ], + [ "_format_dump", "classclutchlog.html#a5f4ddb57ce42e8be86a7c7d269f7bae5", null ], + [ "_out", "classclutchlog.html#a1896f6c4b8597e3e76ff93970bd85167", null ], + [ "_stage", "classclutchlog.html#aeb60684c89bcef5aa9273075c21cc993", null ], + [ "_in_file", "classclutchlog.html#aded03528f34d9000f618419c482c5042", null ], + [ "_in_func", "classclutchlog.html#a130c4f12eacbd2028102838fe16b734e", null ], + [ "_in_line", "classclutchlog.html#a41757198b29862832a14472a9e5e24c6", null ], + [ "level", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928", [ + [ "critical", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928af332f31a368c931f79b9b64d55fc7701", null ], + [ "error", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928a023c3e8a55ddfd140d3e3268dd6221e9", null ], + [ "warning", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928aab4ce1a501f9cbe27666659d3b19534c", null ], + [ "progress", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928a6efd7b28f876c0473c6dfeae82fc8e05", null ], + [ "note", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928af89a12aab2a73ea31e19b04ecadbdc0d", null ], + [ "info", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928aa1ea607f2bfe5db06f1cf2bd991f7dc1", null ], + [ "debug", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928a911f5ef324f37061f68a239577e0d0bd", null ], + [ "xdebug", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928abba74b810831c7753777e6dcc0c0f4e2", null ] + ] ] +]; \ No newline at end of file diff --git a/docs/classclutchlog_1_1fmt-members.html b/docs/classclutchlog_1_1fmt-members.html index bc7ce53..76be3c1 100644 --- a/docs/classclutchlog_1_1fmt-members.html +++ b/docs/classclutchlog_1_1fmt-members.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
- -
clutchlog::fmt Member List
@@ -91,11 +109,14 @@ $(function() {
styleclutchlog::fmt
typo enum nameclutchlog::fmt
+ - + diff --git a/docs/classclutchlog_1_1fmt.html b/docs/classclutchlog_1_1fmt.html index 68f78a1..4fc7db5 100644 --- a/docs/classclutchlog_1_1fmt.html +++ b/docs/classclutchlog_1_1fmt.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
std::cout << error("ERROR") << std::endl;
Note
A formatter called this way WILL output a reset escape code at the end.
+

Definition at line 406 of file clutchlog.h.

+ +

References print_on().

+

Friends And Related Function Documentation

@@ -266,18 +290,24 @@ Friends
std::cout << error << "ERROR" << end << std::endl;
Note
An formatter called this way will NOT output a reset escape code.
+

Definition at line 391 of file clutchlog.h.

+
The documentation for this class was generated from the following file: -
Color and style formatter for ANSI terminal escape sequences.
Definition: clutchlog.h:309
+ +
Color and style formatter for ANSI terminal escape sequences.
Definition: clutchlog.h:309
- + diff --git a/docs/classes.html b/docs/classes.html index 78d52cc..bb0806b 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
- -
@@ -82,53 +100,12 @@ $(function() { More...

#include <clutchlog.h>

- - - - - - - - - - - -

-Public Types

enum  fg {
-  black = 30, -red = 31, -green = 32, -yellow = 33, -
-  blue = 34, -magenta = 35, -cyan = 36, -white = 37, -
-  none -
- }
 Foreground color codes.
 
enum  bg {
-  black = 40, -red = 41, -green = 42, -yellow = 43, -
-  blue = 44, -magenta = 45, -cyan = 46, -white = 47, -
-  none -
- }
 Background color codes.
 
enum  typo {
-  reset = 0, -bold = 1, -underline = 4, -inverse = 7, -
-  none -
- }
 Typographic style codes.
 
+

Detailed Description

+

Color and style formatter for ANSI terminal escape sequences.

+
Note
All styles may not be supported by a given terminal/operating system.
+ +

Definition at line 309 of file clutchlog.h.

+

Public Member Functions

@@ -184,16 +161,59 @@ std::ostream &  Print the currently encoded format escape code on the given output stream.
 
+ + + + + + + + + + +

+Public Types

enum  fg {
+  black = 30, +red = 31, +green = 32, +yellow = 33, +
+  blue = 34, +magenta = 35, +cyan = 36, +white = 37, +
+  none +
+ }
 Foreground color codes.
 
enum  bg {
+  black = 40, +red = 41, +green = 42, +yellow = 43, +
+  blue = 44, +magenta = 45, +cyan = 46, +white = 47, +
+  none +
+ }
 Background color codes.
 
enum  typo {
+  reset = 0, +bold = 1, +underline = 4, +inverse = 7, +
+  none +
+ }
 Typographic style codes.
 

Friends

std::ostream & operator<< (std::ostream &os, const fmt &fmt)
 Output stream overload. More...
 
-

Detailed Description

-

Color and style formatter for ANSI terminal escape sequences.

-
Note
All styles may not be supported by a given terminal/operating system.
-

Member Function Documentation

+

Member Function Documentation

◆ operator()()

@@ -223,6 +243,10 @@ Friends
+ - + - - + +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +
  s  
clutchlog    clutchlog::fmt    clutchlog::scope_t   
c | f | s
+ - + diff --git a/docs/clutchlog_8h.html b/docs/clutchlog_8h.html index 99558c1..fe514a5 100644 --- a/docs/clutchlog_8h.html +++ b/docs/clutchlog_8h.html @@ -5,14 +5,19 @@ -clutchlog: clutchlog/clutchlog.h File Reference +clutchlog: clutchlog.h File Reference + + + + +
@@ -20,6 +25,7 @@ + +#define  +#define  - - + + - - + + - - + + - - + + +#define  +#define  +#define  +#define  +#define  +#define 
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
- -
Classes | @@ -84,24 +102,19 @@ $(function() { #include <limits>
#include <regex>
#include <map>
-
-Include dependency graph for clutchlog.h:
-
-
- - - - - - - - - - - - - - +
+ + Include dependency graph for clutchlog.h:
+
+
+ +
+ + This graph shows which files directly or indirectly include this file:
+
+
+

Go to the source code of this file.

@@ -137,57 +150,61 @@ Macros
 Actually enable clutchlog features.
 
-#define CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG   clutchlog::level::progress
CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG   clutchlog::level::progress
 Default level over which calls to the logger are optimized out when NDEBUG is defined.
 
-#define CLUTCHLOC   __FILE__, __FUNCTION__, __LINE__
CLUTCHLOC   __FILE__, __FUNCTION__, __LINE__
 Handy shortcuts to location.
 
#define CLUTCHLOG(LEVEL, WHAT)
 Log a message at the given level. More...
#define CLUTCHLOG(LEVEL, WHAT)
 Log a message at the given level. More...
 
#define CLUTCHDUMP(LEVEL, CONTAINER, FILENAME)
 Dump the given container. More...
#define CLUTCHDUMP(LEVEL, CONTAINER, FILENAME)
 Dump the given container. More...
 
#define CLUTCHFUNC(LEVEL, FUNC, ...)
 Call any function if the scope matches. More...
#define CLUTCHFUNC(LEVEL, FUNC, ...)
 Call any function if the scope matches. More...
 
#define CLUTCHCODE(LEVEL, ...)
 Run any code if the scope matches. More...
#define CLUTCHCODE(LEVEL, ...)
 Run any code if the scope matches. More...
 
Default configuration members
-#define CLUTCHLOG_DEFAULT_FORMAT   "{level_letter} {msg}\t\t\t\t\t{func} @ {file}:{line}\n"
CLUTCHLOG_DEFAULT_FORMAT   "{level_letter} {msg}\t\t\t\t\t{func} @ {file}:{line}\n"
 Compile-time default format of the messages (debug mode: with absolute location).
 
-#define CLUTCHDUMP_DEFAULT_FORMAT   "# {level} in {func} @ {file}:{line}"
CLUTCHDUMP_DEFAULT_FORMAT   "# {level} in {func} @ {file}:{line}"
 Compile-time default format of the comment line in file dump.
 
-#define CLUTCHDUMP_DEFAULT_SEP   "\n"
CLUTCHDUMP_DEFAULT_SEP   "\n"
 Compile-time default item separator for dump.
 
-#define CLUTCHLOG_DEFAULT_DEPTH_MARK   ">"
CLUTCHLOG_DEFAULT_DEPTH_MARK   ">"
 Compile-time default mark for stack depth.
 
-#define CLUTCHLOG_STRIP_CALLS   5
CLUTCHLOG_STRIP_CALLS   5
 Compile-time number of call stack levels to remove from depth display by default.
 
-#define CLUTCHLOG_HFILL_MARK   '.'
CLUTCHLOG_HFILL_MARK   '.'
 Character used as a filling for right-align the right part of messages with "{hfill}".
 
+ - + diff --git a/docs/clutchlog_8h.js b/docs/clutchlog_8h.js new file mode 100644 index 0000000..fdaabbb --- /dev/null +++ b/docs/clutchlog_8h.js @@ -0,0 +1,20 @@ +var clutchlog_8h = +[ + [ "scope_t", "structclutchlog_1_1scope__t.html", "structclutchlog_1_1scope__t" ], + [ "CLUTCHLOG_H", "clutchlog_8h.html#a0acf7d306292cdee864356f0b433cc16", null ], + [ "CLUTCHLOG_HAVE_UNIX_SYSINFO", "clutchlog_8h.html#a6bbcf13504687db4dbe0474931d867fb", null ], + [ "CLUTCHLOG_HAVE_UNIX_SYSIOCTL", "clutchlog_8h.html#a6bddd1e1be320823da0d6b1d5cef7817", null ], + [ "WITH_CLUTCHLOG", "clutchlog_8h.html#a5c126962abcc7a40e504a6fc3abdfcc4", null ], + [ "CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG", "group___default_config.html#ga8564be479b948ee3052b61783c66d415", null ], + [ "CLUTCHLOC", "group___use_macros.html#gae8911119d726a43b77f5781cb5a72813", null ], + [ "CLUTCHLOG", "group___use_macros.html#ga6f86187e2b35e7e1907d688f504a197d", null ], + [ "CLUTCHDUMP", "group___use_macros.html#ga572e3aa19d8b39e3ed0b9e91961104c2", null ], + [ "CLUTCHFUNC", "group___use_macros.html#ga9f77cee4f853e582262930c9c17f90ae", null ], + [ "CLUTCHCODE", "group___use_macros.html#gaaf2e85e1153e6c88b458dd49e3c37c73", null ], + [ "CLUTCHLOG_DEFAULT_FORMAT", "group___default_config.html#ga524c16f280d92ee8ab683162c9ce01fa", null ], + [ "CLUTCHDUMP_DEFAULT_FORMAT", "group___default_config.html#ga27b613c6727857a7cbcd0165d862034e", null ], + [ "CLUTCHDUMP_DEFAULT_SEP", "group___default_config.html#ga54d29e956575e1c731eab5406135c5df", null ], + [ "CLUTCHLOG_DEFAULT_DEPTH_MARK", "group___default_config.html#ga45c4c964fad4ad1641d5c9c28c4645b9", null ], + [ "CLUTCHLOG_STRIP_CALLS", "group___default_config.html#ga98f30d814d4913a8a7c93a8793f49adf", null ], + [ "CLUTCHLOG_HFILL_MARK", "group___default_config.html#gad5fbbacf74b8e4669b8f9efdfe81bd25", null ] +]; \ No newline at end of file diff --git a/docs/clutchlog_8h__dep__incl.map b/docs/clutchlog_8h__dep__incl.map new file mode 100644 index 0000000..f881e9b --- /dev/null +++ b/docs/clutchlog_8h__dep__incl.map @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/docs/clutchlog_8h__dep__incl.md5 b/docs/clutchlog_8h__dep__incl.md5 new file mode 100644 index 0000000..e459537 --- /dev/null +++ b/docs/clutchlog_8h__dep__incl.md5 @@ -0,0 +1 @@ +14cb45843b5774232b14fc381bb80084 \ No newline at end of file diff --git a/docs/clutchlog_8h__dep__incl.svg b/docs/clutchlog_8h__dep__incl.svg new file mode 100644 index 0000000..4916a62 --- /dev/null +++ b/docs/clutchlog_8h__dep__incl.svg @@ -0,0 +1,112 @@ + + + + + + +clutchlog.h + + + +Node1 + + +clutchlog.h + + + + + +Node2 + + +t-assert.cpp + + + + + +Node1->Node2 + + + + + +Node3 + + +t-color.cpp + + + + + +Node1->Node3 + + + + + +Node4 + + +t-demo.cpp + + + + + +Node1->Node4 + + + + + +Node5 + + +t-dump.cpp + + + + + +Node1->Node5 + + + + + +Node6 + + +t-log.cpp + + + + + +Node1->Node6 + + + + + +Node7 + + +t-one-line-if.cpp + + + + + +Node1->Node7 + + + + + diff --git a/docs/clutchlog_8h__incl.map b/docs/clutchlog_8h__incl.map index 153db44..528ccc6 100644 --- a/docs/clutchlog_8h__incl.map +++ b/docs/clutchlog_8h__incl.map @@ -1,5 +1,5 @@ - - + + diff --git a/docs/clutchlog_8h__incl.md5 b/docs/clutchlog_8h__incl.md5 index 3ff80d1..8672821 100644 --- a/docs/clutchlog_8h__incl.md5 +++ b/docs/clutchlog_8h__incl.md5 @@ -1 +1 @@ -a95a8117ff16a338816367072750e70d \ No newline at end of file +128ca966338fdda6dfe848c977a3a290 \ No newline at end of file diff --git a/docs/clutchlog_8h__incl.svg b/docs/clutchlog_8h__incl.svg new file mode 100644 index 0000000..40ad16e --- /dev/null +++ b/docs/clutchlog_8h__incl.svg @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +clutchlog.h + + + +Node1 + + +clutchlog.h + + + + + +Node2 + + +ciso646 + + + + + +Node1->Node2 + + + + + +Node3 + + +filesystem + + + + + +Node1->Node3 + + + + + +Node4 + + +iostream + + + + + +Node1->Node4 + + + + + +Node5 + + +sstream + + + + + +Node1->Node5 + + + + + +Node6 + + +fstream + + + + + +Node1->Node6 + + + + + +Node7 + + +cassert + + + + + +Node1->Node7 + + + + + +Node8 + + +cstdlib + + + + + +Node1->Node8 + + + + + +Node9 + + +string + + + + + +Node1->Node9 + + + + + +Node10 + + +limits + + + + + +Node1->Node10 + + + + + +Node11 + + +regex + + + + + +Node1->Node11 + + + + + +Node12 + + +map + + + + + +Node1->Node12 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/clutchlog_8h__incl_org.svg b/docs/clutchlog_8h__incl_org.svg new file mode 100644 index 0000000..bd41c98 --- /dev/null +++ b/docs/clutchlog_8h__incl_org.svg @@ -0,0 +1,187 @@ + + + + + + +clutchlog.h + + + +Node1 + + +clutchlog.h + + + + + +Node2 + + +ciso646 + + + + + +Node1->Node2 + + + + + +Node3 + + +filesystem + + + + + +Node1->Node3 + + + + + +Node4 + + +iostream + + + + + +Node1->Node4 + + + + + +Node5 + + +sstream + + + + + +Node1->Node5 + + + + + +Node6 + + +fstream + + + + + +Node1->Node6 + + + + + +Node7 + + +cassert + + + + + +Node1->Node7 + + + + + +Node8 + + +cstdlib + + + + + +Node1->Node8 + + + + + +Node9 + + +string + + + + + +Node1->Node9 + + + + + +Node10 + + +limits + + + + + +Node1->Node10 + + + + + +Node11 + + +regex + + + + + +Node1->Node11 + + + + + +Node12 + + +map + + + + + +Node1->Node12 + + + + + diff --git a/docs/clutchlog_8h_source.html b/docs/clutchlog_8h_source.html index 3866524..72c011a 100644 --- a/docs/clutchlog_8h_source.html +++ b/docs/clutchlog_8h_source.html @@ -5,14 +5,19 @@ -clutchlog: clutchlog/clutchlog.h Source File +clutchlog: clutchlog.h Source File + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
- -
clutchlog.h
@@ -133,7 +151,7 @@ $(function() {
76 #define CLUTCHLOC __FILE__, __FUNCTION__, __LINE__
78 
80 #ifndef NDEBUG
-
81  #define CLUTCHLOG( LEVEL, WHAT ) do { \
+
81  #define CLUTCHLOG( LEVEL, WHAT ) do { \
82  auto& clutchlog__logger = clutchlog::logger(); \
83  std::ostringstream clutchlog__msg ; clutchlog__msg << WHAT; \
84  clutchlog__logger.log(clutchlog::level::LEVEL, clutchlog__msg.str(), CLUTCHLOC); \
@@ -149,7 +167,7 @@ $(function() {
94 #endif // NDEBUG
95 
97 #ifndef NDEBUG
-
98  #define CLUTCHDUMP( LEVEL, CONTAINER, FILENAME ) do { \
+
98  #define CLUTCHDUMP( LEVEL, CONTAINER, FILENAME ) do { \
99  auto& clutchlog__logger = clutchlog::logger(); \
100  clutchlog__logger.dump(clutchlog::level::LEVEL, std::begin(CONTAINER), std::end(CONTAINER), \
101  CLUTCHLOC, FILENAME, CLUTCHDUMP_DEFAULT_SEP); \
@@ -165,7 +183,7 @@ $(function() {
111 #endif // NDEBUG
112 
114 #ifndef NDEBUG
-
115  #define CLUTCHFUNC( LEVEL, FUNC, ... ) do { \
+
115  #define CLUTCHFUNC( LEVEL, FUNC, ... ) do { \
116  auto& clutchlog__logger = clutchlog::logger(); \
117  clutchlog::scope_t clutchlog__scope = clutchlog__logger.locate(clutchlog::level::LEVEL, CLUTCHLOC); \
118  if(clutchlog__scope.matches) { \
@@ -185,7 +203,7 @@ $(function() {
132 #endif // NDEBUG
133 
135 #ifndef NDEBUG
-
136  #define CLUTCHCODE( LEVEL, ... ) do { \
+
136  #define CLUTCHCODE( LEVEL, ... ) do { \
137  auto& clutchlog__logger = clutchlog::logger(); \
138  clutchlog::scope_t clutchlog__scope = clutchlog__logger.locate(clutchlog::level::LEVEL, CLUTCHLOC); \
139  if(clutchlog__scope.matches) { \
@@ -234,7 +252,7 @@ $(function() {
195  #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
196  #define CLUTCHLOG_DEFAULT_FORMAT "{level_letter} {msg} {hfill} {func} @ {file}:{line}\n"
197  #else
-
198  #define CLUTCHLOG_DEFAULT_FORMAT "{level_letter} {msg}\t\t\t\t\t{func} @ {file}:{line}\n"
+
198  #define CLUTCHLOG_DEFAULT_FORMAT "{level_letter} {msg}\t\t\t\t\t{func} @ {file}:{line}\n"
199  #endif
200  #endif
201  #endif
@@ -247,14 +265,14 @@ $(function() {
209  #endif
210  #endif
211  #endif
-
212  static inline std::string default_format = CLUTCHLOG_DEFAULT_FORMAT;
+
212  static inline std::string default_format = CLUTCHLOG_DEFAULT_FORMAT;
214 
215  #ifndef NDEBUG
216  #ifndef CLUTCHDUMP_DEFAULT_FORMAT
217  #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
219  #define CLUTCHDUMP_DEFAULT_FORMAT "# [{name}] {level} in {func} (at depth {depth}) @ {file}:{line}"
220  #else
-
221  #define CLUTCHDUMP_DEFAULT_FORMAT "# {level} in {func} @ {file}:{line}"
+
221  #define CLUTCHDUMP_DEFAULT_FORMAT "# {level} in {func} @ {file}:{line}"
222  #endif
223  #endif // CLUTCHDUMP_DEFAULT_FORMAT
224  #else
@@ -266,27 +284,27 @@ $(function() {
231  #endif
232  #endif // CLUTCHDUMP_DEFAULT_FORMAT
233  #endif
-
234  static inline std::string dump_default_format = CLUTCHDUMP_DEFAULT_FORMAT;
+
234  static inline std::string dump_default_format = CLUTCHDUMP_DEFAULT_FORMAT;
236 
237  #ifndef CLUTCHDUMP_DEFAULT_SEP
238  #define CLUTCHDUMP_DEFAULT_SEP "\n"
240  #endif // CLUTCHDUMP_DEFAULT_SEP
-
241  static inline std::string dump_default_sep = CLUTCHDUMP_DEFAULT_SEP;
+
241  static inline std::string dump_default_sep = CLUTCHDUMP_DEFAULT_SEP;
243 
244  #ifndef CLUTCHLOG_DEFAULT_DEPTH_MARK
245  #define CLUTCHLOG_DEFAULT_DEPTH_MARK ">"
247  #endif // CLUTCHLOG_DEFAULT_DEPTH_MARK
-
248  static inline std::string default_depth_mark = CLUTCHLOG_DEFAULT_DEPTH_MARK;
+
248  static inline std::string default_depth_mark = CLUTCHLOG_DEFAULT_DEPTH_MARK;
250 
251  #ifndef CLUTCHLOG_STRIP_CALLS
252  #define CLUTCHLOG_STRIP_CALLS 5
254  #endif // CLUTCHLOG_STRIP_CALLS
-
255  static inline unsigned int default_strip_calls = CLUTCHLOG_STRIP_CALLS;
+
255  static inline unsigned int default_strip_calls = CLUTCHLOG_STRIP_CALLS;
257 
258  #ifndef CLUTCHLOG_HFILL_MARK
259  #define CLUTCHLOG_HFILL_MARK '.'
261  #endif // CLUTCHLOG_HFILL_MARK
-
262  static inline char default_hfill_char = CLUTCHLOG_HFILL_MARK;
+
262  static inline char default_hfill_char = CLUTCHLOG_HFILL_MARK;
264 
265 
266  #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
@@ -1011,79 +1029,83 @@ $(function() {
1122 
1123 #endif // CLUTCHLOG_H
-
static std::string default_depth_mark
Default mark for stack depth.
Definition: clutchlog.h:249
-
std::string _format_log
Current format of the standard output.
Definition: clutchlog.h:497
-
std::map< level, fmt > _level_fmt
Dictionary of level identifier to their format.
Definition: clutchlog.h:495
-
void log(const level &stage, const std::string &what, const std::string &file, const std::string &func, size_t line) const
Print a log message IF the location matches the given one.
Definition: clutchlog.h:891
-
std::string str() const
Return the formatting code as a string.
Definition: clutchlog.h:418
-
void line(std::string line)
Set the regular expression filtering the line location.
Definition: clutchlog.h:621
-
static std::string dump_default_format
Default format of the comment line in file dump.
Definition: clutchlog.h:235
-
void out(std::ostream &out)
Set the output stream on which to print.
Definition: clutchlog.h:552
-
#define CLUTCHDUMP_DEFAULT_FORMAT
Compile-time default format of the comment line in file dump.
Definition: clutchlog.h:221
-
static std::string dump_default_sep
Default item separator for dump.
Definition: clutchlog.h:242
-
std::string format(std::string row, const std::string &what, const level &stage, const std::string &file, const std::string &func, const size_t line) const
Substitute all tags in the format string with the corresponding information and apply the style corre...
Definition: clutchlog.h:805
-
#define CLUTCHDUMP_DEFAULT_SEP
Compile-time default item separator for dump.
Definition: clutchlog.h:239
-
static unsigned int default_strip_calls
Number of call stack levels to remove from depth display by default.
Definition: clutchlog.h:256
-
std::string replace(const std::string &form, const std::string &mark, const std::string &tag) const
Replace mark by tag in form.
Definition: clutchlog.h:729
+ +
static std::string default_depth_mark
Default mark for stack depth.
Definition: clutchlog.h:249
+
std::string _format_log
Current format of the standard output.
Definition: clutchlog.h:497
+
std::map< level, fmt > _level_fmt
Dictionary of level identifier to their format.
Definition: clutchlog.h:495
+
void log(const level &stage, const std::string &what, const std::string &file, const std::string &func, size_t line) const
Print a log message IF the location matches the given one.
Definition: clutchlog.h:891
+
std::string str() const
Return the formatting code as a string.
Definition: clutchlog.h:418
+
void line(std::string line)
Set the regular expression filtering the line location.
Definition: clutchlog.h:621
+
static std::string dump_default_format
Default format of the comment line in file dump.
Definition: clutchlog.h:235
+
void out(std::ostream &out)
Set the output stream on which to print.
Definition: clutchlog.h:552
+
static std::string dump_default_sep
Default item separator for dump.
Definition: clutchlog.h:242
+
std::string format(std::string row, const std::string &what, const level &stage, const std::string &file, const std::string &func, const size_t line) const
Substitute all tags in the format string with the corresponding information and apply the style corre...
Definition: clutchlog.h:805
+
#define CLUTCHLOG_DEFAULT_DEPTH_MARK
Compile-time default mark for stack depth.
Definition: clutchlog.h:246
+
static unsigned int default_strip_calls
Number of call stack levels to remove from depth display by default.
Definition: clutchlog.h:256
+
std::string replace(const std::string &form, const std::string &mark, const std::string &tag) const
Replace mark by tag in form.
Definition: clutchlog.h:729
enum clutchlog::fmt::bg back
Background color.
-
fg
Foreground color codes.
Definition: clutchlog.h:312
+
fg
Foreground color codes.
Definition: clutchlog.h:312
enum clutchlog::fmt::fg fore
Foreground color.
-
static char default_hfill_char
Default character used as a filling for right-align the right part of messages with "{hfill}".
Definition: clutchlog.h:263
-
bool matches
Everything is compatible.
Definition: clutchlog.h:656
+
static char default_hfill_char
Default character used as a filling for right-align the right part of messages with "{hfill}".
Definition: clutchlog.h:263
+
bool matches
Everything is compatible.
Definition: clutchlog.h:656
enum clutchlog::fmt::typo style
Typographic style.
-
#define CLUTCHLOG_DEFAULT_FORMAT
Compile-time default format of the messages (debug mode: with absolute location).
Definition: clutchlog.h:198
-
void format_comment(const std::string &format)
Set the template string for dumps.
Definition: clutchlog.h:547
-
#define CLUTCHLOG_DEFAULT_DEPTH_MARK
Compile-time default mark for stack depth.
Definition: clutchlog.h:246
-
void file(std::string file)
Set the regular expression filtering the file location.
Definition: clutchlog.h:617
-
scope_t locate(const level &stage, const std::string &file, const std::string &func, const size_t line) const
Gather information on the current location of the call.
Definition: clutchlog.h:678
-
fmt()
&#160;Empty constructor, only useful for a no-op formatter.
Definition: clutchlog.h:347
-
void style(level stage, fmt style)
Set the style (color and typo) of the given log level, passing a fmt instance.
Definition: clutchlog.h:642
-
void threshold(level l)
Set the log level (below which logs are not printed) with an identifier.
Definition: clutchlog.h:594
-
#define CLUTCHLOG_HFILL_MARK
Character used as a filling for right-align the right part of messages with "{hfill}".
Definition: clutchlog.h:260
-
level threshold() const
Get the log level below which logs are not printed.
Definition: clutchlog.h:598
-
level
Available log levels.
Definition: clutchlog.h:298
-
static size_t default_hfill_max
Default maximum number of character used as a filling for right-align the right part of messages with...
Definition: clutchlog.h:272
-
scope_t()
Constructor.
Definition: clutchlog.h:666
-
std::regex _in_func
Current function location filter.
Definition: clutchlog.h:521
-
bg
Background color codes.
Definition: clutchlog.h:325
-
static std::string default_format
Default format of the messages.
Definition: clutchlog.h:213
-
static clutchlog & logger()
Get the logger instance.
Definition: clutchlog.h:291
-
void dump(const level &stage, const In container_begin, const In container_end, const std::string &file, const std::string &func, size_t line, const std::string &filename_template="dump_{n}.dat", const std::string sep=dump_default_sep) const
Dump a serializable container after a comment line with log information.
Definition: clutchlog.h:916
-
Color and style formatter for ANSI terminal escape sequences.
Definition: clutchlog.h:309
-
void func(std::string func)
Set the regular expression filtering the function location.
Definition: clutchlog.h:619
-
std::string format() const
Get the template string.
Definition: clutchlog.h:544
-
std::regex _in_file
Current file location filter.
Definition: clutchlog.h:519
-
void style(level stage, FMT... styles)
Set the style (color and typo) of the given log level.
Definition: clutchlog.h:640
-
level level_of(const std::string name)
Return the log level tag corresponding to the given pre-configured name.
Definition: clutchlog.h:606
-
const std::map< level, std::string > _level_word
Dictionary of level identifier to their string representation.
Definition: clutchlog.h:491
-
#define CLUTCHLOG_STRIP_CALLS
Compile-time number of call stack levels to remove from depth display by default.
Definition: clutchlog.h:253
-
std::string operator()(const std::string &msg) const
Format the given string with the currently encoded format.
Definition: clutchlog.h:406
-
std::regex _in_line
Current line location filter.
Definition: clutchlog.h:523
-
std::string replace(const std::string &form, const std::string &mark, const size_t tag) const
Replace mark by tag in form, converting tag to its string representation first.
Definition: clutchlog.h:794
-
std::string format_comment() const
Get the template string for dumps.
Definition: clutchlog.h:549
-
std::string _format_dump
Current format of the file output.
Definition: clutchlog.h:499
-
Structure holding a location matching.
Definition: clutchlog.h:654
-
std::ostream & print_on(std::ostream &os) const
Print the currently encoded format escape code on the given output stream.
Definition: clutchlog.h:361
-
std::ostream * _out
Standard output.
Definition: clutchlog.h:509
-
std::ostream & out()
Get the output stream on which to print.
Definition: clutchlog.h:554
-
void threshold(const std::string &l)
Set the log level (below which logs are not printed) with a string.
Definition: clutchlog.h:596
-
const std::map< std::string, level > & levels() const
Get the map of available log levels string representations toward their identifier....
Definition: clutchlog.h:600
-
size_t _strip_calls
Current number of call stack levels to remove from depth display.
Definition: clutchlog.h:489
-
level stage
Current log level.
Definition: clutchlog.h:658
-
bool there
Location is compatible.
Definition: clutchlog.h:664
-
friend std::ostream & operator<<(std::ostream &os, const fmt &fmt)
Output stream overload.
Definition: clutchlog.h:391
-
std::map< std::string, level > _word_level
Dictionary of level string to their identifier.
Definition: clutchlog.h:493
-
level _stage
Current log level.
Definition: clutchlog.h:517
-
fmt style(level stage) const
Get the configured fmt instance of the given log level.
Definition: clutchlog.h:644
-
typo
Typographic style codes.
Definition: clutchlog.h:338
-
void location(const std::string &in_file, const std::string &in_function=".*", const std::string &in_line=".*")
Set the regular expressions filtering the location.
Definition: clutchlog.h:624
-
#define CLUTCHLOG_HAVE_UNIX_SYSINFO
True if POSIX headers necessary for stack depth management are available.
Definition: clutchlog.h:33
-
The single class which holds everything.
Definition: clutchlog.h:177
+
#define CLUTCHLOG_HFILL_MARK
Character used as a filling for right-align the right part of messages with "{hfill}".
Definition: clutchlog.h:260
+
void format_comment(const std::string &format)
Set the template string for dumps.
Definition: clutchlog.h:547
+
void file(std::string file)
Set the regular expression filtering the file location.
Definition: clutchlog.h:617
+
scope_t locate(const level &stage, const std::string &file, const std::string &func, const size_t line) const
Gather information on the current location of the call.
Definition: clutchlog.h:678
+
fmt()
&#160;Empty constructor, only useful for a no-op formatter.
Definition: clutchlog.h:347
+
void style(level stage, fmt style)
Set the style (color and typo) of the given log level, passing a fmt instance.
Definition: clutchlog.h:642
+
void threshold(level l)
Set the log level (below which logs are not printed) with an identifier.
Definition: clutchlog.h:594
+
level threshold() const
Get the log level below which logs are not printed.
Definition: clutchlog.h:598
+
level
Available log levels.
Definition: clutchlog.h:298
+
static size_t default_hfill_max
Default maximum number of character used as a filling for right-align the right part of messages with...
Definition: clutchlog.h:272
+
scope_t()
Constructor.
Definition: clutchlog.h:666
+
std::regex _in_func
Current function location filter.
Definition: clutchlog.h:521
+
bg
Background color codes.
Definition: clutchlog.h:325
+
static std::string default_format
Default format of the messages.
Definition: clutchlog.h:213
+
static clutchlog & logger()
Get the logger instance.
Definition: clutchlog.h:291
+
void dump(const level &stage, const In container_begin, const In container_end, const std::string &file, const std::string &func, size_t line, const std::string &filename_template="dump_{n}.dat", const std::string sep=dump_default_sep) const
Dump a serializable container after a comment line with log information.
Definition: clutchlog.h:916
+
Color and style formatter for ANSI terminal escape sequences.
Definition: clutchlog.h:309
+
void func(std::string func)
Set the regular expression filtering the function location.
Definition: clutchlog.h:619
+
std::string format() const
Get the template string.
Definition: clutchlog.h:544
+
std::regex _in_file
Current file location filter.
Definition: clutchlog.h:519
+
void style(level stage, FMT... styles)
Set the style (color and typo) of the given log level.
Definition: clutchlog.h:640
+
level level_of(const std::string name)
Return the log level tag corresponding to the given pre-configured name.
Definition: clutchlog.h:606
+
const std::map< level, std::string > _level_word
Dictionary of level identifier to their string representation.
Definition: clutchlog.h:491
+
std::string operator()(const std::string &msg) const
Format the given string with the currently encoded format.
Definition: clutchlog.h:406
+
#define CLUTCHLOG_DEFAULT_FORMAT
Compile-time default format of the messages (debug mode: with absolute location).
Definition: clutchlog.h:198
+
std::regex _in_line
Current line location filter.
Definition: clutchlog.h:523
+
std::string replace(const std::string &form, const std::string &mark, const size_t tag) const
Replace mark by tag in form, converting tag to its string representation first.
Definition: clutchlog.h:794
+
std::string format_comment() const
Get the template string for dumps.
Definition: clutchlog.h:549
+
std::string _format_dump
Current format of the file output.
Definition: clutchlog.h:499
+
#define CLUTCHDUMP_DEFAULT_SEP
Compile-time default item separator for dump.
Definition: clutchlog.h:239
+
Structure holding a location matching.
Definition: clutchlog.h:654
+
std::ostream & print_on(std::ostream &os) const
Print the currently encoded format escape code on the given output stream.
Definition: clutchlog.h:361
+
std::ostream * _out
Standard output.
Definition: clutchlog.h:509
+
std::ostream & out()
Get the output stream on which to print.
Definition: clutchlog.h:554
+
void threshold(const std::string &l)
Set the log level (below which logs are not printed) with a string.
Definition: clutchlog.h:596
+
const std::map< std::string, level > & levels() const
Get the map of available log levels string representations toward their identifier....
Definition: clutchlog.h:600
+
size_t _strip_calls
Current number of call stack levels to remove from depth display.
Definition: clutchlog.h:489
+
level stage
Current log level.
Definition: clutchlog.h:658
+
bool there
Location is compatible.
Definition: clutchlog.h:664
+
#define CLUTCHLOG_STRIP_CALLS
Compile-time number of call stack levels to remove from depth display by default.
Definition: clutchlog.h:253
+
friend std::ostream & operator<<(std::ostream &os, const fmt &fmt)
Output stream overload.
Definition: clutchlog.h:391
+
std::map< std::string, level > _word_level
Dictionary of level string to their identifier.
Definition: clutchlog.h:493
+
level _stage
Current log level.
Definition: clutchlog.h:517
+
fmt style(level stage) const
Get the configured fmt instance of the given log level.
Definition: clutchlog.h:644
+
typo
Typographic style codes.
Definition: clutchlog.h:338
+
void location(const std::string &in_file, const std::string &in_function=".*", const std::string &in_line=".*")
Set the regular expressions filtering the location.
Definition: clutchlog.h:624
+
#define CLUTCHLOG_HAVE_UNIX_SYSINFO
True if POSIX headers necessary for stack depth management are available.
Definition: clutchlog.h:33
+
The single class which holds everything.
Definition: clutchlog.h:177
+
#define CLUTCHDUMP_DEFAULT_FORMAT
Compile-time default format of the comment line in file dump.
Definition: clutchlog.h:221
- + diff --git a/docs/dir_000001_000000.html b/docs/dir_000001_000000.html new file mode 100644 index 0000000..449167a --- /dev/null +++ b/docs/dir_000001_000000.html @@ -0,0 +1,99 @@ + + + + + + + +clutchlog: tests -> clutchlog Relation + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+

tests → clutchlog Relation

File in testsIncludes file in clutchlog
t-assert.cppclutchlog.h
t-color.cppclutchlog.h
t-demo.cppclutchlog.h
t-dump.cppclutchlog.h
t-log.cppclutchlog.h
t-one-line-if.cppclutchlog.h
+
+ + + + diff --git a/docs/dir_000064_000000.html b/docs/dir_000064_000000.html new file mode 100644 index 0000000..fef8d2d --- /dev/null +++ b/docs/dir_000064_000000.html @@ -0,0 +1,77 @@ + + + + + + + +clutchlog: tests -> clutchlog Relation + + + + + + + + + +
+
+ + + + + + +
+
clutchlog +  0.10 +
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+

tests → clutchlog Relation

File in testsIncludes file in clutchlog
t-assert.cppclutchlog.h
t-color.cppclutchlog.h
t-demo.cppclutchlog.h
t-dump.cppclutchlog.h
t-log.cppclutchlog.h
t-one-line-if.cppclutchlog.h
+ + + + diff --git a/docs/dir_000074_000000.html b/docs/dir_000074_000000.html new file mode 100644 index 0000000..3065d32 --- /dev/null +++ b/docs/dir_000074_000000.html @@ -0,0 +1,77 @@ + + + + + + + +clutchlog: tests -> clutchlog Relation + + + + + + + + + +
+
+ + + + + + +
+
clutchlog +  0.11 +
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+

tests → clutchlog Relation

File in testsIncludes file in clutchlog
t-assert.cppclutchlog.h
t-color.cppclutchlog.h
t-demo.cppclutchlog.h
t-dump.cppclutchlog.h
t-log.cppclutchlog.h
t-one-line-if.cppclutchlog.h
+ + + + diff --git a/docs/dir_000086_000000.html b/docs/dir_000086_000000.html new file mode 100644 index 0000000..449167a --- /dev/null +++ b/docs/dir_000086_000000.html @@ -0,0 +1,99 @@ + + + + + + + +clutchlog: tests -> clutchlog Relation + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+

tests → clutchlog Relation

File in testsIncludes file in clutchlog
t-assert.cppclutchlog.h
t-color.cppclutchlog.h
t-demo.cppclutchlog.h
t-dump.cppclutchlog.h
t-log.cppclutchlog.h
t-one-line-if.cppclutchlog.h
+
+ + + + diff --git a/docs/dir_000087_000000.html b/docs/dir_000087_000000.html new file mode 100644 index 0000000..7bd2110 --- /dev/null +++ b/docs/dir_000087_000000.html @@ -0,0 +1,99 @@ + + + + + + + +My Project: tests -> clutchlog Relation + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
My Project +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+

tests → clutchlog Relation

File in testsIncludes file in clutchlog
t-assert.cppclutchlog.h
t-color.cppclutchlog.h
t-demo.cppclutchlog.h
t-dump.cppclutchlog.h
t-log.cppclutchlog.h
t-one-line-if.cppclutchlog.h
+
+ + + + diff --git a/docs/dir_0597ce40fdf188e7870807c32590691d.html b/docs/dir_0597ce40fdf188e7870807c32590691d.html index 1578c70..5050e0b 100644 --- a/docs/dir_0597ce40fdf188e7870807c32590691d.html +++ b/docs/dir_0597ce40fdf188e7870807c32590691d.html @@ -5,14 +5,19 @@ -clutchlog: Release_OFF/CMakeFiles/3.10.2 Directory Reference +clutchlog: 3.10.2 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.10.2 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_084dfc9a5a5be3c9e27543ac1f550db2.html b/docs/dir_084dfc9a5a5be3c9e27543ac1f550db2.html index 29c5e75..1d28a7f 100644 --- a/docs/dir_084dfc9a5a5be3c9e27543ac1f550db2.html +++ b/docs/dir_084dfc9a5a5be3c9e27543ac1f550db2.html @@ -5,14 +5,19 @@ -clutchlog: Release_OFF/CMakeFiles/3.18.4 Directory Reference +clutchlog: 3.18.4 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.18.4 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_0c6859326e57c84153d9ce3980c7b614.html b/docs/dir_0c6859326e57c84153d9ce3980c7b614.html index 9a6604e..37b5ce4 100644 --- a/docs/dir_0c6859326e57c84153d9ce3980c7b614.html +++ b/docs/dir_0c6859326e57c84153d9ce3980c7b614.html @@ -5,14 +5,19 @@ -clutchlog: Release_ON/CMakeFiles/3.18.4 Directory Reference +clutchlog: 3.18.4 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.18.4 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_102fbed97a76519d884ad8f4cb9fe789.html b/docs/dir_102fbed97a76519d884ad8f4cb9fe789.html new file mode 100644 index 0000000..fe9c044 --- /dev/null +++ b/docs/dir_102fbed97a76519d884ad8f4cb9fe789.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_10ddb028b6670bd8aa01364e6cad76a9.html b/docs/dir_10ddb028b6670bd8aa01364e6cad76a9.html index 3d9f6c2..2cd700d 100644 --- a/docs/dir_10ddb028b6670bd8aa01364e6cad76a9.html +++ b/docs/dir_10ddb028b6670bd8aa01364e6cad76a9.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_OFF/CMakeFiles Directory Reference +clutchlog: CMakeFiles Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CMakeFiles Directory Reference
+ - + diff --git a/docs/dir_10e5b046fa80f4154fb6ef98b74319ee.html b/docs/dir_10e5b046fa80f4154fb6ef98b74319ee.html index fabe34d..3844664 100644 --- a/docs/dir_10e5b046fa80f4154fb6ef98b74319ee.html +++ b/docs/dir_10e5b046fa80f4154fb6ef98b74319ee.html @@ -5,14 +5,19 @@ -clutchlog: Debug_OFF/CMakeFiles Directory Reference +clutchlog: CMakeFiles Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CMakeFiles Directory Reference
+ - + diff --git a/docs/dir_11d96b0893f97b142d6effd564752a90.html b/docs/dir_11d96b0893f97b142d6effd564752a90.html index 60a65f8..3b3ee3b 100644 --- a/docs/dir_11d96b0893f97b142d6effd564752a90.html +++ b/docs/dir_11d96b0893f97b142d6effd564752a90.html @@ -5,14 +5,19 @@ -clutchlog: Release_OFF/CMakeFiles Directory Reference +clutchlog: CMakeFiles Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CMakeFiles Directory Reference
+ - + diff --git a/docs/dir_1280d8c0852b97b874bbe6d3241468fa.html b/docs/dir_1280d8c0852b97b874bbe6d3241468fa.html new file mode 100644 index 0000000..2b9288f --- /dev/null +++ b/docs/dir_1280d8c0852b97b874bbe6d3241468fa.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_13368ad9184bbad1002e036a402da7c4.html b/docs/dir_13368ad9184bbad1002e036a402da7c4.html index 9867c29..528c35c 100644 --- a/docs/dir_13368ad9184bbad1002e036a402da7c4.html +++ b/docs/dir_13368ad9184bbad1002e036a402da7c4.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_ON/CMakeFiles/3.24.1 Directory Reference +clutchlog: 3.24.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.24.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_14f0b626af56b1ff4afcbb0dad5c9b00.html b/docs/dir_14f0b626af56b1ff4afcbb0dad5c9b00.html index e15720f..f7fbe3b 100644 --- a/docs/dir_14f0b626af56b1ff4afcbb0dad5c9b00.html +++ b/docs/dir_14f0b626af56b1ff4afcbb0dad5c9b00.html @@ -5,14 +5,19 @@ -clutchlog: Release_OFF/CMakeFiles/3.18.4/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_178d547a078d4731b3af021ed5ed0bd5.html b/docs/dir_178d547a078d4731b3af021ed5ed0bd5.html index 06f1049..b32c03f 100644 --- a/docs/dir_178d547a078d4731b3af021ed5ed0bd5.html +++ b/docs/dir_178d547a078d4731b3af021ed5ed0bd5.html @@ -5,14 +5,19 @@ -clutchlog: Release_ON/CMakeFiles/3.24.1 Directory Reference +clutchlog: 3.24.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.24.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_183919ee65eb1ce3e4c28765d02d1592.html b/docs/dir_183919ee65eb1ce3e4c28765d02d1592.html index 191f483..8be1a80 100644 --- a/docs/dir_183919ee65eb1ce3e4c28765d02d1592.html +++ b/docs/dir_183919ee65eb1ce3e4c28765d02d1592.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_OFF/CMakeFiles/3.24.1 Directory Reference +clutchlog: 3.24.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.24.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_2010fee6dc55af84ec3880814fe9859d.html b/docs/dir_2010fee6dc55af84ec3880814fe9859d.html index 020a5dc..68a9a42 100644 --- a/docs/dir_2010fee6dc55af84ec3880814fe9859d.html +++ b/docs/dir_2010fee6dc55af84ec3880814fe9859d.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_OFF/CMakeFiles/3.10.2 Directory Reference +clutchlog: 3.10.2 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.10.2 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_232d0e660737fa098457ae695f029c6e.html b/docs/dir_232d0e660737fa098457ae695f029c6e.html index 3530650..44d1029 100644 --- a/docs/dir_232d0e660737fa098457ae695f029c6e.html +++ b/docs/dir_232d0e660737fa098457ae695f029c6e.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
- -
Release_ON Directory Reference
+ - + diff --git a/docs/dir_23f99a3177fbe0a65d7edc2311dd44bb.html b/docs/dir_23f99a3177fbe0a65d7edc2311dd44bb.html new file mode 100644 index 0000000..54daabd --- /dev/null +++ b/docs/dir_23f99a3177fbe0a65d7edc2311dd44bb.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_27117ea8c3a88700c8b1db11c9562238.html b/docs/dir_27117ea8c3a88700c8b1db11c9562238.html index 2956c10..41167ca 100644 --- a/docs/dir_27117ea8c3a88700c8b1db11c9562238.html +++ b/docs/dir_27117ea8c3a88700c8b1db11c9562238.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_OFF/CMakeFiles/3.22.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_2c58f47b9ec63c233e9a6dc44b0220ce.html b/docs/dir_2c58f47b9ec63c233e9a6dc44b0220ce.html index 15f1f7a..2252601 100644 --- a/docs/dir_2c58f47b9ec63c233e9a6dc44b0220ce.html +++ b/docs/dir_2c58f47b9ec63c233e9a6dc44b0220ce.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_ON/CMakeFiles Directory Reference +clutchlog: CMakeFiles Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CMakeFiles Directory Reference
+ - + diff --git a/docs/dir_2f57d7cdc1efd9108cae4f97d271ba12.html b/docs/dir_2f57d7cdc1efd9108cae4f97d271ba12.html new file mode 100644 index 0000000..5ef8fb3 --- /dev/null +++ b/docs/dir_2f57d7cdc1efd9108cae4f97d271ba12.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_31de4e4c252abdf0b3e289824af95c27.html b/docs/dir_31de4e4c252abdf0b3e289824af95c27.html new file mode 100644 index 0000000..eea4dc6 --- /dev/null +++ b/docs/dir_31de4e4c252abdf0b3e289824af95c27.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.2 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.2 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/dir_3353b0403823e43b133a3a97f7b61528.html b/docs/dir_3353b0403823e43b133a3a97f7b61528.html index 5c331b0..7731195 100644 --- a/docs/dir_3353b0403823e43b133a3a97f7b61528.html +++ b/docs/dir_3353b0403823e43b133a3a97f7b61528.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
- -
Debug_OFF Directory Reference
+ - + diff --git a/docs/dir_3354f823b93c486985d8eff812f202d0.html b/docs/dir_3354f823b93c486985d8eff812f202d0.html index 7ea5ced..e3d4ad1 100644 --- a/docs/dir_3354f823b93c486985d8eff812f202d0.html +++ b/docs/dir_3354f823b93c486985d8eff812f202d0.html @@ -5,14 +5,19 @@ -clutchlog: CMakeFiles/3.10.2/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_3580e889fffd597e9f1e74f0989be3f4.html b/docs/dir_3580e889fffd597e9f1e74f0989be3f4.html index 31f49cf..a0d8067 100644 --- a/docs/dir_3580e889fffd597e9f1e74f0989be3f4.html +++ b/docs/dir_3580e889fffd597e9f1e74f0989be3f4.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_OFF/CMakeFiles/3.18.4 Directory Reference +clutchlog: 3.18.4 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.18.4 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_35b76f9139cd531a8285f85cdc408931.html b/docs/dir_35b76f9139cd531a8285f85cdc408931.html new file mode 100644 index 0000000..f78e26c --- /dev/null +++ b/docs/dir_35b76f9139cd531a8285f85cdc408931.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.1 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.1 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/dir_38468fa15d001d8f53eb5a2cc819fc4d.html b/docs/dir_38468fa15d001d8f53eb5a2cc819fc4d.html index 4080b32..06a850e 100644 --- a/docs/dir_38468fa15d001d8f53eb5a2cc819fc4d.html +++ b/docs/dir_38468fa15d001d8f53eb5a2cc819fc4d.html @@ -5,14 +5,19 @@ -clutchlog: Debug_OFF/CMakeFiles/3.18.4 Directory Reference +clutchlog: 3.18.4 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.18.4 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_3b27b7a7434122ddfe41170c43d31183.html b/docs/dir_3b27b7a7434122ddfe41170c43d31183.html index 5726650..3b4c358 100644 --- a/docs/dir_3b27b7a7434122ddfe41170c43d31183.html +++ b/docs/dir_3b27b7a7434122ddfe41170c43d31183.html @@ -5,14 +5,19 @@ -clutchlog: Release_ON/CMakeFiles/3.24.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_3b3b5af829689cf9fc261f0e6a0edda6.html b/docs/dir_3b3b5af829689cf9fc261f0e6a0edda6.html index 2db6204..f445196 100644 --- a/docs/dir_3b3b5af829689cf9fc261f0e6a0edda6.html +++ b/docs/dir_3b3b5af829689cf9fc261f0e6a0edda6.html @@ -5,14 +5,19 @@ -clutchlog: Release_OFF/CMakeFiles/3.22.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_3d1a2ab9dc91da4765f2be4c4353c1fc.html b/docs/dir_3d1a2ab9dc91da4765f2be4c4353c1fc.html new file mode 100644 index 0000000..ab3a1d0 --- /dev/null +++ b/docs/dir_3d1a2ab9dc91da4765f2be4c4353c1fc.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_3e1bb72ed66f215303e7248107b2c843.html b/docs/dir_3e1bb72ed66f215303e7248107b2c843.html index cba75c9..1fcfefc 100644 --- a/docs/dir_3e1bb72ed66f215303e7248107b2c843.html +++ b/docs/dir_3e1bb72ed66f215303e7248107b2c843.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_ON/CMakeFiles/3.24.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_3e4d9bbf23e4011a0d79c59ef1fbe4fa.html b/docs/dir_3e4d9bbf23e4011a0d79c59ef1fbe4fa.html index 7c8a6a4..9bdc169 100644 --- a/docs/dir_3e4d9bbf23e4011a0d79c59ef1fbe4fa.html +++ b/docs/dir_3e4d9bbf23e4011a0d79c59ef1fbe4fa.html @@ -5,14 +5,19 @@ -clutchlog: CMakeFiles/3.20.2 Directory Reference +clutchlog: 3.20.2 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.20.2 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_40293f80ee5182858f1cbde313a91598.html b/docs/dir_40293f80ee5182858f1cbde313a91598.html new file mode 100644 index 0000000..6806327 --- /dev/null +++ b/docs/dir_40293f80ee5182858f1cbde313a91598.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_40f0ed80fc7b5ca9ada8999f46941f42.html b/docs/dir_40f0ed80fc7b5ca9ada8999f46941f42.html new file mode 100644 index 0000000..2365934 --- /dev/null +++ b/docs/dir_40f0ed80fc7b5ca9ada8999f46941f42.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_44d46ce0fefad9fb4568613342a0f089.html b/docs/dir_44d46ce0fefad9fb4568613342a0f089.html index a5cf049..016e113 100644 --- a/docs/dir_44d46ce0fefad9fb4568613342a0f089.html +++ b/docs/dir_44d46ce0fefad9fb4568613342a0f089.html @@ -5,14 +5,19 @@ -clutchlog: Debug_OFF/CMakeFiles/3.10.2/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_49bf50162b43c6eb0e5d51c9a154dd85.html b/docs/dir_49bf50162b43c6eb0e5d51c9a154dd85.html index 519fbd7..68acb21 100644 --- a/docs/dir_49bf50162b43c6eb0e5d51c9a154dd85.html +++ b/docs/dir_49bf50162b43c6eb0e5d51c9a154dd85.html @@ -5,14 +5,19 @@ -clutchlog: Debug_OFF/CMakeFiles/3.22.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_4a18925742c2ca7cd15b56a4a482b411.html b/docs/dir_4a18925742c2ca7cd15b56a4a482b411.html new file mode 100644 index 0000000..e5ca9d9 --- /dev/null +++ b/docs/dir_4a18925742c2ca7cd15b56a4a482b411.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.2 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.2 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/dir_5451ed4d551b106c7ed460bafdfa570d.html b/docs/dir_5451ed4d551b106c7ed460bafdfa570d.html new file mode 100644 index 0000000..5b0b209 --- /dev/null +++ b/docs/dir_5451ed4d551b106c7ed460bafdfa570d.html @@ -0,0 +1,103 @@ + + + + + + + +My Project: Debug_ON Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
My Project +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Debug_ON Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_56412180890141897a46e337654f67d2.html b/docs/dir_56412180890141897a46e337654f67d2.html index 05b0a61..5c69d2c 100644 --- a/docs/dir_56412180890141897a46e337654f67d2.html +++ b/docs/dir_56412180890141897a46e337654f67d2.html @@ -5,14 +5,19 @@ -clutchlog: Debug_OFF/CMakeFiles/3.22.1 Directory Reference +clutchlog: 3.22.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.22.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_56a467a6a3c52bfafa193ec205c1fdda.html b/docs/dir_56a467a6a3c52bfafa193ec205c1fdda.html index a76ec4e..1902cf4 100644 --- a/docs/dir_56a467a6a3c52bfafa193ec205c1fdda.html +++ b/docs/dir_56a467a6a3c52bfafa193ec205c1fdda.html @@ -5,14 +5,19 @@ -clutchlog: Release_OFF/CMakeFiles/3.10.2/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_57f06bafd148a6b4ecd5eca63050070c.html b/docs/dir_57f06bafd148a6b4ecd5eca63050070c.html new file mode 100644 index 0000000..a6a2bae --- /dev/null +++ b/docs/dir_57f06bafd148a6b4ecd5eca63050070c.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.1 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.1 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/dir_581e3e812319f368929566c0af58ce01.html b/docs/dir_581e3e812319f368929566c0af58ce01.html index 9ee434c..47b0b0d 100644 --- a/docs/dir_581e3e812319f368929566c0af58ce01.html +++ b/docs/dir_581e3e812319f368929566c0af58ce01.html @@ -5,14 +5,19 @@ -clutchlog: Release_OFF/CMakeFiles/3.22.1 Directory Reference +clutchlog: 3.22.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.22.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf.html b/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf.html index 7ecac94..29361b9 100644 --- a/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf.html +++ b/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
- -
tests Directory Reference
-
-Directory dependency graph for tests:
-
-
tests
- - - - - +
+ + Directory dependency graph for tests:
+
+
+
+
- + diff --git a/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf_dep.map b/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf_dep.map index 2819414..a637538 100644 --- a/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf_dep.map +++ b/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf_dep.map @@ -1,5 +1,5 @@ - + diff --git a/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf_dep.md5 b/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf_dep.md5 index 8f691b3..a67e851 100644 --- a/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf_dep.md5 +++ b/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf_dep.md5 @@ -1 +1 @@ -061989e0c5ed0bcd5c2f9d6d47af2fae \ No newline at end of file +3ef33e4b41f965850dea69a8e439659b \ No newline at end of file diff --git a/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf_dep.svg b/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf_dep.svg new file mode 100644 index 0000000..cc3f867 --- /dev/null +++ b/docs/dir_59425e443f801f1f2fd8bbe4959a3ccf_dep.svg @@ -0,0 +1,41 @@ + + + + + + +tests + + + +dir_59425e443f801f1f2fd8bbe4959a3ccf + + +tests + + + + + +dir_c318bd5cf14aaa5601e6029e0b5b4048 + + +clutchlog + + + + + +dir_59425e443f801f1f2fd8bbe4959a3ccf->dir_c318bd5cf14aaa5601e6029e0b5b4048 + + + +6 + + + + + diff --git a/docs/dir_5b4d8a0ca6574b7df09df571ad9e67b6.html b/docs/dir_5b4d8a0ca6574b7df09df571ad9e67b6.html index cf27168..e0f07d8 100644 --- a/docs/dir_5b4d8a0ca6574b7df09df571ad9e67b6.html +++ b/docs/dir_5b4d8a0ca6574b7df09df571ad9e67b6.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_ON/CMakeFiles/3.22.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_61ab004aa8225a3da30151b57198e21f.html b/docs/dir_61ab004aa8225a3da30151b57198e21f.html index 1009fb2..5808173 100644 --- a/docs/dir_61ab004aa8225a3da30151b57198e21f.html +++ b/docs/dir_61ab004aa8225a3da30151b57198e21f.html @@ -5,14 +5,19 @@ -clutchlog: Debug_OFF/CMakeFiles/3.18.4/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_6a175d0efca5604214cace231e5b5b85.html b/docs/dir_6a175d0efca5604214cace231e5b5b85.html new file mode 100644 index 0000000..1a59154 --- /dev/null +++ b/docs/dir_6a175d0efca5604214cace231e5b5b85.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.2 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.2 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/dir_6ed22ffb850286f901161c59242a26a9.html b/docs/dir_6ed22ffb850286f901161c59242a26a9.html new file mode 100644 index 0000000..b80674f --- /dev/null +++ b/docs/dir_6ed22ffb850286f901161c59242a26a9.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_758abd5d6f4fa812820adbe21fc77736.html b/docs/dir_758abd5d6f4fa812820adbe21fc77736.html index d075ab9..e77399b 100644 --- a/docs/dir_758abd5d6f4fa812820adbe21fc77736.html +++ b/docs/dir_758abd5d6f4fa812820adbe21fc77736.html @@ -5,14 +5,19 @@ -clutchlog: CMakeFiles/3.24.1 Directory Reference +clutchlog: 3.24.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.24.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_775017225a25d99d321108cf859680b7.html b/docs/dir_775017225a25d99d321108cf859680b7.html new file mode 100644 index 0000000..7f8adfa --- /dev/null +++ b/docs/dir_775017225a25d99d321108cf859680b7.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_7993767c315ca7e2492c0e12f2140894.html b/docs/dir_7993767c315ca7e2492c0e12f2140894.html index 4b99081..417d38e 100644 --- a/docs/dir_7993767c315ca7e2492c0e12f2140894.html +++ b/docs/dir_7993767c315ca7e2492c0e12f2140894.html @@ -5,14 +5,19 @@ -clutchlog: Release_ON/CMakeFiles Directory Reference +clutchlog: CMakeFiles Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CMakeFiles Directory Reference
+ - + diff --git a/docs/dir_7ac2ccaca1f97cd5484903d036e6e018.html b/docs/dir_7ac2ccaca1f97cd5484903d036e6e018.html index ae1609d..768f242 100644 --- a/docs/dir_7ac2ccaca1f97cd5484903d036e6e018.html +++ b/docs/dir_7ac2ccaca1f97cd5484903d036e6e018.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_ON/CMakeFiles/3.22.1 Directory Reference +clutchlog: 3.22.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.22.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_7bfd87e22fd8913a7cdac6885aea0fda.html b/docs/dir_7bfd87e22fd8913a7cdac6885aea0fda.html index a3bb04f..1ef6097 100644 --- a/docs/dir_7bfd87e22fd8913a7cdac6885aea0fda.html +++ b/docs/dir_7bfd87e22fd8913a7cdac6885aea0fda.html @@ -5,14 +5,19 @@ -clutchlog: Release_ON/CMakeFiles/3.22.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_7cb602820ef60ce7eb9af6d9eb8de17a.html b/docs/dir_7cb602820ef60ce7eb9af6d9eb8de17a.html index 668fc9b..fa4b0a7 100644 --- a/docs/dir_7cb602820ef60ce7eb9af6d9eb8de17a.html +++ b/docs/dir_7cb602820ef60ce7eb9af6d9eb8de17a.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
RelWithDebInfo_OFF Directory Reference
+ - + diff --git a/docs/dir_818a2d2dcebf5fa9f09b2ff370a5de12.html b/docs/dir_818a2d2dcebf5fa9f09b2ff370a5de12.html index 77339b6..90effda 100644 --- a/docs/dir_818a2d2dcebf5fa9f09b2ff370a5de12.html +++ b/docs/dir_818a2d2dcebf5fa9f09b2ff370a5de12.html @@ -5,14 +5,19 @@ -clutchlog: CMakeFiles/3.20.2/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_8497d690b57aba136d1839e5c427d666.html b/docs/dir_8497d690b57aba136d1839e5c427d666.html index 769d5e4..047e7cd 100644 --- a/docs/dir_8497d690b57aba136d1839e5c427d666.html +++ b/docs/dir_8497d690b57aba136d1839e5c427d666.html @@ -5,14 +5,19 @@ -clutchlog: Release_ON/CMakeFiles/3.18.4/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_866cffd399c0180b7de2a8256258f17b.html b/docs/dir_866cffd399c0180b7de2a8256258f17b.html new file mode 100644 index 0000000..dd95426 --- /dev/null +++ b/docs/dir_866cffd399c0180b7de2a8256258f17b.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.2 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.2 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/dir_894f8a189fd86151cf73b234a425a3d7.html b/docs/dir_894f8a189fd86151cf73b234a425a3d7.html index a1789c6..0796243 100644 --- a/docs/dir_894f8a189fd86151cf73b234a425a3d7.html +++ b/docs/dir_894f8a189fd86151cf73b234a425a3d7.html @@ -5,14 +5,19 @@ -clutchlog: Release_ON/CMakeFiles/3.22.1 Directory Reference +clutchlog: 3.22.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.22.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_8a6224de47695006c09a16d36b73e641.html b/docs/dir_8a6224de47695006c09a16d36b73e641.html index 1b8c6c8..d0d5a03 100644 --- a/docs/dir_8a6224de47695006c09a16d36b73e641.html +++ b/docs/dir_8a6224de47695006c09a16d36b73e641.html @@ -5,14 +5,19 @@ -clutchlog: CMakeFiles/3.22.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_8c2a721f294f8662f32332b779336f59.html b/docs/dir_8c2a721f294f8662f32332b779336f59.html new file mode 100644 index 0000000..a443b22 --- /dev/null +++ b/docs/dir_8c2a721f294f8662f32332b779336f59.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.2 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.2 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/dir_8c3cbcfef903547985c71f28526a37d7.html b/docs/dir_8c3cbcfef903547985c71f28526a37d7.html index d3c41e0..1995ca9 100644 --- a/docs/dir_8c3cbcfef903547985c71f28526a37d7.html +++ b/docs/dir_8c3cbcfef903547985c71f28526a37d7.html @@ -5,14 +5,19 @@ -clutchlog: CMakeFiles/3.24.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_92c0d5e2f26f60bf332b421b29f12bb2.html b/docs/dir_92c0d5e2f26f60bf332b421b29f12bb2.html new file mode 100644 index 0000000..ff621d3 --- /dev/null +++ b/docs/dir_92c0d5e2f26f60bf332b421b29f12bb2.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_98e5a043168f914212fabec4e7836828.html b/docs/dir_98e5a043168f914212fabec4e7836828.html new file mode 100644 index 0000000..8c10b45 --- /dev/null +++ b/docs/dir_98e5a043168f914212fabec4e7836828.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.1 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.1 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/dir_99be30a3dc5b3fd221ff5ea6bdbc52f4.html b/docs/dir_99be30a3dc5b3fd221ff5ea6bdbc52f4.html index 364df14..52d1084 100644 --- a/docs/dir_99be30a3dc5b3fd221ff5ea6bdbc52f4.html +++ b/docs/dir_99be30a3dc5b3fd221ff5ea6bdbc52f4.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_ON/CMakeFiles/3.10.2 Directory Reference +clutchlog: 3.10.2 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.10.2 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_99f269110bdc8201794420d5043dadef.html b/docs/dir_99f269110bdc8201794420d5043dadef.html index 3dc70a7..cfdf3fe 100644 --- a/docs/dir_99f269110bdc8201794420d5043dadef.html +++ b/docs/dir_99f269110bdc8201794420d5043dadef.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_OFF/CMakeFiles/3.22.1 Directory Reference +clutchlog: 3.22.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.22.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_9a935cfcf36ab9c047ca734a48c6ea47.html b/docs/dir_9a935cfcf36ab9c047ca734a48c6ea47.html index 84cc3bb..0cc3c45 100644 --- a/docs/dir_9a935cfcf36ab9c047ca734a48c6ea47.html +++ b/docs/dir_9a935cfcf36ab9c047ca734a48c6ea47.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
- -
CMakeFiles Directory Reference
+ - + diff --git a/docs/dir_a5e190e82988878b02be1ad8893fe33a.html b/docs/dir_a5e190e82988878b02be1ad8893fe33a.html index b7e65cd..3b198a0 100644 --- a/docs/dir_a5e190e82988878b02be1ad8893fe33a.html +++ b/docs/dir_a5e190e82988878b02be1ad8893fe33a.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
- -
Release_OFF Directory Reference
+ - + diff --git a/docs/dir_a6147547081efd8e9250c1acee302c56.html b/docs/dir_a6147547081efd8e9250c1acee302c56.html index e558178..9dac6e7 100644 --- a/docs/dir_a6147547081efd8e9250c1acee302c56.html +++ b/docs/dir_a6147547081efd8e9250c1acee302c56.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_ON/CMakeFiles/3.10.2/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_a808995e8af62dcd5e402dfccd15597d.html b/docs/dir_a808995e8af62dcd5e402dfccd15597d.html index 926d406..8de7780 100644 --- a/docs/dir_a808995e8af62dcd5e402dfccd15597d.html +++ b/docs/dir_a808995e8af62dcd5e402dfccd15597d.html @@ -5,14 +5,19 @@ -clutchlog: CMakeFiles/3.22.1 Directory Reference +clutchlog: 3.22.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.22.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_a943a781f3047d1fe445d5e8eba50028.html b/docs/dir_a943a781f3047d1fe445d5e8eba50028.html index ca7e411..1b3d7a3 100644 --- a/docs/dir_a943a781f3047d1fe445d5e8eba50028.html +++ b/docs/dir_a943a781f3047d1fe445d5e8eba50028.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_ON/CMakeFiles/3.18.4/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_af2af1d16f39db1945b3d920de6c9a74.html b/docs/dir_af2af1d16f39db1945b3d920de6c9a74.html new file mode 100644 index 0000000..6d144e8 --- /dev/null +++ b/docs/dir_af2af1d16f39db1945b3d920de6c9a74.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.2 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.2 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/dir_b1c763aea5b862e235cc9501e2ce06da.html b/docs/dir_b1c763aea5b862e235cc9501e2ce06da.html index f1a96b8..19264fd 100644 --- a/docs/dir_b1c763aea5b862e235cc9501e2ce06da.html +++ b/docs/dir_b1c763aea5b862e235cc9501e2ce06da.html @@ -5,14 +5,19 @@ -clutchlog: Release_ON/CMakeFiles/3.10.2 Directory Reference +clutchlog: 3.10.2 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.10.2 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_b2c0fc6d3625db437ca13cb01c2a2d25.html b/docs/dir_b2c0fc6d3625db437ca13cb01c2a2d25.html index 2004f03..f167d5b 100644 --- a/docs/dir_b2c0fc6d3625db437ca13cb01c2a2d25.html +++ b/docs/dir_b2c0fc6d3625db437ca13cb01c2a2d25.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_OFF/CMakeFiles/3.24.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_be65af4ad555fa38f52fdec43511df23.html b/docs/dir_be65af4ad555fa38f52fdec43511df23.html index a8df11d..6fc6e93 100644 --- a/docs/dir_be65af4ad555fa38f52fdec43511df23.html +++ b/docs/dir_be65af4ad555fa38f52fdec43511df23.html @@ -5,14 +5,19 @@ -clutchlog: CMakeFiles/3.18.4 Directory Reference +clutchlog: 3.18.4 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.18.4 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_bf56be71754e1b48f8f3e417eb89bb69.html b/docs/dir_bf56be71754e1b48f8f3e417eb89bb69.html index e81cfcb..b461900 100644 --- a/docs/dir_bf56be71754e1b48f8f3e417eb89bb69.html +++ b/docs/dir_bf56be71754e1b48f8f3e417eb89bb69.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_ON/CMakeFiles/3.18.4 Directory Reference +clutchlog: 3.18.4 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.18.4 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_c318bd5cf14aaa5601e6029e0b5b4048.html b/docs/dir_c318bd5cf14aaa5601e6029e0b5b4048.html index 8852813..b03ed7e 100644 --- a/docs/dir_c318bd5cf14aaa5601e6029e0b5b4048.html +++ b/docs/dir_c318bd5cf14aaa5601e6029e0b5b4048.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
- -
clutchlog Directory Reference
@@ -77,11 +95,15 @@ Files
 
+ - + diff --git a/docs/dir_c4a9649e2c19957546df4aa816ec8cc0.html b/docs/dir_c4a9649e2c19957546df4aa816ec8cc0.html new file mode 100644 index 0000000..78ddd6a --- /dev/null +++ b/docs/dir_c4a9649e2c19957546df4aa816ec8cc0.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.1 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.1 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/dir_c6d9c1238235b0a4853a9dfbf2961dcc.html b/docs/dir_c6d9c1238235b0a4853a9dfbf2961dcc.html index 0cbf1bf..3881aba 100644 --- a/docs/dir_c6d9c1238235b0a4853a9dfbf2961dcc.html +++ b/docs/dir_c6d9c1238235b0a4853a9dfbf2961dcc.html @@ -5,14 +5,19 @@ -clutchlog: Release_OFF/CMakeFiles/3.24.1 Directory Reference +clutchlog: 3.24.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.24.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_c9d710504e3415cd6c2884f7df804eda.html b/docs/dir_c9d710504e3415cd6c2884f7df804eda.html index 990b84d..791e88f 100644 --- a/docs/dir_c9d710504e3415cd6c2884f7df804eda.html +++ b/docs/dir_c9d710504e3415cd6c2884f7df804eda.html @@ -5,14 +5,19 @@ -clutchlog: Release_OFF/CMakeFiles/3.24.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_cdf5c923bc2c6e3a8f477f79f88fdf80.html b/docs/dir_cdf5c923bc2c6e3a8f477f79f88fdf80.html new file mode 100644 index 0000000..e022c34 --- /dev/null +++ b/docs/dir_cdf5c923bc2c6e3a8f477f79f88fdf80.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_d243ddefd93144b3016517f1bc792d41.html b/docs/dir_d243ddefd93144b3016517f1bc792d41.html new file mode 100644 index 0000000..932f520 --- /dev/null +++ b/docs/dir_d243ddefd93144b3016517f1bc792d41.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.1 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.1 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/dir_dd500134467ec65427366f3cbbc5ff81.html b/docs/dir_dd500134467ec65427366f3cbbc5ff81.html index b2a2de1..f8cb6b9 100644 --- a/docs/dir_dd500134467ec65427366f3cbbc5ff81.html +++ b/docs/dir_dd500134467ec65427366f3cbbc5ff81.html @@ -5,14 +5,19 @@ -clutchlog: Debug_OFF/CMakeFiles/3.10.2 Directory Reference +clutchlog: 3.10.2 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.10.2 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_de06b53c2e04c67b773395f92873ff7f.html b/docs/dir_de06b53c2e04c67b773395f92873ff7f.html index 516bf9e..8200d48 100644 --- a/docs/dir_de06b53c2e04c67b773395f92873ff7f.html +++ b/docs/dir_de06b53c2e04c67b773395f92873ff7f.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
RelWithDebInfo_ON Directory Reference
+ - + diff --git a/docs/dir_e486d5210108a359e139a984535147fa.html b/docs/dir_e486d5210108a359e139a984535147fa.html index 2d480d5..5c326d4 100644 --- a/docs/dir_e486d5210108a359e139a984535147fa.html +++ b/docs/dir_e486d5210108a359e139a984535147fa.html @@ -5,14 +5,19 @@ -clutchlog: Debug_OFF/CMakeFiles/3.24.1 Directory Reference +clutchlog: 3.24.1 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.24.1 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_ec4f48f1c0ac567d297185d46cf69b0c.html b/docs/dir_ec4f48f1c0ac567d297185d46cf69b0c.html index c089c00..4922d61 100644 --- a/docs/dir_ec4f48f1c0ac567d297185d46cf69b0c.html +++ b/docs/dir_ec4f48f1c0ac567d297185d46cf69b0c.html @@ -5,14 +5,19 @@ -clutchlog: CMakeFiles/3.18.4/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_ede0e87241159758c1b375c196bd55d8.html b/docs/dir_ede0e87241159758c1b375c196bd55d8.html index 8a9e0e4..fe3129f 100644 --- a/docs/dir_ede0e87241159758c1b375c196bd55d8.html +++ b/docs/dir_ede0e87241159758c1b375c196bd55d8.html @@ -5,14 +5,19 @@ -clutchlog: CMakeFiles/3.10.2 Directory Reference +clutchlog: 3.10.2 Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
3.10.2 Directory Reference
@@ -75,11 +93,15 @@ $(function() { Directories
+ - + diff --git a/docs/dir_efad9d19c1d0f0e4e7c2a7055d8c4319.html b/docs/dir_efad9d19c1d0f0e4e7c2a7055d8c4319.html new file mode 100644 index 0000000..4bf1f61 --- /dev/null +++ b/docs/dir_efad9d19c1d0f0e4e7c2a7055d8c4319.html @@ -0,0 +1,103 @@ + + + + + + + +clutchlog: CompilerIdCXX Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompilerIdCXX Directory Reference
+
+
+
+
+ + + + diff --git a/docs/dir_f324b8056e3921282ea6aa7d15c7705c.html b/docs/dir_f324b8056e3921282ea6aa7d15c7705c.html index 0579551..29db938 100644 --- a/docs/dir_f324b8056e3921282ea6aa7d15c7705c.html +++ b/docs/dir_f324b8056e3921282ea6aa7d15c7705c.html @@ -5,14 +5,19 @@ -clutchlog: Release_ON/CMakeFiles/3.10.2/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_f544411fb6a30872da080b65ab4522b8.html b/docs/dir_f544411fb6a30872da080b65ab4522b8.html index d5161ce..4957204 100644 --- a/docs/dir_f544411fb6a30872da080b65ab4522b8.html +++ b/docs/dir_f544411fb6a30872da080b65ab4522b8.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_OFF/CMakeFiles/3.18.4/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_f792a45ec812fbfe638a4ac0a7328817.html b/docs/dir_f792a45ec812fbfe638a4ac0a7328817.html index 2f44405..e69aa35 100644 --- a/docs/dir_f792a45ec812fbfe638a4ac0a7328817.html +++ b/docs/dir_f792a45ec812fbfe638a4ac0a7328817.html @@ -5,14 +5,19 @@ -clutchlog: Debug_OFF/CMakeFiles/3.24.1/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_f803ec176eda9a8494dc55dc57236527.html b/docs/dir_f803ec176eda9a8494dc55dc57236527.html index df2f26a..ffce5ab 100644 --- a/docs/dir_f803ec176eda9a8494dc55dc57236527.html +++ b/docs/dir_f803ec176eda9a8494dc55dc57236527.html @@ -5,14 +5,19 @@ -clutchlog: RelWithDebInfo_OFF/CMakeFiles/3.10.2/CompilerIdCXX Directory Reference +clutchlog: CompilerIdCXX Directory Reference + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
+
+ +
+
+
+ +
CompilerIdCXX Directory Reference
+ - + diff --git a/docs/dir_f8a3332db6d84dae1dbf9771c0b0918f.html b/docs/dir_f8a3332db6d84dae1dbf9771c0b0918f.html new file mode 100644 index 0000000..6792bda --- /dev/null +++ b/docs/dir_f8a3332db6d84dae1dbf9771c0b0918f.html @@ -0,0 +1,107 @@ + + + + + + + +clutchlog: 3.25.1 Directory Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
3.25.1 Directory Reference
+
+
+ + +

+Directories

+
+
+ + + + diff --git a/docs/doxygen-style.css b/docs/doxygen-style.css new file mode 100644 index 0000000..6d66a28 --- /dev/null +++ b/docs/doxygen-style.css @@ -0,0 +1,843 @@ +/* This doxygen theme is free to use. If you like this, please Star https://github.com/kcwongjoe/doxygen_theme_flat_design */ + +/* Color Pattern. You can change this pattern to design your theme. */ + +:root { + /* Content */ + --bgcolor: #ffffff; + --bgfont: #303030; + --bgfont2: #3771c8; + --bgfont-hover: #3771c8; + --bgfont-hover-text-decoration: underline solid #3771c8; + --bgborder: #7d7d7d; + --bgborder2: #f6f6f6; + --bgfont-link:#1751a8; + /* Main Header */ + --bg1color: #303030; + --bg1font: #ffffff; + --bg1font2: #3771c8; + /* Second header */ + --bg2color: #E2E2E2; + --bg2font: #7D7D7D; + --bg2-hover-bg: #ffffff; + --bg2-hover-font: #303030; + --bg2-hover-topborder: #3771c8; + /* Third header */ + --bg3color: #f6f6f6; + --bg3font: #303030; + --bg3font2: #7D7D7D; + /* Code */ + --code-bg: #232323; + --code-comment: #a5c261; + --code-keyword: #db4939; + --code-preprocessor: #efcd45; + --code-keywordtype: #87bbff; + --code-text: #b1cfb1; + --code-code: #d3d0cc; + --code-line: #73707c; + --code-line-bg: #232323; + --code-link: #b7dbff; + /* Namespace List, Class List icon */ + --icon-bg: #303030 + --icon-font: #3771c8; + /* Class Index */ + --qindex-menu-bg: #303030; + --qindex-menu-font: #ffffff; + --qindex-menu-font-hover: #3771c8; + --qindex-icon-bg: #3771c8; + --qindex-icon-font: #303030; + /* Member table */ + --mem-title-bg: #3771c8; + --mem-title-font: #ffffff; + --mem-subtitle-bg: #77b1f8; + --mem-subtitle-font: #303030; + --mem-subtitle-font-hover: #303030; + --mem-content-bg: #ffffff; + --mem-content-font: #303030; + --mem-content-border: grey; + --mem-content-highlighted:#3771c8; + /* Nav Tree */ + --nav-tree-bg: #E2E2E2; + --nav-tree-bg-hover: #ffffff; + --nav-tree-font: #7D7D7D; + --nav-tree-font-hover: #303030; + --nav-tree-bg-selected: #3771c8; + --nav-tree-font-selected: white; +} + +body, table, div, p, dl { + color: var(--bgfont); + background-color: var(--bgcolor); + line-height: 150%; + font-size: 18px; +} + +div.contents p { + margin-left:1em; +} + +div.contents { + margin: 20px 40px; +} + +div.contents ul { + line-height: 200%; + margin-left:1.5em; +} + +/* +h1 { + margin:0px; + margin-top: 2em; + margin-bottom:1em; + background-color:var(--bgfont2); + color: var(--bgcolor); + font-size: 200%; + padding:1em; + border: 2px solid var(--bgfont2); + box-shadow:0.5em 0.5em 0.5em var(--bgfont); + font-family:monospace; +} +*/ + +h1 { + color: #303030; + font-size: 160%; + font-weight: bold; + border-bottom: 2px solid var(--bgfont2); + padding-bottom:3px; + margin-top:2em; +} + +/*h2.groupheader {*/ +h2 { + color: #303030; + font-size: 140%; + font-weight: bold; + border-bottom: 1px solid var(--bgfont2); + padding-bottom:1px; + margin-top:1.5em; +} + +h3 { + color: #303030; + font-size: 120%; + font-weight: bold; + margin-top:1.5em; +} + +div.textblock > p:first-of-type { + font-size: 120%; + margin:1em; + border: thin solid black; + padding: 1em; + background-color:var(--bgfont2); + color: var(--bgcolor); + border: 2px solid var(--bgfont2); + box-shadow:0.5em 0.5em 0.5em var(--bgfont); +} + +/***********************************/ + +/********** Project header *********/ + +/***********************************/ + +.title { + font-size: 2em; +} + +#titlearea { + border-bottom: none; + padding-bottom: 20px; + padding-top: 20px; +} + +#titlearea, #titlearea * { + color: var(--bg1font); + background-color: var(--bg1color); +} + +#projectname { + padding: 0px 40px !important; +} + +#projectbrief { + padding: 0px 40px !important; +} + +#projectalign { + padding: 0px !important; + vertical-align: bottom; +} + +#projectlogo > img { + width: 100px; +} + +/***********************************/ + +/************ Main Menu ************/ + +/***********************************/ + +/* Margin */ + +#main-menu { + padding: 0px 30px; +} + +#main-menu a, #main-menu a:hover { + padding-top: 10px; + padding-bottom: 10px; +} + +/* Menu button */ + +#main-menu li a { + background-image: none; + font-family: Arial; + text-shadow: none; + font-size: 14px; + font-weight: 700; +} + +#main-menu, #main-menu>li>a { + background-image: none; + background-color: var(--bg2color); + color: var(--bg2font); + transition: 0.2s; +} + +/* hover Effect */ + +#main-menu>li { + border-top: 5px solid var(--bg2color); +} + +#main-menu>li:hover { + color: var(--bg2-hover-font); + background-color: var(--bg2-hover-bg); + border-top: 5px solid var(--bg2-hover-topborder); + font-width: bold; +} + +#main-menu>li:hover, #main-menu>li>a:hover, #main-menu>li>a.highlighted { + color: var(--bg2-hover-font); + background-color: var(--bg2-hover-bg); + font-width: bold; +} + +/* Search Bar */ + +#MSearchBox { + border-radius: 0; + box-shadow: none; +} + +#MSearchBox>span { + margin: 10px; +} + +#main-menu>li:last-child { + padding: 25px 0px; +} + +/* Reset search hover color*/ + +#main-menu>li:last-child:hover { + color: var(--bg2font); + background-color: var(--bg2color); + border-top: 5px solid var(--bg2color); +} + +#MSearchResultsWindow { + border: 1px solid var(--bg3font2); + background-color: var(--bg3color); + padding: 10px; +} + +body.SRPage, body.SRPage * { + font-family: Arial; +} + +/* Sub Menu */ + +#main-menu>li ul { + transition: max-height 0.2s ease-in-out; + padding: 0px; + border-radius: 0px !important; +} + +#main-menu>li ul:before, #main-menu>li ul:after { + border-width: 0px; +} + +#main-menu>li>ul li a, #main-menu>li>ul li { + background-color: var(--bgcolor); + color: var(--bgfont); + background-image: none; +} + +#main-menu>li>ul li a:hover, #main-menu>li>ul li:hover { + background-color: var(--bgfont2); + /*color: var(--bgfont);*/ + color: white; + font-width: bold; +} + +/***********************************/ + +/************** Header *************/ + +/***********************************/ + +div.headertitle { + padding: 5px 40px; +} + +div.header, div.header * { + color: var(--bg3font); + background-color: var(--bg3color); + border-bottom: none; +} + +div.summary { + padding-right: 40px; +} + +/***********************************/ + +/************** Link *************/ + +/***********************************/ + +a, a:visited, a:active, .contents a:visited, body.SRPage a, body.SRPage a:visited, body.SRPage a:active { + color: var(--bgfont-link); + text-decoration: none; +} + +a:hover, .contents a:hover, body.SRPage a:hover { + color: var(--bgfont-hover); + text-decoration: var(--bgfont-hover-text-decoration); + +} + +.dynheader { + color: var(--bgfont-link); + text-decoration: none; +} + +.dynheader:hover { + color: var(--bgfont-hover); + text-decoration: var(--bgfont-hover-text-decoration); +} + +/***********************************/ + +/************ Nav-path ************/ + +/***********************************/ + +#nav-path, #nav-path ul { + background-image: none; +} + +#nav-path ul { + padding: 5px 30px; +} + +#nav-path, #nav-path * { + color: var(--bg3font2); + background-color: var(--bg3color); + border: none; + font-family: Arial; +} + +li.navelem { + background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnN2Z2pzPSJodHRwOi8vc3ZnanMuY29tL3N2Z2pzIiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDI5Mi4zNTkgMjkyLjM1OSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTEyIDUxMiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgY2xhc3M9IiI+PGc+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+Cgk8cGF0aCBkPSJNMjIyLjk3OSwxMzMuMzMxTDk1LjA3Myw1LjQyNEM5MS40NTYsMS44MDcsODcuMTc4LDAsODIuMjI2LDBjLTQuOTUyLDAtOS4yMzMsMS44MDctMTIuODUsNS40MjQgICBjLTMuNjE3LDMuNjE3LTUuNDI0LDcuODk4LTUuNDI0LDEyLjg0N3YyNTUuODEzYzAsNC45NDgsMS44MDcsOS4yMzIsNS40MjQsMTIuODQ3YzMuNjIxLDMuNjE3LDcuOTAyLDUuNDI4LDEyLjg1LDUuNDI4ICAgYzQuOTQ5LDAsOS4yMy0xLjgxMSwxMi44NDctNS40MjhsMTI3LjkwNi0xMjcuOTA3YzMuNjE0LTMuNjEzLDUuNDI4LTcuODk3LDUuNDI4LTEyLjg0NyAgIEMyMjguNDA3LDE0MS4yMjksMjI2LjU5NCwxMzYuOTQ4LDIyMi45NzksMTMzLjMzMXoiIGZpbGw9IiM3ZDdkN2QiIGRhdGEtb3JpZ2luYWw9IiMwMDAwMDAiIHN0eWxlPSIiIGNsYXNzPSIiPjwvcGF0aD4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8L2c+PC9zdmc+); + background-size: 9px; +} + +li.navelem a { + margin-right: 20px; +} + +/***********************************/ + +/*************** mem ***************/ + +/***********************************/ + +.memtitle { + padding: 15px; + margin-top: 30px; + border-top-left-radius: 0px; + border-top-right-radius: 0px; +} + +.memtitle, .memtitle *, .memtitle a:visited { + border: none; + background-image: none; + color: var(--mem-title-font); + background-color: var(--mem-title-bg); +} + +.memproto { + padding: 2em; + text-shadow: none; + border-top-right-radius: 0px; + -moz-border-radius-topright: 0px; + -webkit-border-top-right-radius: 0px; +} + +.memproto, .memproto *, .memproto a:visited { + border: none; + background-image: none; + background-color: var(--mem-subtitle-bg); + color: var(--mem-subtitle-font); + font-size: inherit; + line-height: 100% +} + +.memproto a:hover { + color: var(--mem-subtitle-font-hover); +} + +.memdoc { + border-bottom: 1px solid var(--mem-content-border); + border-left: 1px solid var(--mem-content-border); + border-right: 1px solid var(--mem-content-border); + background-color: var(--mem-content-bg); + color: var(--mem-content-font); + border-bottom-left-radius: 0px; + border-bottom-right-radius: 0px; + -moz-border-radius-bottomleft: 0px; + -moz-border-radius-bottomright: 0px; + -webkit-border-bottom-left-radius: 0px; + -webkit-border-bottom-right-radius: 0px; + padding:1em; +} + +.memdoc p, .memdoc dt { + /*padding: 0px 20px;*/ +} + +.memdoc > p { + font-size:1em; +} + +.paramname { + color:black; +} + +td.memItemRight > a:first-of-type { + font-size:1.3em; +} + +/***********************************/ + +/************* Contents ************/ + +/***********************************/ + +a.anchor { + padding-top: 20px; +} + +dl { + border-left: 5px solid; + padding:1em; +} + +dt { + font-variant-caps: small-caps; +} + +dl.warning { + border-top: thin solid red; + border-right: thin solid red; + border-bottom: thin solid red; + border-left-color: red; + background-color: #fee; +} + +dl.warning > dt { + color: #500; +} + +dl.note { + border-top:thin solid green; + border-right:thin solid green; + border-bottom:thin solid green; + border-left-color:green; + background-color: #efe; +} + +dl.note > dt { + color: #050; +} + +div.textblock { + padding:2em; + border: 2px solid var(--bgfont2); + box-shadow:0.5em 0.5em 0.5em var(--bgfont); + background-color: #fafaff; +} + +/* +div.textblock > p { + font-size:1.2em; +} +*/ + +div.textblock > p.definition { + font-size:0.8em; +} + +p.definition { + font-size: 0.8em; +} + +p.reference { + font-size: 0.8em; +} + +p { + background-color: transparent; +} + +table { + margin-top:4em; +} + +table.memname { + margin-top:0.1em; +} + +table.mlabels { + margin-top:0.1em; +} + +/***********************************/ + +/************* fragment ************/ + +/***********************************/ + +div.fragment, pre.fragment { + border: none; + padding: 1em; + margin-left: 1em; + margin-right: 1em; + background-color: var(--code-bg); + border-left: 2px solid black; + border-top: 2px solid black; + border-right: 2px solid grey; + border-bottom: 2px solid grey; +} + +div.fragment > div.line { + font-size:1em; + line-height:150%; + color: var(--code-code); +} + +.textblock > div.fragment { + font-size: 1em; +} + +.textblock > dl.section { + font-size: 1.2em; +} + +div.line { + background-color: var(--code-bg); +} + +span.comment { + color: var(--code-comment); +} + +span.keyword { + color: var(--code-keyword); +} + +span.preprocessor { + color: var(--code-preprocessor); +} + +span.keywordtype { + color: var(--code-keywordtype); +} + +span.stringliteral { + color: var(--code-text); +} + +span.mlabel { + background-color: var(--code-text); + color: var(--code-bg); + border-top: none; + border-left: none; + border-right: none; + border-bottom: none; + padding: 10px; + border-radius: 0px; +} + +div.fragment > div.line > a.code { + color: var(--code-link); +} + +span.lineno, span.lineno>* { + color: var(--code-line); + border-right: none; + background-color: var(--code-bg); +} + +span.lineno a { + background-color: var(--code-line-bg); +} + +span.lineno a:hover { + color: var(--bg3font); + background-color: var(--code-line-bg); +} + +code { + background-color: #eee; + color: black; +} + +/***********************************/ + +/************* directory ***********/ + +/***********************************/ + +.directory tr.even { + background-color: inherit; +} + +.iconfclosed { + background-image: url(closed-folder.png); + margin-right: 10px; +} + +.iconfopen { + background-image: url(opened-folder.png); + margin-right: 10px; +} + +.icondoc { + background-image: url(document.png); + margin-right: 10px; +} + +.arrow { + color: #7d7d7d; +} + +.icona { + vertical-align: middle; + margin-right: 5px; +} + +.icon { + background-color: var(--icon-bg); + color: var(--icon-font); + display: table-cell; + vertical-align: middle; + height: 20px; + width: 20px; +} + +div.ah { + background-color: var(--qindex-icon-bg); + color: var(--qindex-icon-font); + text-align: center; + background-image: none; + -webkit-box-shadow: none; + box-shadow: none; + -webkit-border-radius: 0px; + border-radius: 0px; + border: none; +} + +div.qindex { + background-color: var(--qindex-menu-bg); + border: none; + padding: 20px; +} + +a.qindex { + color: var(--qindex-menu-font); + font-weight: normal; + font-size: 20px; +} + +a:hover.qindex { + color: var(--qindex-menu-font-hover); +} + +a:visited.qindex { + color: var(--qindex-menu-font); +} + +table.classindex { + margin-top: 30px; + margin-bottom: 30px; +} + +table.classindex a.el { + font-weight: normal; +} + +table.params { + margin-top:1em; +} + +#titlearea > table { + margin-top:0px; +} + +table.directory > tbody > tr { + border-top: thin solid var(--nav-tree-bg); + border-bottom: thin solid var(--nav-tree-bg); +} + +/***********************************/ + +/************** footer *************/ + +/***********************************/ + +div.directory { + border-top: 1px solid var(--bgborder); + border-bottom: none; + margin: 20px 0px; +} + +div.directory a.el { + font-weight: normal; +} + +div.directory>table { + margin: 20px 0px; +} + +hr.footer { + border: none; +} + +.contents>hr { + border-top: 0px; +} + +/***********************************/ + +/*********** memberdecls ***********/ + +/***********************************/ + +.memItemLeft, .memItemRight { + padding: 15px 30px; + background-color: inherit; +} + +.mdescRight { + padding: 0px 30px 10px 30px; +} + +.memberdecls * { + background-color: inherit; +} + +.memSeparator { + border-bottom: 1px solid var(--bgborder2); +} + +.memTemplParams { + color: var(--bgfont); +} + +/***********************************/ + +/*********** nav-tree ***********/ + +/***********************************/ + +#nav-tree-contents { + background-color: var(--nav-tree-bg); + margin: 0px; +} + +#side-nav, #nav-tree { + background-image: none; + background-color: var(--nav-tree-bg); +} + +#nav-tree .item { + background-color: var(--nav-tree-bg); + font-family: Arial; + text-shadow: none; + font-size: 90%; + font-weight: 700; + padding: 0.5em; + color: var(--nav-tree-font); +} + +#nav-tree .arrow { + color: var(--nav-tree-font); +} + +#nav-tree .selected { + background-image: none; + background-color: var(--nav-tree-bg-selected); +} + +#nav-tree .selected a { + color: var(--nav-tree-font-selected); +} + +#nav-tree .item:hover { + background-color: var(--nav-tree-bg-hover); + color: var(--nav-tree-font-hover); +} + +#nav-tree .item a:hover { + color: var(--nav-tree-font-hover); +} + +#side-nav .ui-resizable-e { + background-image: none; + background-color: var(--nav-tree-bg); +} + +#nav-sync { + background-color: transparent; +} + +#nav-sync>img { + content: url(off_sync.png); +} + +#nav-sync.sync>img { + content: url(on_sync.png); +} + +div.toc { + margin: 1em ; + margin-top: 15em; +} + +/***********************************/ + +/*********** Plant UML ***********/ + +/***********************************/ + +.plantumlgraph > img { + width: 80%; +} diff --git a/docs/dynsections.js b/docs/dynsections.js index ea0a7b3..c8e84aa 100644 --- a/docs/dynsections.js +++ b/docs/dynsections.js @@ -118,3 +118,10 @@ function toggleInherit(id) } } /* @license-end */ + +$(document).ready(function() { + $('.code,.codeRef').each(function() { + $(this).data('powertip',$('#a'+$(this).attr('href').replace(/.*\//,'').replace(/[^a-z_A-Z0-9]/g,'_')).html()); + $(this).powerTip({ placement: 's', smartPlacement: true, mouseOnToPopup: true }); + }); +}); diff --git a/docs/files.html b/docs/files.html index 439cad2..a3669aa 100644 --- a/docs/files.html +++ b/docs/files.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +
Here is a list of all documented files with brief descriptions:
-
[detail level 12]
- - +
  clutchlog
 clutchlog.h
+ + + + + + +
 clutchlog.h
 t-assert.cpp
 t-color.cpp
 t-demo.cpp
 t-dump.cpp
 t-log.cpp
 t-one-line-if.cpp
+
- + diff --git a/docs/files_dup.js b/docs/files_dup.js new file mode 100644 index 0000000..21fd2bb --- /dev/null +++ b/docs/files_dup.js @@ -0,0 +1,10 @@ +var files_dup = +[ + [ "clutchlog.h", "clutchlog_8h.html", "clutchlog_8h" ], + [ "t-assert.cpp", "t-assert_8cpp_source.html", null ], + [ "t-color.cpp", "t-color_8cpp_source.html", null ], + [ "t-demo.cpp", "t-demo_8cpp_source.html", null ], + [ "t-dump.cpp", "t-dump_8cpp_source.html", null ], + [ "t-log.cpp", "t-log_8cpp_source.html", null ], + [ "t-one-line-if.cpp", "t-one-line-if_8cpp_source.html", null ] +]; \ No newline at end of file diff --git a/docs/functions.html b/docs/functions.html index fe8c017..0017432 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +
+
- + diff --git a/docs/functions_enum.html b/docs/functions_enum.html index d686801..0c2b1c2 100644 --- a/docs/functions_enum.html +++ b/docs/functions_enum.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +
+
- + diff --git a/docs/functions_func.html b/docs/functions_func.html index def9918..1b200e4 100644 --- a/docs/functions_func.html +++ b/docs/functions_func.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +
+
- + diff --git a/docs/functions_rela.html b/docs/functions_rela.html index f8e12a4..6cda834 100644 --- a/docs/functions_rela.html +++ b/docs/functions_rela.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +
+
- + diff --git a/docs/functions_vars.html b/docs/functions_vars.html index a3b856e..bbc3a4a 100644 --- a/docs/functions_vars.html +++ b/docs/functions_vars.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +
+
- + diff --git a/docs/globals.html b/docs/globals.html index f66fe1f..3f13122 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +
Here is a list of all documented file members with links to the documentation:
+
- + diff --git a/docs/globals_defs.html b/docs/globals_defs.html index 47667d5..3dd5e0c 100644 --- a/docs/globals_defs.html +++ b/docs/globals_defs.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +
 
+
- + diff --git a/docs/graph_legend.html b/docs/graph_legend.html index e3eeda3..d3185fd 100644 --- a/docs/graph_legend.html +++ b/docs/graph_legend.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +
Used *m_usedClass;
};

This will result in the following graph:

-

The boxes in the above graph have the following meaning:

+

The boxes in the above graph have the following meaning:

  • A filled gray box represents the struct or class for which the graph is generated.
  • @@ -127,11 +149,14 @@ A purple dashed arrow is used if a class is contained or used by another class. A yellow dashed arrow denotes a relation between a template instance and the template class it was instantiated from. The arrow is labelled with the template parameters of the instance.
+ - + diff --git a/docs/graph_legend.md5 b/docs/graph_legend.md5 index 8fcdccd..5543aee 100644 --- a/docs/graph_legend.md5 +++ b/docs/graph_legend.md5 @@ -1 +1 @@ -f51bf6e9a10430aafef59831b08dcbfe \ No newline at end of file +2949d8d683b49299ad5e82dbf5d1be6c \ No newline at end of file diff --git a/docs/graph_legend.svg b/docs/graph_legend.svg new file mode 100644 index 0000000..6e9e19a --- /dev/null +++ b/docs/graph_legend.svg @@ -0,0 +1,117 @@ + + + + + + +Graph Legend + + + +Node9 + +Inherited + + + +Node10 + +PublicBase + + + +Node10->Node9 + + + + + +Node11 + +Truncated + + + +Node11->Node10 + + + + + +Node13 + +ProtectedBase + + + +Node13->Node9 + + + + + +Node14 + +PrivateBase + + + +Node14->Node9 + + + + + +Node15 + +Undocumented + + + +Node15->Node9 + + + + + +Node16 + +Templ< int > + + + +Node16->Node9 + + + + + +Node17 + +Templ< T > + + + +Node17->Node16 + + +< int > + + + +Node18 + +Used + + + +Node18->Node9 + + +m_usedClass + + + diff --git a/docs/group__DefaultConfig.html b/docs/group__DefaultConfig.html new file mode 100644 index 0000000..5952b89 --- /dev/null +++ b/docs/group__DefaultConfig.html @@ -0,0 +1,115 @@ + + + + + + + +clutchlog: Default configuration management + + + + + + + + + +
+
+ + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Default configuration management
+
+
+ + + + + +

+Macros

+#define CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG   clutchlog::level::progress
 Default level over which calls to the logger are optimized out when NDEBUG is defined.
 
+ + + + + + + + + + + + + + + + + + + +

+Default configuration members

+#define CLUTCHLOG_DEFAULT_FORMAT   "{level_letter} {msg}\t\t\t\t\t{func} @ {file}:{line}\n"
 Compile-time default format of the messages (debug mode: with absolute location).
 
+#define CLUTCHDUMP_DEFAULT_FORMAT   "# {level} in {func} @ {file}:{line}"
 Compile-time default format of the comment line in file dump.
 
+#define CLUTCHDUMP_DEFAULT_SEP   "\n"
 Compile-time default item separator for dump.
 
+#define CLUTCHLOG_DEFAULT_DEPTH_MARK   ">"
 Compile-time default mark for stack depth.
 
+#define CLUTCHLOG_STRIP_CALLS   5
 Compile-time number of call stack levels to remove from depth display by default.
 
+#define CLUTCHLOG_HFILL_MARK   '.'
 Character used as a filling for right-align the right part of messages with "{hfill}".
 
+

Detailed Description

+
+ + + + diff --git a/docs/group__DefaultConfig.map b/docs/group__DefaultConfig.map new file mode 100644 index 0000000..ea28931 --- /dev/null +++ b/docs/group__DefaultConfig.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/group__DefaultConfig.md5 b/docs/group__DefaultConfig.md5 new file mode 100644 index 0000000..8bb2b98 --- /dev/null +++ b/docs/group__DefaultConfig.md5 @@ -0,0 +1 @@ +2e2446c330b9fe7596347d8e7bc175e8 \ No newline at end of file diff --git a/docs/group__DefaultConfig.png b/docs/group__DefaultConfig.png new file mode 100644 index 0000000..2ae5525 Binary files /dev/null and b/docs/group__DefaultConfig.png differ diff --git a/docs/group__DefaultConfigMacros.map b/docs/group__DefaultConfigMacros.map new file mode 100644 index 0000000..d5614e5 --- /dev/null +++ b/docs/group__DefaultConfigMacros.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/group__DefaultConfigMacros.md5 b/docs/group__DefaultConfigMacros.md5 new file mode 100644 index 0000000..90775b0 --- /dev/null +++ b/docs/group__DefaultConfigMacros.md5 @@ -0,0 +1 @@ +b30048ae8c0aaa7d245efec6954e3745 \ No newline at end of file diff --git a/docs/group__DefaultConfigMacros.png b/docs/group__DefaultConfigMacros.png new file mode 100644 index 0000000..3ef40e6 Binary files /dev/null and b/docs/group__DefaultConfigMacros.png differ diff --git a/docs/group___default_config.html b/docs/group___default_config.html new file mode 100644 index 0000000..5ae8637 --- /dev/null +++ b/docs/group___default_config.html @@ -0,0 +1,140 @@ + + + + + + + +clutchlog: Default configuration management + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Default configuration management
+
+
+

Detailed Description

+ + + + + +

+Macros

+#define CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG   clutchlog::level::progress
 Default level over which calls to the logger are optimized out when NDEBUG is defined.
 
+ + + + + + + + + + + + + + + + + + + +

+Default configuration members

+#define CLUTCHLOG_DEFAULT_FORMAT   "{level_letter} {msg}\t\t\t\t\t{func} @ {file}:{line}\n"
 Compile-time default format of the messages (debug mode: with absolute location).
 
+#define CLUTCHDUMP_DEFAULT_FORMAT   "# {level} in {func} @ {file}:{line}"
 Compile-time default format of the comment line in file dump.
 
+#define CLUTCHDUMP_DEFAULT_SEP   "\n"
 Compile-time default item separator for dump.
 
+#define CLUTCHLOG_DEFAULT_DEPTH_MARK   ">"
 Compile-time default mark for stack depth.
 
+#define CLUTCHLOG_STRIP_CALLS   5
 Compile-time number of call stack levels to remove from depth display by default.
 
+#define CLUTCHLOG_HFILL_MARK   '.'
 Character used as a filling for right-align the right part of messages with "{hfill}".
 
+
+
+ + + + diff --git a/docs/group___default_config.js b/docs/group___default_config.js new file mode 100644 index 0000000..d8bdac4 --- /dev/null +++ b/docs/group___default_config.js @@ -0,0 +1,10 @@ +var group___default_config = +[ + [ "CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG", "group___default_config.html#ga8564be479b948ee3052b61783c66d415", null ], + [ "CLUTCHLOG_DEFAULT_FORMAT", "group___default_config.html#ga524c16f280d92ee8ab683162c9ce01fa", null ], + [ "CLUTCHDUMP_DEFAULT_FORMAT", "group___default_config.html#ga27b613c6727857a7cbcd0165d862034e", null ], + [ "CLUTCHDUMP_DEFAULT_SEP", "group___default_config.html#ga54d29e956575e1c731eab5406135c5df", null ], + [ "CLUTCHLOG_DEFAULT_DEPTH_MARK", "group___default_config.html#ga45c4c964fad4ad1641d5c9c28c4645b9", null ], + [ "CLUTCHLOG_STRIP_CALLS", "group___default_config.html#ga98f30d814d4913a8a7c93a8793f49adf", null ], + [ "CLUTCHLOG_HFILL_MARK", "group___default_config.html#gad5fbbacf74b8e4669b8f9efdfe81bd25", null ] +]; \ No newline at end of file diff --git a/docs/group___formating.html b/docs/group___formating.html new file mode 100644 index 0000000..6aab4d2 --- /dev/null +++ b/docs/group___formating.html @@ -0,0 +1,112 @@ + + + + + + + +clutchlog: Formating tools + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Formating tools
+
+
+

Detailed Description

+ + + + + +

+Classes

class  clutchlog::fmt
 Color and style formatter for ANSI terminal escape sequences. More...
 
+
+
+ + + + diff --git a/docs/group___formating.js b/docs/group___formating.js new file mode 100644 index 0000000..4c17423 --- /dev/null +++ b/docs/group___formating.js @@ -0,0 +1,48 @@ +var group___formating = +[ + [ "fmt", "classclutchlog_1_1fmt.html", [ + [ "fmt", "classclutchlog_1_1fmt.html#a407506bc02ed3f91d88b3df630e54959", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a6cc6126d113fc0647ed3acbf29cdc425", null ], + [ "fmt", "classclutchlog_1_1fmt.html#ac69e6d3b7ddaec908c429ac61f354267", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a13453c0b5dbc19d9b510dcdc0352b443", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a65856874070ec0865b3a5b9aeb0e4f3d", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a99b3a05ddf6fa341cee6cb1e5dffc159", null ], + [ "fmt", "classclutchlog_1_1fmt.html#aeea73b0239bf73ebc8ee84c1e6d278e2", null ], + [ "print_on", "classclutchlog_1_1fmt.html#a0b607e343b6813b99eafca1fdfec9cd0", null ], + [ "operator()", "classclutchlog_1_1fmt.html#afeaedd18298498d1dcfcc15f5f17ac3c", null ], + [ "str", "classclutchlog_1_1fmt.html#ab588e04e982b0b26ec979773d51ad41b", null ], + [ "operator<<", "classclutchlog_1_1fmt.html#a96849ba427feac3a2eeaa1165e3845da", null ], + [ "fore", "classclutchlog_1_1fmt.html#a8307a848fcf9ed929435b3e1f2b53401", null ], + [ "back", "classclutchlog_1_1fmt.html#a86696b20e5b31c96ba592926efb324f3", null ], + [ "style", "classclutchlog_1_1fmt.html#a2bb0fde65fcd264393e102314dd1610b", null ], + [ "fg", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0", [ + [ "black", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a1ffd9e753c8054cc61456ac7fac1ac89", null ], + [ "red", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0abda9643ac6601722a28f238714274da4", null ], + [ "green", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a9f27410725ab8cc8854a2769c7a516b8", null ], + [ "yellow", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0ad487dd0b55dfcacdd920ccbdaeafa351", null ], + [ "blue", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a48d6215903dff56238e52e8891380c8f", null ], + [ "magenta", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a4c2a4a7078da0ac6733464eacfd00f86", null ], + [ "cyan", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a6411532ba4971f378391776a9db629d3", null ], + [ "white", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0ad508fe45cecaf653904a0e774084bb5c", null ], + [ "none", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a334c4a4c42fdb79d7ebc3e73b517e6f8", null ] + ] ], + [ "bg", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1e", [ + [ "black", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea1ffd9e753c8054cc61456ac7fac1ac89", null ], + [ "red", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1eabda9643ac6601722a28f238714274da4", null ], + [ "green", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea9f27410725ab8cc8854a2769c7a516b8", null ], + [ "yellow", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ead487dd0b55dfcacdd920ccbdaeafa351", null ], + [ "blue", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea48d6215903dff56238e52e8891380c8f", null ], + [ "magenta", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea4c2a4a7078da0ac6733464eacfd00f86", null ], + [ "cyan", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea6411532ba4971f378391776a9db629d3", null ], + [ "white", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ead508fe45cecaf653904a0e774084bb5c", null ], + [ "none", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea334c4a4c42fdb79d7ebc3e73b517e6f8", null ] + ] ], + [ "typo", "classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89", [ + [ "reset", "classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a86266ee937d97f812a8e57d22b62ee29", null ], + [ "bold", "classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a69dcab4a73aeec2113f69b61e6263da8", null ], + [ "underline", "classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a6dc7b4483f8c2c701a48e42db552806d", null ], + [ "inverse", "classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89aa91c78e040f7b9d158f381e197f8beb4", null ], + [ "none", "classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a334c4a4c42fdb79d7ebc3e73b517e6f8", null ] + ] ] + ] ] +]; \ No newline at end of file diff --git a/docs/group___main.html b/docs/group___main.html new file mode 100644 index 0000000..c6574aa --- /dev/null +++ b/docs/group___main.html @@ -0,0 +1,112 @@ + + + + + + + +clutchlog: Main class + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Main class
+
+
+

Detailed Description

+ + + + + +

+Classes

class  clutchlog
 The single class which holds everything. More...
 
+
+
+ + + + diff --git a/docs/group___main.js b/docs/group___main.js new file mode 100644 index 0000000..5ecdc8f --- /dev/null +++ b/docs/group___main.js @@ -0,0 +1,72 @@ +var group___main = +[ + [ "clutchlog", "classclutchlog.html", [ + [ "System-dependent stack depth", "index.html#autotoc_md21", null ], + [ "System-dependent horizontal fill", "index.html#autotoc_md22", null ], + [ "Dependencies", "index.html#autotoc_md23", null ], + [ "Variable names within the CLUTCHLOG macro", "index.html#autotoc_md24", null ], + [ "Features", "index.html#autotoc_md25", null ], + [ "scope_t", "structclutchlog_1_1scope__t.html", [ + [ "scope_t", "structclutchlog_1_1scope__t.html#a0f1d865ffcf17f215e5559cdd2690572", null ], + [ "matches", "structclutchlog_1_1scope__t.html#ae6c0e4ed20db797124ed1e5faa033ad9", null ], + [ "stage", "structclutchlog_1_1scope__t.html#adcca6846ff90d436c61861db85917744", null ], + [ "there", "structclutchlog_1_1scope__t.html#a7918e55cd3bac1bd30c69b8c711387ff", null ] + ] ], + [ "clutchlog", "classclutchlog.html#a0906d74275cedcd403da94879764815e", null ], + [ "clutchlog", "classclutchlog.html#a03b145e36f15435a640bb5a885d9f642", null ], + [ "logger", "classclutchlog.html#acfaceb77da01503b432644a3efaee4fa", null ], + [ "operator=", "classclutchlog.html#aef653a9744a72a889ca8163269bb781e", null ], + [ "format", "classclutchlog.html#a656c277e074b64728cca871f2b484d1c", null ], + [ "format", "classclutchlog.html#afc53dbca51d0e2322a21899d0c571a80", null ], + [ "format_comment", "classclutchlog.html#a2144abe4ec6f630126b6490908b5f924", null ], + [ "format_comment", "classclutchlog.html#aa8d0a569ed3623ce36c5e567ec2d1ad5", null ], + [ "out", "classclutchlog.html#a7fd7c7bd3668c537061c314a619a336d", null ], + [ "out", "classclutchlog.html#a6c6ab42a1df147e6c2d115bc36ec8266", null ], + [ "threshold", "classclutchlog.html#a3cb0e4f43a4cadf1966001ad7c9861f4", null ], + [ "threshold", "classclutchlog.html#a7a7738eaad114bfa870121412fe23ad9", null ], + [ "threshold", "classclutchlog.html#ab45287cc9c14217904a13aff49573732", null ], + [ "levels", "classclutchlog.html#aff3aa09fb60f7d6dc688c028d3834d8a", null ], + [ "level_of", "classclutchlog.html#acebed8c9df9204f22bf8488e62e1cedd", null ], + [ "file", "classclutchlog.html#a10064493c22f5c03b502a42d814c5c5c", null ], + [ "func", "classclutchlog.html#ad32b5a0274dc03ee0004f67ba58b2447", null ], + [ "line", "classclutchlog.html#aa26c6b81ebaeb9e9daa3457e3a3d17c9", null ], + [ "location", "classclutchlog.html#a6666106b9e5c239b6ae5e0d1091648e3", null ], + [ "style", "classclutchlog.html#ac3ec55057b9c734b66f169bf43dbd591", null ], + [ "style", "classclutchlog.html#ad1cfa9945c3f7f98fe8ce724c627d0d6", null ], + [ "style", "classclutchlog.html#a4831f44fd5ade102e57320632095934d", null ], + [ "locate", "classclutchlog.html#a4ebdfcded6c56262676bf6926d63fc96", null ], + [ "replace", "classclutchlog.html#a972f895c70edc335f3018a2c8971d59e", null ], + [ "replace", "classclutchlog.html#ae90d5a1a428587ad67b38b2ea4ca9fa2", null ], + [ "format", "classclutchlog.html#abd692cca9a2e772e7c9d6531bb3c7761", null ], + [ "log", "classclutchlog.html#a23dbb98f0d3c5cc21c232cde16cf317a", null ], + [ "dump", "classclutchlog.html#a63308e8deae3cfec6801318203494143", null ], + [ "default_format", "classclutchlog.html#a0c4ac57601e6f8d146fd5cc060968ecc", null ], + [ "dump_default_format", "classclutchlog.html#ace879554298e6e6e36dafef330c27be8", null ], + [ "dump_default_sep", "classclutchlog.html#af898bffe23b125245e338d7495c76d45", null ], + [ "default_depth_mark", "classclutchlog.html#a229fd61519f1245282440120f2d45fb5", null ], + [ "default_strip_calls", "classclutchlog.html#a1a8cb6411726133208f5a2f2cb42d468", null ], + [ "default_hfill_char", "classclutchlog.html#a76eb34537b634aadb75e255f7887eeb6", null ], + [ "default_hfill_max", "classclutchlog.html#ac95630bfe9cf547d2b7c4b3430eaedc1", null ], + [ "_strip_calls", "classclutchlog.html#a356df86455409193792b6ed550dfd09e", null ], + [ "_level_word", "classclutchlog.html#ab1c377a376e6772fe1746ff7147c125f", null ], + [ "_word_level", "classclutchlog.html#abd4625bf211bfbaa30d9c126fa3d7888", null ], + [ "_level_fmt", "classclutchlog.html#ab805ac5c33885459f9f752518a4aa735", null ], + [ "_format_log", "classclutchlog.html#a7c6e3fc082bc6f55d50131ed2b32e81e", null ], + [ "_format_dump", "classclutchlog.html#a5f4ddb57ce42e8be86a7c7d269f7bae5", null ], + [ "_out", "classclutchlog.html#a1896f6c4b8597e3e76ff93970bd85167", null ], + [ "_stage", "classclutchlog.html#aeb60684c89bcef5aa9273075c21cc993", null ], + [ "_in_file", "classclutchlog.html#aded03528f34d9000f618419c482c5042", null ], + [ "_in_func", "classclutchlog.html#a130c4f12eacbd2028102838fe16b734e", null ], + [ "_in_line", "classclutchlog.html#a41757198b29862832a14472a9e5e24c6", null ], + [ "level", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928", [ + [ "critical", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928af332f31a368c931f79b9b64d55fc7701", null ], + [ "error", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928a023c3e8a55ddfd140d3e3268dd6221e9", null ], + [ "warning", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928aab4ce1a501f9cbe27666659d3b19534c", null ], + [ "progress", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928a6efd7b28f876c0473c6dfeae82fc8e05", null ], + [ "note", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928af89a12aab2a73ea31e19b04ecadbdc0d", null ], + [ "info", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928aa1ea607f2bfe5db06f1cf2bd991f7dc1", null ], + [ "debug", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928a911f5ef324f37061f68a239577e0d0bd", null ], + [ "xdebug", "classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928abba74b810831c7753777e6dcc0c0f4e2", null ] + ] ] + ] ] +]; \ No newline at end of file diff --git a/docs/group___use_macros.html b/docs/group___use_macros.html new file mode 100644 index 0000000..36a05ac --- /dev/null +++ b/docs/group___use_macros.html @@ -0,0 +1,293 @@ + + + + + + + +clutchlog: High-level API macros + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
clutchlog +  0.11.1 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
High-level API macros
+
+
+

Detailed Description

+ + + + + + + + + + + + + + + + + +

+Macros

+#define CLUTCHLOC   __FILE__, __FUNCTION__, __LINE__
 Handy shortcuts to location.
 
#define CLUTCHLOG(LEVEL, WHAT)
 Log a message at the given level. More...
 
#define CLUTCHDUMP(LEVEL, CONTAINER, FILENAME)
 Dump the given container. More...
 
#define CLUTCHFUNC(LEVEL, FUNC, ...)
 Call any function if the scope matches. More...
 
#define CLUTCHCODE(LEVEL, ...)
 Run any code if the scope matches. More...
 
+

Macro Definition Documentation

+ +

◆ CLUTCHLOG

+ +
+
+ + + + + + + + + + + + + + + + + + +
#define CLUTCHLOG( LEVEL,
 WHAT 
)
+
+Value:
do { \
+
auto& clutchlog__logger = clutchlog::logger(); \
+
std::ostringstream clutchlog__msg ; clutchlog__msg << WHAT; \
+
clutchlog__logger.log(clutchlog::level::LEVEL, clutchlog__msg.str(), CLUTCHLOC); \
+
} while(0)
+
+

Log a message at the given level.

+ +

Definition at line 81 of file clutchlog.h.

+ +
+
+ +

◆ CLUTCHDUMP

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
#define CLUTCHDUMP( LEVEL,
 CONTAINER,
 FILENAME 
)
+
+Value:
do { \
+
auto& clutchlog__logger = clutchlog::logger(); \
+
clutchlog__logger.dump(clutchlog::level::LEVEL, std::begin(CONTAINER), std::end(CONTAINER), \
+ +
} while(0)
+
+

Dump the given container.

+ +

Definition at line 98 of file clutchlog.h.

+ +
+
+ +

◆ CLUTCHFUNC

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
#define CLUTCHFUNC( LEVEL,
 FUNC,
 ... 
)
+
+Value:
do { \
+
auto& clutchlog__logger = clutchlog::logger(); \
+
clutchlog::scope_t clutchlog__scope = clutchlog__logger.locate(clutchlog::level::LEVEL, CLUTCHLOC); \
+
if(clutchlog__scope.matches) { \
+
FUNC(__VA_ARGS__); \
+
} \
+
} while(0)
+
+

Call any function if the scope matches.

+ +

Definition at line 115 of file clutchlog.h.

+ +
+
+ +

◆ CLUTCHCODE

+ +
+
+ + + + + + + + + + + + + + + + + + +
#define CLUTCHCODE( LEVEL,
 ... 
)
+
+Value:
do { \
+
auto& clutchlog__logger = clutchlog::logger(); \
+
clutchlog::scope_t clutchlog__scope = clutchlog__logger.locate(clutchlog::level::LEVEL, CLUTCHLOC); \
+
if(clutchlog__scope.matches) { \
+
__VA_ARGS__ \
+
} \
+
} while(0)
+
+

Run any code if the scope matches.

+ +

Definition at line 136 of file clutchlog.h.

+ +
+
+
+
+
static clutchlog & logger()
Get the logger instance.
Definition: clutchlog.h:291
+
#define CLUTCHLOC
Handy shortcuts to location.
Definition: clutchlog.h:77
+
#define CLUTCHDUMP_DEFAULT_SEP
Compile-time default item separator for dump.
Definition: clutchlog.h:239
+ + + + diff --git a/docs/group___use_macros.js b/docs/group___use_macros.js new file mode 100644 index 0000000..8015e49 --- /dev/null +++ b/docs/group___use_macros.js @@ -0,0 +1,8 @@ +var group___use_macros = +[ + [ "CLUTCHLOC", "group___use_macros.html#gae8911119d726a43b77f5781cb5a72813", null ], + [ "CLUTCHLOG", "group___use_macros.html#ga6f86187e2b35e7e1907d688f504a197d", null ], + [ "CLUTCHDUMP", "group___use_macros.html#ga572e3aa19d8b39e3ed0b9e91961104c2", null ], + [ "CLUTCHFUNC", "group___use_macros.html#ga9f77cee4f853e582262930c9c17f90ae", null ], + [ "CLUTCHCODE", "group___use_macros.html#gaaf2e85e1153e6c88b458dd49e3c37c73", null ] +]; \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index e028905..3115d87 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,10 +9,15 @@ + + + + +
@@ -20,6 +25,7 @@ +
clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
+
+ +
+
+
+ +

Clutchlog is a logging system that targets versatile debugging. It allows to (de)clutch messages for a given: log level, source code location or call stack depth.

@@ -114,7 +149,7 @@ Features

Example

-

Adding a message is a simple as calling a macro (which is declutched in Debug build type, when NDEBUG is not defined):

CLUTCHLOG(info, "matrix size: " << m << "x" << n);
+

Adding a message is a simple as calling a macro (which is declutched in Debug build type, when NDEBUG is not defined):

CLUTCHLOG(info, "matrix size: " << m << "x" << n);

To configure the display, you indicate the three types of locations, for example in your main function:

auto& log = clutchlog::logger();
log.depth(2); // Log functions called from "main" but not below.
log.threshold("Info"); // Log only "info", "warning", "error" or "critical" messages.
@@ -132,17 +167,17 @@ Basic Usage

Calls

The main entrypoint is the CLUTCHLOG macro, which takes the desired log level and message. The message can be anything that can be output in an ostringstream.

// Simple string:
-
CLUTCHLOG(info, "hello world");
+
CLUTCHLOG(info, "hello world");
// Serialisable variable:
double value = 0;
-
CLUTCHLOG(error, value);
+
CLUTCHLOG(error, value);
// passed using inline output stream operators:
-
CLUTCHLOG(debug, "hello " << value << " world");
+
CLUTCHLOG(debug, "hello " << value << " world");

There is also a macro to dump the content of an iterable within a separate file: CLUTCHDUMP. This function takes care of incrementing a numeric suffix in the file name, if an existing file with this name exists.

std::vector<int> v(10);
std::generate(v.begin(), v.end(), std::rand);
-
CLUTCHDUMP(debug, vec, "test_{n}.dat");
+
CLUTCHDUMP(debug, vec, "test_{n}.dat");
/* Will output in cat "rand_0.dat"
* # [t-dump] Info in main (at depth 5) @ /home/nojhan/code/clutchlog/tests/t-dump.cpp:22
* 1804289383
@@ -196,10 +231,11 @@ Output Configuration
  • {depth_marks}: as many chevrons > as there is calls in the stack,
  • {hfill}: Inserts a sequence of characters that will stretch to fill the space available in the current terminal, between the rightmost and leftmost part of the log message.
  • -

    Log Format

    +

    +Log Format

    The default log format is "[{name}] {level_letter}:{depth_marks} {msg} {hfill} {func} @ {file}:{line}\n", it can be overriden at compile time by defining the CLUTCHLOG_DEFAULT_FORMAT macro.

    By default, and if CLUTCHLOG_DEFAULT_FORMAT is not defined, clutchlog will not put the location-related tags in the message formats (i.e. {name}, {func}, and {line}) when not in Debug builds.

    -

    +

    Output style

    Output lines can be colored differently depending on the log level.

    // Print error messages in bold red:
    log.style(clutchlog::level::error, // First, the log level.
    @@ -248,22 +284,25 @@ Output style

    Note: messages at the "critical", "error" and "warning" log levels are colored by default. You may want to set their style to none if you want to stay in control of inserted colors in the format template.

    The horizontal filling line (the {hfill} tag) can be configured separately with clutchlog::hfill_style, for example:

    log.hfill_style(clutchlog::fmt::fg::black);

    Note: this will actually reset any styling after the hfill, disabling any style you would have set for the whole message using clutchlog::format for the remaining of the message.

    -

    +

    Advanced Usage

    -

    +

    More Output Configuration

    -

    Dump Format

    +

    +Dump Format

    The default format of the first line of comment added with the dump macro is "# [{name}] {level} in {func} (at depth {depth}) @ {file}:{line}". It can be edited with the format_comment method. If it is set to an empty string, then no comment line is added. The default can be modified at compile time with CLUTCHDUMP_DEFAULT_FORMAT.

    By default, the separator between items in the container is a new line. To change this behaviour, you can change CLUTCHDUMP_DEFAULT_SEP or call the low-level dump method.

    By default, and if CLUTCHDUMP_DEFAULT_FORMAT is not defined, clutchlog will not put the location-related tags in the message formats (i.e. {file} and {line}) when not in Debug builds.

    -

    Marks

    -

    The mark used with the {depth_marks} tag can be configured with the clutchlog::depth_mark method, and its default with the CLUTCHLOG_DEFAULT_DEPTH_MARK macro:

    log.depth_mark(CLUTCHLOG_DEFAULT_DEPTH_MARK); // Defaults to ">".
    +

    +Marks

    +

    The mark used with the {depth_marks} tag can be configured with the clutchlog::depth_mark method, and its default with the CLUTCHLOG_DEFAULT_DEPTH_MARK macro:

    log.depth_mark(CLUTCHLOG_DEFAULT_DEPTH_MARK); // Defaults to ">".

    The character used with the {hfill} tag can be configured wth the clutchlog::hfill_mark method, and its default with the CLUTCHLOG_DEFAULT_HFILL_MARK macro:

    log.hfill_mark(CLUTCHLOG_DEFAULT_HFILL_MARK); // Defaults to '.'.

    Clutchlog measures the width of the standard error channel. If it is redirected, it may be measured as very large. Thus, the clutchlog::hfill_max accessors allow to set a maximum width (in number of characters).

    log.hfill_max(CLUTCHLOG_DEFAULT_HFILL_MAX); // Defaults to 300.

    Note: clutchlog will select the minimum between clutchlog::hfill_max and the measured number of columns in the terminal, so that you may use clutchlog::hfill_max as a way to constraint the output width in any cases.

    -

    Stack Depth

    -

    By default, clutchlog removes 5 levels of the calls stack, so that your main entrypoint corresponds to a depth of zero. You can change this behaviour by defining the CLUTCHLOG_STRIP_CALLS macro, or calling clutchlog::strip_calls.

    log.strip_calls(CLUTCHLOG_STRIP_CALLS); // Defaults to 5.
    -

    +

    +Stack Depth

    +

    By default, clutchlog removes 5 levels of the calls stack, so that your main entrypoint corresponds to a depth of zero. You can change this behaviour by defining the CLUTCHLOG_STRIP_CALLS macro, or calling clutchlog::strip_calls.

    log.strip_calls(CLUTCHLOG_STRIP_CALLS); // Defaults to 5.
    +

    Disabled calls

    By default, clutchlog is always enabled if the NDEBUG preprocessor variable is not defined (this variable is set by CMake in build types that differs from Debug).

    You can however force clutchlog to be enabled in any build type by setting the WITH_CLUTCHLOG preprocessor variable.

    @@ -272,26 +311,26 @@ Disabled calls
    #define CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG clutchlog::level::xdebug

    Note that allowing a log level does not mean that it will actually output something. If the configured log level at runtime is lower than the log level of the message, it will still not be printed.

    This behavior intend to remove as many conditional statements as possible when not debugging, without having to use preprocessor guards around calls to clutchlog, thus saving run time at no readability cost.

    -

    +

    Low-level API

    All configuration setters have a getters counterpart, with the same name but taking no parameter, for example:

    std::string mark = log.depth_mark();

    To control more precisely the logging, one can use the low-level clutchlog::log method:

    log.log(clutchlog::level::xdebug, "hello world", "main.cpp", "main", 122);
    -

    A helper macro can helps to fill in the location with the actual one, as seen by the compiler:

    log.log(clutchlog::level::xdebug, "hello world", CLUTCHLOC);
    -

    A similar dump method exists:

    log.dump(clutchlog::level::xdebug, cont.begin(), cont.end(), CLUTCHLOC, "dumped_{n}.dat", "\n");
    +

    A helper macro can helps to fill in the location with the actual one, as seen by the compiler:

    log.log(clutchlog::level::xdebug, "hello world", CLUTCHLOC);
    +

    A similar dump method exists:

    log.dump(clutchlog::level::xdebug, cont.begin(), cont.end(), CLUTCHLOC, "dumped_{n}.dat", "\n");
    log.dump(clutchlog::level::xdebug, cont.begin(), cont.end(), "main.cpp", "main", 122, "dumped.dat", "\n\n");

    You can access the identifier of log levels with clutchlog::level_of:

    log.threshold( log.level_of("XDebug") ); // You have to know the exact string.
    -

    +

    (De)clutch any function call

    The CLUTHFUNC macro allows to wrap any function within the current logger.

    For instance, this can be useful if you want to (de)clutch calls to asserts. To do that, just declare your own macro:

    #define ASSERT(...) { CLUTCHFUNC(error, assert, __VA_ARGS__) }

    Thus, any call like ASSERT(x > 3); will be declutchable with the same configuration than a call to CLUTCHLOG.

    -

    +

    (De)clutch any code section

    The CLUTCHCODE macro allows to wrap any code within the current logger.

    -

    For instance:

    +

    For instance:

    std::clog << "We are clutched!\n";
    );
    -

    +

    Examples

    Here what you would do to setup clutchlog with the default configuration:

    auto& log = clutchlog::logger();
    log.out(std::clog);
    @@ -319,43 +358,48 @@ Examples
    log.hfill_max(300);
    log.hfill_style(clutchlog::fmt::fg::none);

    And here are all the functions you may call to log something:

    // Basic message.
    -
    CLUTCHLOG(debug, "x = " << x);
    +
    CLUTCHLOG(debug, "x = " << x);
    // Any code section.
    -
    CLUTCHCODE(xdebug,
    +
    CLUTCHCODE(xdebug,
    if(x < 0) std::cerr << "WTF?" << std::endl;
    );
    // Container to a file.
    -
    CLUTCHDUMP(note, my_vector, "my_vector.dat");
    +
    CLUTCHDUMP(note, my_vector, "my_vector.dat");
    // Container to a numbered file.
    -
    CLUTCHDUMP(note, my_list, "my_list_{n}.dat");
    +
    CLUTCHDUMP(note, my_list, "my_list_{n}.dat");
    // Function call.
    -
    CLUTCHFUNC(warning, my_check, x, y); // Calls: my_check(x,y);
    +
    CLUTCHFUNC(warning, my_check, x, y); // Calls: my_check(x,y);
    // Declutchable asserts.
    #define ASSERT(...) { CLUTCHFUNC(critical, assert, __VA_ARGS__) }
    ASSERT(x>0);
    -

    +

    Limitations

    -

    System-dependent stack depth

    +

    +System-dependent stack depth

    Because access to the call stack depth and program name are system-dependent, the features relying on the depth of the call stack and the display of the program name are only available for operating systems having the following headers: execinfo.h, stdlib.h and libgen.h (so far, tested with Linux).

    Clutchlog sets the CLUTCHLOG_HAVE_UNIX_SYSINFO to 1 if the headers are available, and to 0 if they are not. You can make portable code using something like:

    #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
    log.depth( x );
    #endif
    -

    System-dependent horizontal fill

    +

    +System-dependent horizontal fill

    Because access to the current terminal width is system-dependent, the {hfill} format tag feature is only available for operating systems having the following headers: sys/ioctl.h, stdio.h and unistd.h (so far, tested with Linux).

    Clutchlog sets the CLUTCHLOG_HAVE_UNIX_SYSIOCTL to 1 if the headers are available, and to 0 if they are not. You can make portable code using something like:

    #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
    log.hfill_mark( '_' );
    #endif
    -

    Dependencies

    +

    +Dependencies

    Some colors/styles may not be supported by some exotic terminal emulators.

    Clutchlog needs C++-17 with the filesystem feature. You may need to indicate -std=c++17 -lstdc++fs to some compilers.

    -

    Variable names within the CLUTCHLOG macro

    +

    +Variable names within the CLUTCHLOG macro

    Calling the CLUTCHLOG macro with a message using a variable named clutchlog__msg will end in an error.

    -

    Features

    +

    +Features

    What Clutchlog do not provide at the moment (but may in a near future):

    • Super fast log writing.
    • @@ -370,7 +414,7 @@ Limitations
    • Automatic argument parser (please, use a dedicated lib).
    • Signal handling (WTF would you do that, anyway?).
    -

    +

    Build and tests

    To use clutchlog, just include its header in your code and either ensure that the NDEBUG preprocessor variable is not set, either define the WITH_CLUTCHLOG preprocessor variable.

    If you're using CMake (or another modern build system), it will unset NDEBUG —and thus enable clutchlog— only for the "Debug" build type, which is usually what you want if you use clutchlog, anyway.

    @@ -382,21 +426,24 @@ Build and tests

    There's a script that tests all the build types combinations: ./build_all.sh.

    -
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81
    + +
    #define CLUTCHLOG_DEFAULT_DEPTH_MARK
    Compile-time default mark for stack depth.
    Definition: clutchlog.h:246
    enum clutchlog::fmt::typo style
    Typographic style.
    -
    #define CLUTCHLOC
    Handy shortcuts to location.
    Definition: clutchlog.h:77
    -
    #define CLUTCHCODE(LEVEL,...)
    Run any code if the scope matches.
    Definition: clutchlog.h:136
    -
    #define CLUTCHLOG_DEFAULT_DEPTH_MARK
    Compile-time default mark for stack depth.
    Definition: clutchlog.h:246
    -
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:291
    -
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:309
    -
    #define CLUTCHLOG_STRIP_CALLS
    Compile-time number of call stack levels to remove from depth display by default.
    Definition: clutchlog.h:253
    -
    #define CLUTCHDUMP(LEVEL, CONTAINER, FILENAME)
    Dump the given container.
    Definition: clutchlog.h:98
    -
    #define CLUTCHFUNC(LEVEL, FUNC,...)
    Call any function if the scope matches.
    Definition: clutchlog.h:115
    +
    #define CLUTCHDUMP(LEVEL, CONTAINER, FILENAME)
    Dump the given container.
    Definition: clutchlog.h:98
    +
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:291
    +
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:309
    +
    #define CLUTCHLOC
    Handy shortcuts to location.
    Definition: clutchlog.h:77
    +
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81
    +
    #define CLUTCHFUNC(LEVEL, FUNC,...)
    Call any function if the scope matches.
    Definition: clutchlog.h:115
    +
    #define CLUTCHLOG_STRIP_CALLS
    Compile-time number of call stack levels to remove from depth display by default.
    Definition: clutchlog.h:253
    +
    #define CLUTCHCODE(LEVEL,...)
    Run any code if the scope matches.
    Definition: clutchlog.h:136
    - + diff --git a/docs/modules.html b/docs/modules.html index a18d80f..3d820c1 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -9,10 +9,15 @@ + + + + +
    @@ -20,6 +25,7 @@ +
    clutchlog  0.11.1 @@ -47,6 +53,22 @@ $(function() { /* @license-end */
    +
    + +
    +
    +
    + + - + diff --git a/docs/modules.js b/docs/modules.js new file mode 100644 index 0000000..8e76bc3 --- /dev/null +++ b/docs/modules.js @@ -0,0 +1,7 @@ +var modules = +[ + [ "Default configuration management", "group___default_config.html", "group___default_config" ], + [ "High-level API macros", "group___use_macros.html", "group___use_macros" ], + [ "Main class", "group___main.html", "group___main" ], + [ "Formating tools", "group___formating.html", "group___formating" ] +]; \ No newline at end of file diff --git a/docs/navtree.css b/docs/navtree.css new file mode 100644 index 0000000..33341a6 --- /dev/null +++ b/docs/navtree.css @@ -0,0 +1,146 @@ +#nav-tree .children_ul { + margin:0; + padding:4px; +} + +#nav-tree ul { + list-style:none outside none; + margin:0px; + padding:0px; +} + +#nav-tree li { + white-space:nowrap; + margin:0px; + padding:0px; +} + +#nav-tree .plus { + margin:0px; +} + +#nav-tree .selected { + background-image: url('tab_a.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +} + +#nav-tree img { + margin:0px; + padding:0px; + border:0px; + vertical-align: middle; +} + +#nav-tree a { + text-decoration:none; + padding:0px; + margin:0px; + outline:none; +} + +#nav-tree .label { + margin:0px; + padding:0px; + font: 12px 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; +} + +#nav-tree .label a { + padding:2px; +} + +#nav-tree .selected a { + text-decoration:none; + color:#fff; +} + +#nav-tree .children_ul { + margin:0px; + padding:0px; +} + +#nav-tree .item { + margin:0px; + padding:0px; +} + +#nav-tree { + padding: 0px 0px; + background-color: #FAFAFF; + font-size:14px; + overflow:auto; +} + +#doc-content { + overflow:auto; + display:block; + padding:0px; + margin:0px; + -webkit-overflow-scrolling : touch; /* iOS 5+ */ +} + +#side-nav { + padding:0 6px 0 0; + margin: 0px; + display:block; + position: absolute; + left: 0px; + width: 250px; +} + +.ui-resizable .ui-resizable-handle { + display:block; +} + +.ui-resizable-e { + background-image:url("splitbar.png"); + background-size:100%; + background-repeat:repeat-y; + background-attachment: scroll; + cursor:ew-resize; + height:100%; + right:0; + top:0; + width:6px; +} + +.ui-resizable-handle { + display:none; + font-size:0.1px; + position:absolute; + z-index:1; +} + +#nav-tree-contents { + margin: 6px 0px 0px 0px; +} + +#nav-tree { + background-image:url('nav_h.png'); + background-repeat:repeat-x; + background-color: #F9FAFC; + -webkit-overflow-scrolling : touch; /* iOS 5+ */ +} + +#nav-sync { + position:absolute; + top:5px; + right:24px; + z-index:0; +} + +#nav-sync img { + opacity:0.3; +} + +#nav-sync img:hover { + opacity:0.9; +} + +@media print +{ + #nav-tree { display: none; } + div.ui-resizable-handle { display: none; position: relative; } +} + diff --git a/docs/navtree.js b/docs/navtree.js new file mode 100644 index 0000000..edc31ef --- /dev/null +++ b/docs/navtree.js @@ -0,0 +1,544 @@ +/* + @licstart The following is the entire license notice for the + JavaScript code in this file. + + Copyright (C) 1997-2019 by Dimitri van Heesch + + This program is free software; you can redistribute it and/or modify + it under the terms of version 2 of the GNU General Public License as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + @licend The above is the entire license notice + for the JavaScript code in this file + */ +var navTreeSubIndices = new Array(); +var arrowDown = '▼'; +var arrowRight = '►'; + +function getData(varName) +{ + var i = varName.lastIndexOf('/'); + var n = i>=0 ? varName.substring(i+1) : varName; + return eval(n.replace(/\-/g,'_')); +} + +function stripPath(uri) +{ + return uri.substring(uri.lastIndexOf('/')+1); +} + +function stripPath2(uri) +{ + var i = uri.lastIndexOf('/'); + var s = uri.substring(i+1); + var m = uri.substring(0,i+1).match(/\/d\w\/d\w\w\/$/); + return m ? uri.substring(i-6) : s; +} + +function hashValue() +{ + return $(location).attr('hash').substring(1).replace(/[^\w\-]/g,''); +} + +function hashUrl() +{ + return '#'+hashValue(); +} + +function pathName() +{ + return $(location).attr('pathname').replace(/[^-A-Za-z0-9+&@#/%?=~_|!:,.;\(\)]/g, ''); +} + +function localStorageSupported() +{ + try { + return 'localStorage' in window && window['localStorage'] !== null && window.localStorage.getItem; + } + catch(e) { + return false; + } +} + +function storeLink(link) +{ + if (!$("#nav-sync").hasClass('sync') && localStorageSupported()) { + window.localStorage.setItem('navpath',link); + } +} + +function deleteLink() +{ + if (localStorageSupported()) { + window.localStorage.setItem('navpath',''); + } +} + +function cachedLink() +{ + if (localStorageSupported()) { + return window.localStorage.getItem('navpath'); + } else { + return ''; + } +} + +function getScript(scriptName,func,show) +{ + var head = document.getElementsByTagName("head")[0]; + var script = document.createElement('script'); + script.id = scriptName; + script.type = 'text/javascript'; + script.onload = func; + script.src = scriptName+'.js'; + head.appendChild(script); +} + +function createIndent(o,domNode,node,level) +{ + var level=-1; + var n = node; + while (n.parentNode) { level++; n=n.parentNode; } + if (node.childrenData) { + var imgNode = document.createElement("span"); + imgNode.className = 'arrow'; + imgNode.style.paddingLeft=(16*level).toString()+'px'; + imgNode.innerHTML=arrowRight; + node.plus_img = imgNode; + node.expandToggle = document.createElement("a"); + node.expandToggle.href = "javascript:void(0)"; + node.expandToggle.onclick = function() { + if (node.expanded) { + $(node.getChildrenUL()).slideUp("fast"); + node.plus_img.innerHTML=arrowRight; + node.expanded = false; + } else { + expandNode(o, node, false, false); + } + } + node.expandToggle.appendChild(imgNode); + domNode.appendChild(node.expandToggle); + } else { + var span = document.createElement("span"); + span.className = 'arrow'; + span.style.width = 16*(level+1)+'px'; + span.innerHTML = ' '; + domNode.appendChild(span); + } +} + +var animationInProgress = false; + +function gotoAnchor(anchor,aname,updateLocation) +{ + var pos, docContent = $('#doc-content'); + var ancParent = $(anchor.parent()); + if (ancParent.hasClass('memItemLeft') || + ancParent.hasClass('memtitle') || + ancParent.hasClass('fieldname') || + ancParent.hasClass('fieldtype') || + ancParent.is(':header')) + { + pos = ancParent.position().top; + } else if (anchor.position()) { + pos = anchor.position().top; + } + if (pos) { + var dist = Math.abs(Math.min( + pos-docContent.offset().top, + docContent[0].scrollHeight- + docContent.height()-docContent.scrollTop())); + animationInProgress=true; + docContent.animate({ + scrollTop: pos + docContent.scrollTop() - docContent.offset().top + },Math.max(50,Math.min(500,dist)),function(){ + if (updateLocation) window.location.href=aname; + animationInProgress=false; + }); + } +} + +function newNode(o, po, text, link, childrenData, lastNode) +{ + var node = new Object(); + node.children = Array(); + node.childrenData = childrenData; + node.depth = po.depth + 1; + node.relpath = po.relpath; + node.isLast = lastNode; + + node.li = document.createElement("li"); + po.getChildrenUL().appendChild(node.li); + node.parentNode = po; + + node.itemDiv = document.createElement("div"); + node.itemDiv.className = "item"; + + node.labelSpan = document.createElement("span"); + node.labelSpan.className = "label"; + + createIndent(o,node.itemDiv,node,0); + node.itemDiv.appendChild(node.labelSpan); + node.li.appendChild(node.itemDiv); + + var a = document.createElement("a"); + node.labelSpan.appendChild(a); + node.label = document.createTextNode(text); + node.expanded = false; + a.appendChild(node.label); + if (link) { + var url; + if (link.substring(0,1)=='^') { + url = link.substring(1); + link = url; + } else { + url = node.relpath+link; + } + a.className = stripPath(link.replace('#',':')); + if (link.indexOf('#')!=-1) { + var aname = '#'+link.split('#')[1]; + var srcPage = stripPath(pathName()); + var targetPage = stripPath(link.split('#')[0]); + a.href = srcPage!=targetPage ? url : "javascript:void(0)"; + a.onclick = function(){ + storeLink(link); + if (!$(a).parent().parent().hasClass('selected')) + { + $('.item').removeClass('selected'); + $('.item').removeAttr('id'); + $(a).parent().parent().addClass('selected'); + $(a).parent().parent().attr('id','selected'); + } + var anchor = $(aname); + gotoAnchor(anchor,aname,true); + }; + } else { + a.href = url; + a.onclick = function() { storeLink(link); } + } + } else { + if (childrenData != null) + { + a.className = "nolink"; + a.href = "javascript:void(0)"; + a.onclick = node.expandToggle.onclick; + } + } + + node.childrenUL = null; + node.getChildrenUL = function() { + if (!node.childrenUL) { + node.childrenUL = document.createElement("ul"); + node.childrenUL.className = "children_ul"; + node.childrenUL.style.display = "none"; + node.li.appendChild(node.childrenUL); + } + return node.childrenUL; + }; + + return node; +} + +function showRoot() +{ + var headerHeight = $("#top").height(); + var footerHeight = $("#nav-path").height(); + var windowHeight = $(window).height() - headerHeight - footerHeight; + (function (){ // retry until we can scroll to the selected item + try { + var navtree=$('#nav-tree'); + navtree.scrollTo('#selected',100,{offset:-windowHeight/2}); + } catch (err) { + setTimeout(arguments.callee, 0); + } + })(); +} + +function expandNode(o, node, imm, showRoot) +{ + if (node.childrenData && !node.expanded) { + if (typeof(node.childrenData)==='string') { + var varName = node.childrenData; + getScript(node.relpath+varName,function(){ + node.childrenData = getData(varName); + expandNode(o, node, imm, showRoot); + }, showRoot); + } else { + if (!node.childrenVisited) { + getNode(o, node); + } + $(node.getChildrenUL()).slideDown("fast"); + node.plus_img.innerHTML = arrowDown; + node.expanded = true; + } + } +} + +function glowEffect(n,duration) +{ + n.addClass('glow').delay(duration).queue(function(next){ + $(this).removeClass('glow');next(); + }); +} + +function highlightAnchor() +{ + var aname = hashUrl(); + var anchor = $(aname); + if (anchor.parent().attr('class')=='memItemLeft'){ + var rows = $('.memberdecls tr[class$="'+hashValue()+'"]'); + glowEffect(rows.children(),300); // member without details + } else if (anchor.parent().attr('class')=='fieldname'){ + glowEffect(anchor.parent().parent(),1000); // enum value + } else if (anchor.parent().attr('class')=='fieldtype'){ + glowEffect(anchor.parent().parent(),1000); // struct field + } else if (anchor.parent().is(":header")) { + glowEffect(anchor.parent(),1000); // section header + } else { + glowEffect(anchor.next(),1000); // normal member + } +} + +function selectAndHighlight(hash,n) +{ + var a; + if (hash) { + var link=stripPath(pathName())+':'+hash.substring(1); + a=$('.item a[class$="'+link+'"]'); + } + if (a && a.length) { + a.parent().parent().addClass('selected'); + a.parent().parent().attr('id','selected'); + highlightAnchor(); + } else if (n) { + $(n.itemDiv).addClass('selected'); + $(n.itemDiv).attr('id','selected'); + } + if ($('#nav-tree-contents .item:first').hasClass('selected')) { + $('#nav-sync').css('top','30px'); + } else { + $('#nav-sync').css('top','5px'); + } + showRoot(); +} + +function showNode(o, node, index, hash) +{ + if (node && node.childrenData) { + if (typeof(node.childrenData)==='string') { + var varName = node.childrenData; + getScript(node.relpath+varName,function(){ + node.childrenData = getData(varName); + showNode(o,node,index,hash); + },true); + } else { + if (!node.childrenVisited) { + getNode(o, node); + } + $(node.getChildrenUL()).css({'display':'block'}); + node.plus_img.innerHTML = arrowDown; + node.expanded = true; + var n = node.children[o.breadcrumbs[index]]; + if (index+11) hash = '#'+parts[1].replace(/[^\w\-]/g,''); + else hash=''; + } + if (hash.match(/^#l\d+$/)) { + var anchor=$('a[name='+hash.substring(1)+']'); + glowEffect(anchor.parent(),1000); // line number + hash=''; // strip line number anchors + } + var url=root+hash; + var i=-1; + while (NAVTREEINDEX[i+1]<=url) i++; + if (i==-1) { i=0; root=NAVTREE[0][1]; } // fallback: show index + if (navTreeSubIndices[i]) { + gotoNode(o,i,root,hash,relpath) + } else { + getScript(relpath+'navtreeindex'+i,function(){ + navTreeSubIndices[i] = eval('NAVTREEINDEX'+i); + if (navTreeSubIndices[i]) { + gotoNode(o,i,root,hash,relpath); + } + },true); + } +} + +function showSyncOff(n,relpath) +{ + n.html(''); +} + +function showSyncOn(n,relpath) +{ + n.html(''); +} + +function toggleSyncButton(relpath) +{ + var navSync = $('#nav-sync'); + if (navSync.hasClass('sync')) { + navSync.removeClass('sync'); + showSyncOff(navSync,relpath); + storeLink(stripPath2(pathName())+hashUrl()); + } else { + navSync.addClass('sync'); + showSyncOn(navSync,relpath); + deleteLink(); + } +} + +var loadTriggered = false; +var readyTriggered = false; +var loadObject,loadToRoot,loadUrl,loadRelPath; + +$(window).on('load',function(){ + if (readyTriggered) { // ready first + navTo(loadObject,loadToRoot,loadUrl,loadRelPath); + showRoot(); + } + loadTriggered=true; +}); + +function initNavTree(toroot,relpath) +{ + var o = new Object(); + o.toroot = toroot; + o.node = new Object(); + o.node.li = document.getElementById("nav-tree-contents"); + o.node.childrenData = NAVTREE; + o.node.children = new Array(); + o.node.childrenUL = document.createElement("ul"); + o.node.getChildrenUL = function() { return o.node.childrenUL; }; + o.node.li.appendChild(o.node.childrenUL); + o.node.depth = 0; + o.node.relpath = relpath; + o.node.expanded = false; + o.node.isLast = true; + o.node.plus_img = document.createElement("span"); + o.node.plus_img.className = 'arrow'; + o.node.plus_img.innerHTML = arrowRight; + + if (localStorageSupported()) { + var navSync = $('#nav-sync'); + if (cachedLink()) { + showSyncOff(navSync,relpath); + navSync.removeClass('sync'); + } else { + showSyncOn(navSync,relpath); + } + navSync.click(function(){ toggleSyncButton(relpath); }); + } + + if (loadTriggered) { // load before ready + navTo(o,toroot,hashUrl(),relpath); + showRoot(); + } else { // ready before load + loadObject = o; + loadToRoot = toroot; + loadUrl = hashUrl(); + loadRelPath = relpath; + readyTriggered=true; + } + + $(window).bind('hashchange', function(){ + if (window.location.hash && window.location.hash.length>1){ + var a; + if ($(location).attr('hash')){ + var clslink=stripPath(pathName())+':'+hashValue(); + a=$('.item a[class$="'+clslink.replace(/=desktop_vp) { + if (!collapsed) { + collapseExpand(); + } + } else if (width>desktop_vp && collapsedWidth0) { + restoreWidth(0); + collapsed=true; + } + else { + var width = readCookie('width'); + if (width>200 && width<$(window).width()) { restoreWidth(width); } else { restoreWidth(200); } + collapsed=false; + } + } + + header = $("#top"); + sidenav = $("#side-nav"); + content = $("#doc-content"); + navtree = $("#nav-tree"); + footer = $("#nav-path"); + $(".side-nav-resizable").resizable({resize: function(e, ui) { resizeWidth(); } }); + $(sidenav).resizable({ minWidth: 0 }); + $(window).resize(function() { resizeHeight(); }); + var device = navigator.userAgent.toLowerCase(); + var touch_device = device.match(/(iphone|ipod|ipad|android)/); + if (touch_device) { /* wider split bar for touch only devices */ + $(sidenav).css({ paddingRight:'20px' }); + $('.ui-resizable-e').css({ width:'20px' }); + $('#nav-sync').css({ right:'34px' }); + barWidth=20; + } + var width = readCookie('width'); + if (width) { restoreWidth(width); } else { resizeWidth(); } + resizeHeight(); + var url = location.href; + var i=url.indexOf("#"); + if (i>=0) window.location.hash=url.substr(i); + var _preventDefault = function(evt) { evt.preventDefault(); }; + $("#splitbar").bind("dragstart", _preventDefault).bind("selectstart", _preventDefault); + $(".ui-resizable-handle").dblclick(collapseExpand); + $(window).on('load',resizeHeight); +} +/* @license-end */ diff --git a/docs/search/all_2.js b/docs/search/all_2.js index c08776c..fa48e9c 100644 --- a/docs/search/all_2.js +++ b/docs/search/all_2.js @@ -1,20 +1,20 @@ var searchData= [ - ['clutchcode_13',['CLUTCHCODE',['../group__UseMacros.html#gaaf2e85e1153e6c88b458dd49e3c37c73',1,'clutchlog.h']]], - ['clutchdump_14',['CLUTCHDUMP',['../group__UseMacros.html#ga572e3aa19d8b39e3ed0b9e91961104c2',1,'clutchlog.h']]], - ['clutchdump_5fdefault_5fformat_15',['CLUTCHDUMP_DEFAULT_FORMAT',['../group__DefaultConfig.html#ga27b613c6727857a7cbcd0165d862034e',1,'clutchlog.h']]], - ['clutchdump_5fdefault_5fsep_16',['CLUTCHDUMP_DEFAULT_SEP',['../group__DefaultConfig.html#ga54d29e956575e1c731eab5406135c5df',1,'clutchlog.h']]], - ['clutchfunc_17',['CLUTCHFUNC',['../group__UseMacros.html#ga9f77cee4f853e582262930c9c17f90ae',1,'clutchlog.h']]], - ['clutchloc_18',['CLUTCHLOC',['../group__UseMacros.html#gae8911119d726a43b77f5781cb5a72813',1,'clutchlog.h']]], - ['clutchlog_19',['clutchlog',['../classclutchlog.html',1,'clutchlog'],['../group__UseMacros.html#ga6f86187e2b35e7e1907d688f504a197d',1,'CLUTCHLOG(): clutchlog.h']]], + ['clutchcode_13',['CLUTCHCODE',['../group___use_macros.html#gaaf2e85e1153e6c88b458dd49e3c37c73',1,'clutchlog.h']]], + ['clutchdump_14',['CLUTCHDUMP',['../group___use_macros.html#ga572e3aa19d8b39e3ed0b9e91961104c2',1,'clutchlog.h']]], + ['clutchdump_5fdefault_5fformat_15',['CLUTCHDUMP_DEFAULT_FORMAT',['../group___default_config.html#ga27b613c6727857a7cbcd0165d862034e',1,'clutchlog.h']]], + ['clutchdump_5fdefault_5fsep_16',['CLUTCHDUMP_DEFAULT_SEP',['../group___default_config.html#ga54d29e956575e1c731eab5406135c5df',1,'clutchlog.h']]], + ['clutchfunc_17',['CLUTCHFUNC',['../group___use_macros.html#ga9f77cee4f853e582262930c9c17f90ae',1,'clutchlog.h']]], + ['clutchloc_18',['CLUTCHLOC',['../group___use_macros.html#gae8911119d726a43b77f5781cb5a72813',1,'clutchlog.h']]], + ['clutchlog_19',['clutchlog',['../classclutchlog.html',1,'clutchlog'],['../group___use_macros.html#ga6f86187e2b35e7e1907d688f504a197d',1,'CLUTCHLOG(): clutchlog.h']]], ['clutchlog_2eh_20',['clutchlog.h',['../clutchlog_8h.html',1,'']]], - ['clutchlog_5fdefault_5fdepth_5fbuilt_5fnodebug_21',['CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG',['../group__DefaultConfig.html#ga8564be479b948ee3052b61783c66d415',1,'clutchlog.h']]], - ['clutchlog_5fdefault_5fdepth_5fmark_22',['CLUTCHLOG_DEFAULT_DEPTH_MARK',['../group__DefaultConfig.html#ga45c4c964fad4ad1641d5c9c28c4645b9',1,'clutchlog.h']]], - ['clutchlog_5fdefault_5fformat_23',['CLUTCHLOG_DEFAULT_FORMAT',['../group__DefaultConfig.html#ga524c16f280d92ee8ab683162c9ce01fa',1,'clutchlog.h']]], + ['clutchlog_5fdefault_5fdepth_5fbuilt_5fnodebug_21',['CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG',['../group___default_config.html#ga8564be479b948ee3052b61783c66d415',1,'clutchlog.h']]], + ['clutchlog_5fdefault_5fdepth_5fmark_22',['CLUTCHLOG_DEFAULT_DEPTH_MARK',['../group___default_config.html#ga45c4c964fad4ad1641d5c9c28c4645b9',1,'clutchlog.h']]], + ['clutchlog_5fdefault_5fformat_23',['CLUTCHLOG_DEFAULT_FORMAT',['../group___default_config.html#ga524c16f280d92ee8ab683162c9ce01fa',1,'clutchlog.h']]], ['clutchlog_5fh_24',['CLUTCHLOG_H',['../clutchlog_8h.html#a0acf7d306292cdee864356f0b433cc16',1,'clutchlog.h']]], ['clutchlog_5fhave_5funix_5fsysinfo_25',['CLUTCHLOG_HAVE_UNIX_SYSINFO',['../clutchlog_8h.html#a6bbcf13504687db4dbe0474931d867fb',1,'clutchlog.h']]], ['clutchlog_5fhave_5funix_5fsysioctl_26',['CLUTCHLOG_HAVE_UNIX_SYSIOCTL',['../clutchlog_8h.html#a6bddd1e1be320823da0d6b1d5cef7817',1,'clutchlog.h']]], - ['clutchlog_5fhfill_5fmark_27',['CLUTCHLOG_HFILL_MARK',['../group__DefaultConfig.html#gad5fbbacf74b8e4669b8f9efdfe81bd25',1,'clutchlog.h']]], - ['clutchlog_5fstrip_5fcalls_28',['CLUTCHLOG_STRIP_CALLS',['../group__DefaultConfig.html#ga98f30d814d4913a8a7c93a8793f49adf',1,'clutchlog.h']]], + ['clutchlog_5fhfill_5fmark_27',['CLUTCHLOG_HFILL_MARK',['../group___default_config.html#gad5fbbacf74b8e4669b8f9efdfe81bd25',1,'clutchlog.h']]], + ['clutchlog_5fstrip_5fcalls_28',['CLUTCHLOG_STRIP_CALLS',['../group___default_config.html#ga98f30d814d4913a8a7c93a8793f49adf',1,'clutchlog.h']]], ['clutchlog_20—_20versatile_20_28de_29clutchable_20logging_29',['Clutchlog — versatile (de)clutchable logging',['../index.html',1,'']]] ]; diff --git a/docs/search/all_3.js b/docs/search/all_3.js index 64b6460..c125375 100644 --- a/docs/search/all_3.js +++ b/docs/search/all_3.js @@ -5,7 +5,7 @@ var searchData= ['default_5fhfill_5fchar_32',['default_hfill_char',['../classclutchlog.html#a76eb34537b634aadb75e255f7887eeb6',1,'clutchlog']]], ['default_5fhfill_5fmax_33',['default_hfill_max',['../classclutchlog.html#ac95630bfe9cf547d2b7c4b3430eaedc1',1,'clutchlog']]], ['default_5fstrip_5fcalls_34',['default_strip_calls',['../classclutchlog.html#a1a8cb6411726133208f5a2f2cb42d468',1,'clutchlog']]], - ['default_20configuration_20management_35',['Default configuration management',['../group__DefaultConfig.html',1,'']]], + ['default_20configuration_20management_35',['Default configuration management',['../group___default_config.html',1,'']]], ['dump_36',['dump',['../classclutchlog.html#a63308e8deae3cfec6801318203494143',1,'clutchlog']]], ['dump_5fdefault_5fformat_37',['dump_default_format',['../classclutchlog.html#ace879554298e6e6e36dafef330c27be8',1,'clutchlog']]], ['dump_5fdefault_5fsep_38',['dump_default_sep',['../classclutchlog.html#af898bffe23b125245e338d7495c76d45',1,'clutchlog']]] diff --git a/docs/search/all_4.js b/docs/search/all_4.js index 56d9455..d6737c4 100644 --- a/docs/search/all_4.js +++ b/docs/search/all_4.js @@ -6,6 +6,6 @@ var searchData= ['fore_42',['fore',['../classclutchlog_1_1fmt.html#a8307a848fcf9ed929435b3e1f2b53401',1,'clutchlog::fmt']]], ['format_43',['format',['../classclutchlog.html#a656c277e074b64728cca871f2b484d1c',1,'clutchlog::format(const std::string &format)'],['../classclutchlog.html#afc53dbca51d0e2322a21899d0c571a80',1,'clutchlog::format() const'],['../classclutchlog.html#abd692cca9a2e772e7c9d6531bb3c7761',1,'clutchlog::format(std::string row, const std::string &what, const level &stage, const std::string &file, const std::string &func, const size_t line) const']]], ['format_5fcomment_44',['format_comment',['../classclutchlog.html#a2144abe4ec6f630126b6490908b5f924',1,'clutchlog::format_comment(const std::string &format)'],['../classclutchlog.html#aa8d0a569ed3623ce36c5e567ec2d1ad5',1,'clutchlog::format_comment() const']]], - ['formating_20tools_45',['Formating tools',['../group__Formating.html',1,'']]], + ['formating_20tools_45',['Formating tools',['../group___formating.html',1,'']]], ['func_46',['func',['../classclutchlog.html#ad32b5a0274dc03ee0004f67ba58b2447',1,'clutchlog']]] ]; diff --git a/docs/search/all_5.js b/docs/search/all_5.js index 6141dee..7fe0290 100644 --- a/docs/search/all_5.js +++ b/docs/search/all_5.js @@ -1,4 +1,4 @@ var searchData= [ - ['high_2dlevel_20api_20macros_47',['High-level API macros',['../group__UseMacros.html',1,'']]] + ['high_2dlevel_20api_20macros_47',['High-level API macros',['../group___use_macros.html',1,'']]] ]; diff --git a/docs/search/all_7.js b/docs/search/all_7.js index d1c2026..71fd9c4 100644 --- a/docs/search/all_7.js +++ b/docs/search/all_7.js @@ -1,5 +1,5 @@ var searchData= [ - ['main_20class_56',['Main class',['../group__Main.html',1,'']]], + ['main_20class_56',['Main class',['../group___main.html',1,'']]], ['matches_57',['matches',['../structclutchlog_1_1scope__t.html#ae6c0e4ed20db797124ed1e5faa033ad9',1,'clutchlog::scope_t']]] ]; diff --git a/docs/search/groups_0.js b/docs/search/groups_0.js index fb66a21..dc14ead 100644 --- a/docs/search/groups_0.js +++ b/docs/search/groups_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['default_20configuration_20management_129',['Default configuration management',['../group__DefaultConfig.html',1,'']]] + ['default_20configuration_20management_129',['Default configuration management',['../group___default_config.html',1,'']]] ]; diff --git a/docs/search/groups_1.js b/docs/search/groups_1.js index 039b25e..01c5a43 100644 --- a/docs/search/groups_1.js +++ b/docs/search/groups_1.js @@ -1,4 +1,4 @@ var searchData= [ - ['formating_20tools_130',['Formating tools',['../group__Formating.html',1,'']]] + ['formating_20tools_130',['Formating tools',['../group___formating.html',1,'']]] ]; diff --git a/docs/search/groups_2.js b/docs/search/groups_2.js index 63aeae5..3d1a2b0 100644 --- a/docs/search/groups_2.js +++ b/docs/search/groups_2.js @@ -1,4 +1,4 @@ var searchData= [ - ['high_2dlevel_20api_20macros_131',['High-level API macros',['../group__UseMacros.html',1,'']]] + ['high_2dlevel_20api_20macros_131',['High-level API macros',['../group___use_macros.html',1,'']]] ]; diff --git a/docs/search/groups_3.js b/docs/search/groups_3.js index 23c2a85..251602a 100644 --- a/docs/search/groups_3.js +++ b/docs/search/groups_3.js @@ -1,4 +1,4 @@ var searchData= [ - ['main_20class_132',['Main class',['../group__Main.html',1,'']]] + ['main_20class_132',['Main class',['../group___main.html',1,'']]] ]; diff --git a/docs/structclutchlog_1_1scope__t-members.html b/docs/structclutchlog_1_1scope__t-members.html index 51f5f20..05adec5 100644 --- a/docs/structclutchlog_1_1scope__t-members.html +++ b/docs/structclutchlog_1_1scope__t-members.html @@ -9,10 +9,15 @@ + + + + +
    @@ -20,6 +25,7 @@ +
    clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
    +
    + +
    +
    +
    + +
    clutchlog::scope_t Member List
    @@ -78,11 +96,14 @@ $(function() {
    stageclutchlog::scope_t
    thereclutchlog::scope_t
    + - + diff --git a/docs/structclutchlog_1_1scope__t.html b/docs/structclutchlog_1_1scope__t.html index 454b7cf..60f7881 100644 --- a/docs/structclutchlog_1_1scope__t.html +++ b/docs/structclutchlog_1_1scope__t.html @@ -9,10 +9,15 @@ + + + + +
    @@ -20,6 +25,7 @@ +
    clutchlog  0.11.1 @@ -46,6 +52,23 @@ $(function() { }); /* @license-end */ +
    +
    + +
    +
    +
    + +
    Public Member Functions | @@ -79,7 +97,11 @@ $(function() { More...

    #include <clutchlog.h>

    - +

    Detailed Description

    +

    Structure holding a location matching.

    + +

    Definition at line 654 of file clutchlog.h.

    +

    Public Member Functions

    @@ -102,17 +124,19 @@ bool  Location is compatible.
     
    -

    Detailed Description

    -

    Structure holding a location matching.

    -

    The documentation for this struct was generated from the following file:
      -
    • clutchlog/clutchlog.h
    • +
      The documentation for this struct was generated from the following file:
    +
    - + diff --git a/docs/structclutchlog_1_1scope__t.js b/docs/structclutchlog_1_1scope__t.js new file mode 100644 index 0000000..cd24a52 --- /dev/null +++ b/docs/structclutchlog_1_1scope__t.js @@ -0,0 +1,7 @@ +var structclutchlog_1_1scope__t = +[ + [ "scope_t", "structclutchlog_1_1scope__t.html#a0f1d865ffcf17f215e5559cdd2690572", null ], + [ "matches", "structclutchlog_1_1scope__t.html#ae6c0e4ed20db797124ed1e5faa033ad9", null ], + [ "stage", "structclutchlog_1_1scope__t.html#adcca6846ff90d436c61861db85917744", null ], + [ "there", "structclutchlog_1_1scope__t.html#a7918e55cd3bac1bd30c69b8c711387ff", null ] +]; \ No newline at end of file diff --git a/docs/svgpan.js b/docs/svgpan.js new file mode 100644 index 0000000..1cad257 --- /dev/null +++ b/docs/svgpan.js @@ -0,0 +1,343 @@ +/* + @licstart The following is the entire license notice for the + JavaScript code in this file. + + Copyright (C) 1997-2017 by Dimitri van Heesch + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + @licend The above is the entire license notice + for the JavaScript code in this file + */ +/** + * The code below is based on SVGPan Library 1.2 and was modified for doxygen + * to support both zooming and panning via the mouse and via embedded buttons. + * + * This code is licensed under the following BSD license: + * + * Copyright 2009-2010 Andrea Leofreddi . All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY Andrea Leofreddi ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Andrea Leofreddi OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of Andrea Leofreddi. + */ + +var root = document.documentElement; +var state = 'none'; +var stateOrigin; +var stateTf = root.createSVGMatrix(); +var cursorGrab = ' url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAlQTFRFAAAA////////c3ilYwAAAAN0Uk5T//8A18oNQQAAAD1JREFUeNp0zlEKACAIA9Bt9z90bZBZkQj29qFBEuBOzQHSnWTTyckEfqUuZgFvslH4ch3qLCO/Kr8cAgwATw4Ax6XRCcoAAAAASUVORK5CYII="), move'; +var zoomSteps = 10; +var zoomInFactor; +var zoomOutFactor; +var windowWidth; +var windowHeight; +var svgDoc; +var minZoom; +var maxZoom; +if (!window) window=this; + +/** + * Show the graph in the middle of the view, scaled to fit + */ +function show() +{ + if (window.innerHeight) // Firefox + { + windowWidth = window.innerWidth; + windowHeight = window.innerHeight; + } + else if (document.documentElement.clientWidth) // Chrome/Safari + { + windowWidth = document.documentElement.clientWidth + windowHeight = document.documentElement.clientHeight + } + if (!windowWidth || !windowHeight) // failsafe + { + windowWidth = 800; + windowHeight = 600; + } + minZoom = Math.min(Math.min(viewHeight,windowHeight)/viewHeight,Math.min(viewWidth,windowWidth)/viewWidth); + maxZoom = minZoom+1.5; + zoomInFactor = Math.pow(maxZoom/minZoom,1.0/zoomSteps); + zoomOutFactor = 1.0/zoomInFactor; + + var g = svgDoc.getElementById('viewport'); + try + { + var bb = g.getBBox(); // this can throw an exception if css { display: none } + var tx = (windowWidth-viewWidth*minZoom+8)/(2*minZoom); + var ty = viewHeight+(windowHeight-viewHeight*minZoom)/(2*minZoom); + var a = 'scale('+minZoom+') rotate(0) translate('+tx+' '+ty+')'; + g.setAttribute('transform',a); + } + catch(e) {} +} + +/** + * Register handlers + */ +function init(evt) +{ + svgDoc = evt.target.ownerDocument; + try { + if (top.window && top.window.registerShow) { // register show function in html doc for dynamic sections + top.window.registerShow(sectionId,show); + } + } catch(e) { + // ugh, we are not allowed to talk to the parent; can happen with Chrome when viewing pages + // locally, since they treat every local page as having a different origin + } + show(); + + setAttributes(root, { + "onmousedown" : "handleMouseDown(evt)", + "onmousemove" : "handleMouseMove(evt)", + "onmouseup" : "handleMouseUp(evt)" + }); + + if (window.addEventListener) + { + if (navigator.userAgent.toLowerCase().indexOf('webkit') >= 0 || + navigator.userAgent.toLowerCase().indexOf("opera") >= 0 || + navigator.appVersion.indexOf("MSIE") != -1) + { + window.addEventListener('mousewheel', handleMouseWheel, false); // Chrome/Safari/IE9 + } + else + { + window.addEventListener('DOMMouseScroll', handleMouseWheel, false); // Others + } + } +} + +window.onresize=function() +{ + if (svgDoc) { show(); } +} + +/** + * Instance an SVGPoint object with given event coordinates. + */ +function getEventPoint(evt) +{ + var p = root.createSVGPoint(); + p.x = evt.clientX; + p.y = evt.clientY; + return p; +} + +/** + * Sets the current transform matrix of an element. + */ +function setCTM(element, matrix) +{ + var s = "matrix(" + matrix.a + "," + matrix.b + "," + matrix.c + "," + matrix.d + "," + matrix.e + "," + matrix.f + ")"; + element.setAttribute("transform", s); +} + +/** + * Sets attributes of an element. + */ +function setAttributes(element, attributes) +{ + for (i in attributes) + element.setAttributeNS(null, i, attributes[i]); +} + +function doZoom(g,point,zoomFactor) +{ + var p = point.matrixTransform(g.getCTM().inverse()); + var k = root.createSVGMatrix().translate(p.x, p.y).scale(zoomFactor).translate(-p.x, -p.y); + var n = g.getCTM().multiply(k); + var s = Math.max(n.a,n.d); + if (s>maxZoom) n=n.translate(p.x,p.y).scale(maxZoom/s).translate(-p.x,-p.y); + else if (s'); + d.write('Print SVG'); + d.write(''); + d.write('
    '+xs+'
    '); + d.write(''); + d.write(''); + d.close(); + } catch(e) { + alert('Failed to open popup window needed for printing!\n'+e.message); + } +} +/* @license-end */ diff --git a/docs/t-assert_8cpp_source.html b/docs/t-assert_8cpp_source.html new file mode 100644 index 0000000..68c2e0d --- /dev/null +++ b/docs/t-assert_8cpp_source.html @@ -0,0 +1,147 @@ + + + + + + + +clutchlog: t-assert.cpp Source File + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.11.1 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    t-assert.cpp
    +
    +
    +
    1 #include <iostream>
    +
    2 #include <cassert>
    +
    3 
    +
    4 #include "../clutchlog/clutchlog.h"
    +
    5 
    +
    6 // Make asserts (de)clutchable.
    +
    7 #define ASSERT(...) CLUTCHFUNC(error, assert, __VA_ARGS__);
    +
    8 
    +
    9 void h()
    +
    10 {
    +
    11  CLUTCHLOG(info, "!");
    +
    12  ASSERT(true == true);
    +
    13  std::clog << "--" << std::endl;
    +
    14 }
    +
    15 
    +
    16 void g()
    +
    17 {
    +
    18  CLUTCHLOG(warning, "world");
    +
    19  ASSERT(strcmp("life","life") == 0);
    +
    20  h();
    +
    21 }
    +
    22 
    +
    23 void f()
    +
    24 {
    +
    25  CLUTCHLOG(error, "hello ");
    +
    26  ASSERT(strcmp("no more","please")!=0);
    +
    27  g();
    +
    28 }
    +
    29 
    +
    30 int main(/*const int argc, char* argv[]*/)
    +
    31 {
    +
    32  auto& log = clutchlog::logger();
    +
    33 
    +
    34  log.func("f");
    +
    35  f();
    +
    36 
    +
    37  log.func("g");
    +
    38  f();
    +
    39 
    +
    40  log.func("h");
    +
    41  f();
    +
    42 }
    +
    +
    +
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:291
    +
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81
    + + + + diff --git a/docs/t-color_8cpp_source.html b/docs/t-color_8cpp_source.html new file mode 100644 index 0000000..60401d6 --- /dev/null +++ b/docs/t-color_8cpp_source.html @@ -0,0 +1,154 @@ + + + + + + + +clutchlog: t-color.cpp Source File + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.11.1 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    t-color.cpp
    +
    +
    +
    1 #include <iostream>
    +
    2 #include <limits>
    +
    3 
    +
    4 #include "../clutchlog/clutchlog.h"
    +
    5 
    +
    6 int main(/*const int argc, char* argv[]*/)
    +
    7 {
    +
    8  using typo = clutchlog::fmt::typo;
    +
    9  using fg = clutchlog::fmt::fg;
    +
    10  using bg = clutchlog::fmt::bg;
    +
    11 
    +
    12  clutchlog::fmt none;
    +
    13  clutchlog::fmt end(typo::reset);
    +
    14  clutchlog::fmt note(typo::bold);
    +
    15  clutchlog::fmt info(fg::green);
    +
    16  clutchlog::fmt warning(fg::magenta, typo::bold);
    +
    17  clutchlog::fmt error(fg::red, typo::bold);
    +
    18  clutchlog::fmt critical(bg::red, typo::underline, fg::black);
    +
    19 
    +
    20  auto& log = clutchlog::logger();
    +
    21  log.threshold(clutchlog::level::info);
    +
    22 
    +
    23  // Change a style.
    +
    24  log.style(clutchlog::level::critical, error);
    +
    25  CLUTCHLOG(critical,"Styles demo");
    +
    26 
    +
    27  CLUTCHLOG(info,"Either using functions...");
    +
    28  std::cout << none("No style: ") << std::endl;
    +
    29  std::cout << note("NOTE: bold") << std::endl;
    +
    30  std::cout << info("INFO: green") << std::endl;
    +
    31 
    +
    32  CLUTCHLOG(info,"... or tags.");
    +
    33  std::cout << warning << "WARNING" << end << ": bold magenta" << std::endl;
    +
    34  std::cout << error << "ERROR" << end << ": bold red" << std::endl;
    +
    35  std::cout << critical << "CRITICAL" << end << ": underlined black over red background" << std::endl;
    +
    36 
    +
    37  std::ostringstream format;
    +
    38  clutchlog::fmt discreet(clutchlog::fmt::fg::white);
    +
    39  format << "{level}: "
    +
    40  << discreet("{file}:")
    +
    41  << clutchlog::fmt(clutchlog::fmt::fg::yellow) << "{line}"
    +
    42  << clutchlog::fmt(clutchlog::fmt::typo::reset) << " {msg} ! " << std::endl;
    +
    43  log.format(format.str());
    +
    44  CLUTCHLOG(critical,"After having inserted styles within a new format template");
    +
    45 }
    +
    +
    +
    fg
    Foreground color codes.
    Definition: clutchlog.h:312
    +
    bg
    Background color codes.
    Definition: clutchlog.h:325
    +
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:291
    +
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:309
    +
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81
    +
    typo
    Typographic style codes.
    Definition: clutchlog.h:338
    + + + + diff --git a/docs/t-demo_8cpp_source.html b/docs/t-demo_8cpp_source.html new file mode 100644 index 0000000..e03997e --- /dev/null +++ b/docs/t-demo_8cpp_source.html @@ -0,0 +1,199 @@ + + + + + + + +clutchlog: t-demo.cpp Source File + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.11.1 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    t-demo.cpp
    +
    +
    +
    1 #include <iostream>
    +
    2 
    +
    3 #include "../clutchlog/clutchlog.h"
    +
    4 
    +
    5 void i()
    +
    6 {
    +
    7  CLUTCHLOG(progress, "Reset data structures...");
    +
    8  CLUTCHLOG(debug, "OK");
    +
    9  CLUTCHLOG(progress, "Reset functors...");
    +
    10  CLUTCHLOG(critical, "Impossible to reset, I cannot recover.");
    +
    11 }
    +
    12 
    +
    13 void h()
    +
    14 {
    +
    15  CLUTCHLOG(note, "Filling up data of size: " << 0);
    +
    16  CLUTCHLOG(error, "Cannot parse input, I will reset stuff.");
    +
    17  i();
    +
    18  CLUTCHLOG(xdebug, "Last seen state: " << 0);
    +
    19 }
    +
    20 
    +
    21 void g()
    +
    22 {
    +
    23  CLUTCHLOG(warning, "Input size < " << 1);
    +
    24  h();
    +
    25 }
    +
    26 
    +
    27 void f()
    +
    28 {
    +
    29  CLUTCHLOG(progress, "Initialize data structures...");
    +
    30  CLUTCHLOG(debug, "OK");
    +
    31  CLUTCHLOG(progress, "Initialize functors...");
    +
    32  CLUTCHLOG(debug, "OK");
    +
    33  g();
    +
    34 }
    +
    35 
    +
    36 int main(const int argc, char* argv[])
    +
    37 {
    +
    38  auto& log = clutchlog::logger();
    +
    39 
    +
    40  log.style(clutchlog::level::critical,
    +
    41  clutchlog::fmt::fg::red);
    +
    42  log.style(clutchlog::level::error,
    +
    43  clutchlog::fmt::fg::red);
    +
    44  log.style(clutchlog::level::warning,
    +
    45  clutchlog::fmt::fg::magenta);
    +
    46  log.style(clutchlog::level::progress,
    +
    47  clutchlog::fmt::fg::yellow);
    +
    48  log.style(clutchlog::level::note,
    +
    49  clutchlog::fmt::fg::green);
    +
    50  log.style(clutchlog::level::info,
    +
    51  clutchlog::fmt::fg::magenta);
    +
    52  log.style(clutchlog::level::debug,
    +
    53  clutchlog::fmt::fg::cyan);
    +
    54  log.style(clutchlog::level::xdebug,
    +
    55  clutchlog::fmt::fg::blue);
    +
    56  std::ostringstream format;
    +
    57  clutchlog::fmt reset(clutchlog::fmt::typo::reset);
    +
    58  clutchlog::fmt discreet(clutchlog::fmt::fg::black);
    +
    59  clutchlog::fmt bold(clutchlog::fmt::typo::bold);
    +
    60  format << "{level_fmt}"
    +
    61  << "{level_letter}:"
    +
    62  << "{depth_marks} "
    +
    63  << bold("{msg}")
    +
    64  << discreet(" {hfill} ")
    +
    65  << "{level_fmt}{func}"
    +
    66  << discreet(" @ ")
    +
    67  << "{level_fmt}{file}"
    +
    68  << reset << ":"
    +
    69  << "{level_fmt}{line}"
    +
    70  << "\n";
    +
    71  log.format(format.str());
    +
    72 
    +
    73  // log.hfill_max(100);
    +
    74  log.out(std::clog);
    +
    75  log.depth_mark(">");
    +
    76  log.threshold(clutchlog::level::warning);
    +
    77 
    +
    78  if(argc <= 2) {
    +
    79  CLUTCHLOG(warning, "Log level not indicated, will default to xdebug");
    +
    80  log.threshold(clutchlog::level::xdebug);
    +
    81  } else {
    +
    82  try {
    +
    83  log.threshold(log.level_of(argv[1]));
    +
    84  } catch(std::out_of_range& err) {
    +
    85  CLUTCHLOG(critical,err.what());
    +
    86  exit(100);
    +
    87  }
    +
    88  }
    +
    89 
    +
    90  CLUTCHLOG(progress,"Start something");
    +
    91  f();
    +
    92  CLUTCHLOG(progress,"I have stopped");
    +
    93 }
    +
    +
    +
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:291
    +
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:309
    +
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81
    + + + + diff --git a/docs/t-dump_8cpp_source.html b/docs/t-dump_8cpp_source.html new file mode 100644 index 0000000..06cc71a --- /dev/null +++ b/docs/t-dump_8cpp_source.html @@ -0,0 +1,126 @@ + + + + + + + +clutchlog: t-dump.cpp Source File + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.11.1 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    t-dump.cpp
    +
    +
    +
    1 #include <iostream>
    +
    2 #include <algorithm>
    +
    3 #include <random>
    +
    4 
    +
    5 #include "../clutchlog/clutchlog.h"
    +
    6 
    +
    7 int main(/*const int argc, char* argv[]*/)
    +
    8 {
    +
    9  auto& log = clutchlog::logger();
    +
    10 
    +
    11  log.out(std::clog);
    +
    12  log.threshold(clutchlog::level::xdebug);
    +
    13 
    +
    14  std::vector<std::string> msg = {"hello", "world", "!"};
    +
    15 
    +
    16  CLUTCHDUMP(xdebug, msg, "test_{n}.dat");
    +
    17 
    +
    18  std::vector<int> v(3);
    +
    19  std::generate(v.begin(), v.end(), std::rand);
    +
    20  CLUTCHDUMP(info, v, "rand_{n}.dat");
    +
    21 }
    +
    +
    +
    #define CLUTCHDUMP(LEVEL, CONTAINER, FILENAME)
    Dump the given container.
    Definition: clutchlog.h:98
    +
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:291
    + + + + diff --git a/docs/t-log_8cpp_source.html b/docs/t-log_8cpp_source.html new file mode 100644 index 0000000..67fc77d --- /dev/null +++ b/docs/t-log_8cpp_source.html @@ -0,0 +1,175 @@ + + + + + + + +clutchlog: t-log.cpp Source File + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.11.1 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    t-log.cpp
    +
    +
    +
    1 #include <iostream>
    +
    2 
    +
    3 #include "../clutchlog/clutchlog.h"
    +
    4 
    +
    5 void h()
    +
    6 {
    +
    7  CLUTCHLOG(info, "!");
    +
    8  std::clog << "--" << std::endl;
    +
    9 }
    +
    10 
    +
    11 void g()
    +
    12 {
    +
    13  CLUTCHLOG(warning, "world");
    +
    14  h();
    +
    15 }
    +
    16 
    +
    17 void f()
    +
    18 {
    +
    19  CLUTCHLOG(error, "hello ");
    +
    20  g();
    +
    21 }
    +
    22 
    +
    23 int main(/*const int argc, char* argv[]*/)
    +
    24 {
    +
    25  auto& log = clutchlog::logger();
    +
    26 
    +
    27  log.out(std::clog);
    +
    28 
    +
    29  std::clog << "depth: 99; threshold: xdebug; location: .*" << std::endl;
    +
    30 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
    +
    31  log.depth(99);
    +
    32 #endif
    +
    33  log.threshold(clutchlog::level::xdebug);
    +
    34  log.location(".*",".*");
    +
    35  f();
    +
    36 
    +
    37  std::clog << "depth: 4; threshold: xdebug; location: ,*" << std::endl;
    +
    38 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
    +
    39  log.depth(4);
    +
    40 #endif
    +
    41  assert(log.levels().find("XDebug") != std::end(log.levels())); // contains
    +
    42  assert(log.levels().find("Xdebug") == std::end(log.levels())); // not contains
    +
    43  log.threshold("XDebug");
    +
    44  log.location(".*");
    +
    45  f();
    +
    46 
    +
    47  std::clog << "depth: 99; threshold: warning; location: .*" << std::endl;
    +
    48 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
    +
    49  log.depth(99);
    +
    50 #endif
    +
    51  log.threshold(clutchlog::level::warning);
    +
    52  log.location(".*");
    +
    53  f();
    +
    54 
    +
    55  std::clog << "depth: 99; threshold: xdebug; location: 'core','g'" << std::endl;
    +
    56 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
    +
    57  log.depth(99);
    +
    58 #endif
    +
    59  log.threshold(clutchlog::level::xdebug);
    +
    60  log.location("core","g");
    +
    61  f();
    +
    62 
    +
    63  std::clog << "depth: 99; threshold: debug; location: '.*','(g|h)'" << std::endl;
    +
    64 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
    +
    65  log.depth(99);
    +
    66 #endif
    +
    67  log.threshold("Debug");
    +
    68  log.location(".*","(g|h)");
    +
    69  f();
    +
    70 }
    +
    +
    +
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:291
    +
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81
    + + + + diff --git a/docs/t-one-line-if_8cpp_source.html b/docs/t-one-line-if_8cpp_source.html new file mode 100644 index 0000000..be079f9 --- /dev/null +++ b/docs/t-one-line-if_8cpp_source.html @@ -0,0 +1,118 @@ + + + + + + + +clutchlog: t-one-line-if.cpp Source File + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.11.1 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    t-one-line-if.cpp
    +
    +
    +
    1 #include "../clutchlog/clutchlog.h"
    +
    2 
    +
    3 int main()
    +
    4 {
    +
    5  if(true)
    +
    6  CLUTCHLOG(error, "WHAT?");
    +
    7  else
    +
    8  CLUTCHLOG(info, "OH!");
    +
    9 
    +
    10  if(false)
    +
    11  CLUTCHLOG(info, "AH!");
    +
    12  else
    +
    13  CLUTCHLOG(error, "NO!");
    +
    14 }
    +
    +
    +
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81
    + + + + diff --git a/doxygen/DoxygenLayout.xml b/doxygen/DoxygenLayout.xml new file mode 100644 index 0000000..562b5f2 --- /dev/null +++ b/doxygen/DoxygenLayout.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doxygen/doxyfile.cmake b/doxygen/doxyfile.cmake new file mode 100644 index 0000000..e0ff93e --- /dev/null +++ b/doxygen/doxyfile.cmake @@ -0,0 +1,1488 @@ +# Doxyfile 1.6.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +MARKDOWN_SUPPORT = YES +USE_MDFILE_AS_MAINPAGE = @PROJECT_SOURCE_DIR@/README.md +AUTOLINK_SUPPORT = YES +TOC_INCLUDE_HEADINGS = 3 + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = @CMAKE_PROJECT_NAME@ + +# With the PROJECT_LOGO tag one can specify a logo or an icon +# that is included in the documentation. +# The maximum height of the logo should not exceed 55 pixels +# and the maximum width should not exceed 200 pixels. +# Doxygen will copy the logo to the output directory. + +PROJECT_LOGO = @CMAKE_SOURCE_DIR@/docs/clutchlog_logo.svg + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = @PROJECT_VERSION@ + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = @CMAKE_CURRENT_BINARY_DIR@ + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = NO + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = @PROJECT_SOURCE_DIR@ \ + @PROJECT_BINARY_DIR@ + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = YES + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it parses. +# With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this tag. +# The format is ext=language, where ext is a file extension, and language is one of +# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, +# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat +# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = YES + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = YES + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = NO + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = NO + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by +# doxygen. The layout file controls the global structure of the generated output files +# in an output format independent way. The create the layout file that represents +# doxygen's defaults, run doxygen with the -l option. You can optionally specify a +# file name after the option, if omitted DoxygenLayout.xml will be used as the name +# of the layout file. + +LAYOUT_FILE = @CMAKE_SOURCE_DIR@/doxygen/DoxygenLayout.xml + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = NO + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = NO + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = @PROJECT_SOURCE_DIR@/README.md \ + @doxy_main_page@ \ + @PROJECT_SOURCE_DIR@ \ + @PROJECT_BINARY_DIR@ + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = *.cpp \ + *.h \ + *.hpp \ + README + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = *.sif/* \ + CMakeCXXCompilerId.cpp + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = @CMAKE_SOURCE_DIR@/tests + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = @PROJECT_BINARY_DIR@/html + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = YES + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 3 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = eo + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_EXTRA_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_EXTRA_STYLESHEET = @CMAKE_SOURCE_DIR@/doxygen/doxygen-style.css + + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = YES + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER +# are set, an additional index file will be generated that can be used as input for +# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated +# HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. +# For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's +# filter section matches. +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = YES + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# When the SEARCHENGINE tag is enable doxygen will generate a search box for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP) or Qt help (GENERATE_QHP) +# there is already a search function so this one should typically +# be disabled. + +SEARCHENGINE = YES + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = YES + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +# GENERATE_TAGFILE = @CMAKE_CURRENT_BINARY_DIR@/clutchlog.doxytag + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = YES + +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = svg + +# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES +# to enable generation of interactive SVG images that allow zooming and panning. +# Note that this requires a modern browser other than Internet Explorer. +# Tested and working are Firefox, Chrome, Safari, and Opera. +# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml +# in order to make the SVG files visible. +# Older versions of IE do not have SVG support. +# This tag requires that the tag HAVE_DOT is set to YES. + +INTERACTIVE_SVG = YES + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = YES + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/doxygen/doxygen-style.css b/doxygen/doxygen-style.css new file mode 100644 index 0000000..6d66a28 --- /dev/null +++ b/doxygen/doxygen-style.css @@ -0,0 +1,843 @@ +/* This doxygen theme is free to use. If you like this, please Star https://github.com/kcwongjoe/doxygen_theme_flat_design */ + +/* Color Pattern. You can change this pattern to design your theme. */ + +:root { + /* Content */ + --bgcolor: #ffffff; + --bgfont: #303030; + --bgfont2: #3771c8; + --bgfont-hover: #3771c8; + --bgfont-hover-text-decoration: underline solid #3771c8; + --bgborder: #7d7d7d; + --bgborder2: #f6f6f6; + --bgfont-link:#1751a8; + /* Main Header */ + --bg1color: #303030; + --bg1font: #ffffff; + --bg1font2: #3771c8; + /* Second header */ + --bg2color: #E2E2E2; + --bg2font: #7D7D7D; + --bg2-hover-bg: #ffffff; + --bg2-hover-font: #303030; + --bg2-hover-topborder: #3771c8; + /* Third header */ + --bg3color: #f6f6f6; + --bg3font: #303030; + --bg3font2: #7D7D7D; + /* Code */ + --code-bg: #232323; + --code-comment: #a5c261; + --code-keyword: #db4939; + --code-preprocessor: #efcd45; + --code-keywordtype: #87bbff; + --code-text: #b1cfb1; + --code-code: #d3d0cc; + --code-line: #73707c; + --code-line-bg: #232323; + --code-link: #b7dbff; + /* Namespace List, Class List icon */ + --icon-bg: #303030 + --icon-font: #3771c8; + /* Class Index */ + --qindex-menu-bg: #303030; + --qindex-menu-font: #ffffff; + --qindex-menu-font-hover: #3771c8; + --qindex-icon-bg: #3771c8; + --qindex-icon-font: #303030; + /* Member table */ + --mem-title-bg: #3771c8; + --mem-title-font: #ffffff; + --mem-subtitle-bg: #77b1f8; + --mem-subtitle-font: #303030; + --mem-subtitle-font-hover: #303030; + --mem-content-bg: #ffffff; + --mem-content-font: #303030; + --mem-content-border: grey; + --mem-content-highlighted:#3771c8; + /* Nav Tree */ + --nav-tree-bg: #E2E2E2; + --nav-tree-bg-hover: #ffffff; + --nav-tree-font: #7D7D7D; + --nav-tree-font-hover: #303030; + --nav-tree-bg-selected: #3771c8; + --nav-tree-font-selected: white; +} + +body, table, div, p, dl { + color: var(--bgfont); + background-color: var(--bgcolor); + line-height: 150%; + font-size: 18px; +} + +div.contents p { + margin-left:1em; +} + +div.contents { + margin: 20px 40px; +} + +div.contents ul { + line-height: 200%; + margin-left:1.5em; +} + +/* +h1 { + margin:0px; + margin-top: 2em; + margin-bottom:1em; + background-color:var(--bgfont2); + color: var(--bgcolor); + font-size: 200%; + padding:1em; + border: 2px solid var(--bgfont2); + box-shadow:0.5em 0.5em 0.5em var(--bgfont); + font-family:monospace; +} +*/ + +h1 { + color: #303030; + font-size: 160%; + font-weight: bold; + border-bottom: 2px solid var(--bgfont2); + padding-bottom:3px; + margin-top:2em; +} + +/*h2.groupheader {*/ +h2 { + color: #303030; + font-size: 140%; + font-weight: bold; + border-bottom: 1px solid var(--bgfont2); + padding-bottom:1px; + margin-top:1.5em; +} + +h3 { + color: #303030; + font-size: 120%; + font-weight: bold; + margin-top:1.5em; +} + +div.textblock > p:first-of-type { + font-size: 120%; + margin:1em; + border: thin solid black; + padding: 1em; + background-color:var(--bgfont2); + color: var(--bgcolor); + border: 2px solid var(--bgfont2); + box-shadow:0.5em 0.5em 0.5em var(--bgfont); +} + +/***********************************/ + +/********** Project header *********/ + +/***********************************/ + +.title { + font-size: 2em; +} + +#titlearea { + border-bottom: none; + padding-bottom: 20px; + padding-top: 20px; +} + +#titlearea, #titlearea * { + color: var(--bg1font); + background-color: var(--bg1color); +} + +#projectname { + padding: 0px 40px !important; +} + +#projectbrief { + padding: 0px 40px !important; +} + +#projectalign { + padding: 0px !important; + vertical-align: bottom; +} + +#projectlogo > img { + width: 100px; +} + +/***********************************/ + +/************ Main Menu ************/ + +/***********************************/ + +/* Margin */ + +#main-menu { + padding: 0px 30px; +} + +#main-menu a, #main-menu a:hover { + padding-top: 10px; + padding-bottom: 10px; +} + +/* Menu button */ + +#main-menu li a { + background-image: none; + font-family: Arial; + text-shadow: none; + font-size: 14px; + font-weight: 700; +} + +#main-menu, #main-menu>li>a { + background-image: none; + background-color: var(--bg2color); + color: var(--bg2font); + transition: 0.2s; +} + +/* hover Effect */ + +#main-menu>li { + border-top: 5px solid var(--bg2color); +} + +#main-menu>li:hover { + color: var(--bg2-hover-font); + background-color: var(--bg2-hover-bg); + border-top: 5px solid var(--bg2-hover-topborder); + font-width: bold; +} + +#main-menu>li:hover, #main-menu>li>a:hover, #main-menu>li>a.highlighted { + color: var(--bg2-hover-font); + background-color: var(--bg2-hover-bg); + font-width: bold; +} + +/* Search Bar */ + +#MSearchBox { + border-radius: 0; + box-shadow: none; +} + +#MSearchBox>span { + margin: 10px; +} + +#main-menu>li:last-child { + padding: 25px 0px; +} + +/* Reset search hover color*/ + +#main-menu>li:last-child:hover { + color: var(--bg2font); + background-color: var(--bg2color); + border-top: 5px solid var(--bg2color); +} + +#MSearchResultsWindow { + border: 1px solid var(--bg3font2); + background-color: var(--bg3color); + padding: 10px; +} + +body.SRPage, body.SRPage * { + font-family: Arial; +} + +/* Sub Menu */ + +#main-menu>li ul { + transition: max-height 0.2s ease-in-out; + padding: 0px; + border-radius: 0px !important; +} + +#main-menu>li ul:before, #main-menu>li ul:after { + border-width: 0px; +} + +#main-menu>li>ul li a, #main-menu>li>ul li { + background-color: var(--bgcolor); + color: var(--bgfont); + background-image: none; +} + +#main-menu>li>ul li a:hover, #main-menu>li>ul li:hover { + background-color: var(--bgfont2); + /*color: var(--bgfont);*/ + color: white; + font-width: bold; +} + +/***********************************/ + +/************** Header *************/ + +/***********************************/ + +div.headertitle { + padding: 5px 40px; +} + +div.header, div.header * { + color: var(--bg3font); + background-color: var(--bg3color); + border-bottom: none; +} + +div.summary { + padding-right: 40px; +} + +/***********************************/ + +/************** Link *************/ + +/***********************************/ + +a, a:visited, a:active, .contents a:visited, body.SRPage a, body.SRPage a:visited, body.SRPage a:active { + color: var(--bgfont-link); + text-decoration: none; +} + +a:hover, .contents a:hover, body.SRPage a:hover { + color: var(--bgfont-hover); + text-decoration: var(--bgfont-hover-text-decoration); + +} + +.dynheader { + color: var(--bgfont-link); + text-decoration: none; +} + +.dynheader:hover { + color: var(--bgfont-hover); + text-decoration: var(--bgfont-hover-text-decoration); +} + +/***********************************/ + +/************ Nav-path ************/ + +/***********************************/ + +#nav-path, #nav-path ul { + background-image: none; +} + +#nav-path ul { + padding: 5px 30px; +} + +#nav-path, #nav-path * { + color: var(--bg3font2); + background-color: var(--bg3color); + border: none; + font-family: Arial; +} + +li.navelem { + background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnN2Z2pzPSJodHRwOi8vc3ZnanMuY29tL3N2Z2pzIiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDI5Mi4zNTkgMjkyLjM1OSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTEyIDUxMiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgY2xhc3M9IiI+PGc+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+Cgk8cGF0aCBkPSJNMjIyLjk3OSwxMzMuMzMxTDk1LjA3Myw1LjQyNEM5MS40NTYsMS44MDcsODcuMTc4LDAsODIuMjI2LDBjLTQuOTUyLDAtOS4yMzMsMS44MDctMTIuODUsNS40MjQgICBjLTMuNjE3LDMuNjE3LTUuNDI0LDcuODk4LTUuNDI0LDEyLjg0N3YyNTUuODEzYzAsNC45NDgsMS44MDcsOS4yMzIsNS40MjQsMTIuODQ3YzMuNjIxLDMuNjE3LDcuOTAyLDUuNDI4LDEyLjg1LDUuNDI4ICAgYzQuOTQ5LDAsOS4yMy0xLjgxMSwxMi44NDctNS40MjhsMTI3LjkwNi0xMjcuOTA3YzMuNjE0LTMuNjEzLDUuNDI4LTcuODk3LDUuNDI4LTEyLjg0NyAgIEMyMjguNDA3LDE0MS4yMjksMjI2LjU5NCwxMzYuOTQ4LDIyMi45NzksMTMzLjMzMXoiIGZpbGw9IiM3ZDdkN2QiIGRhdGEtb3JpZ2luYWw9IiMwMDAwMDAiIHN0eWxlPSIiIGNsYXNzPSIiPjwvcGF0aD4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8L2c+PC9zdmc+); + background-size: 9px; +} + +li.navelem a { + margin-right: 20px; +} + +/***********************************/ + +/*************** mem ***************/ + +/***********************************/ + +.memtitle { + padding: 15px; + margin-top: 30px; + border-top-left-radius: 0px; + border-top-right-radius: 0px; +} + +.memtitle, .memtitle *, .memtitle a:visited { + border: none; + background-image: none; + color: var(--mem-title-font); + background-color: var(--mem-title-bg); +} + +.memproto { + padding: 2em; + text-shadow: none; + border-top-right-radius: 0px; + -moz-border-radius-topright: 0px; + -webkit-border-top-right-radius: 0px; +} + +.memproto, .memproto *, .memproto a:visited { + border: none; + background-image: none; + background-color: var(--mem-subtitle-bg); + color: var(--mem-subtitle-font); + font-size: inherit; + line-height: 100% +} + +.memproto a:hover { + color: var(--mem-subtitle-font-hover); +} + +.memdoc { + border-bottom: 1px solid var(--mem-content-border); + border-left: 1px solid var(--mem-content-border); + border-right: 1px solid var(--mem-content-border); + background-color: var(--mem-content-bg); + color: var(--mem-content-font); + border-bottom-left-radius: 0px; + border-bottom-right-radius: 0px; + -moz-border-radius-bottomleft: 0px; + -moz-border-radius-bottomright: 0px; + -webkit-border-bottom-left-radius: 0px; + -webkit-border-bottom-right-radius: 0px; + padding:1em; +} + +.memdoc p, .memdoc dt { + /*padding: 0px 20px;*/ +} + +.memdoc > p { + font-size:1em; +} + +.paramname { + color:black; +} + +td.memItemRight > a:first-of-type { + font-size:1.3em; +} + +/***********************************/ + +/************* Contents ************/ + +/***********************************/ + +a.anchor { + padding-top: 20px; +} + +dl { + border-left: 5px solid; + padding:1em; +} + +dt { + font-variant-caps: small-caps; +} + +dl.warning { + border-top: thin solid red; + border-right: thin solid red; + border-bottom: thin solid red; + border-left-color: red; + background-color: #fee; +} + +dl.warning > dt { + color: #500; +} + +dl.note { + border-top:thin solid green; + border-right:thin solid green; + border-bottom:thin solid green; + border-left-color:green; + background-color: #efe; +} + +dl.note > dt { + color: #050; +} + +div.textblock { + padding:2em; + border: 2px solid var(--bgfont2); + box-shadow:0.5em 0.5em 0.5em var(--bgfont); + background-color: #fafaff; +} + +/* +div.textblock > p { + font-size:1.2em; +} +*/ + +div.textblock > p.definition { + font-size:0.8em; +} + +p.definition { + font-size: 0.8em; +} + +p.reference { + font-size: 0.8em; +} + +p { + background-color: transparent; +} + +table { + margin-top:4em; +} + +table.memname { + margin-top:0.1em; +} + +table.mlabels { + margin-top:0.1em; +} + +/***********************************/ + +/************* fragment ************/ + +/***********************************/ + +div.fragment, pre.fragment { + border: none; + padding: 1em; + margin-left: 1em; + margin-right: 1em; + background-color: var(--code-bg); + border-left: 2px solid black; + border-top: 2px solid black; + border-right: 2px solid grey; + border-bottom: 2px solid grey; +} + +div.fragment > div.line { + font-size:1em; + line-height:150%; + color: var(--code-code); +} + +.textblock > div.fragment { + font-size: 1em; +} + +.textblock > dl.section { + font-size: 1.2em; +} + +div.line { + background-color: var(--code-bg); +} + +span.comment { + color: var(--code-comment); +} + +span.keyword { + color: var(--code-keyword); +} + +span.preprocessor { + color: var(--code-preprocessor); +} + +span.keywordtype { + color: var(--code-keywordtype); +} + +span.stringliteral { + color: var(--code-text); +} + +span.mlabel { + background-color: var(--code-text); + color: var(--code-bg); + border-top: none; + border-left: none; + border-right: none; + border-bottom: none; + padding: 10px; + border-radius: 0px; +} + +div.fragment > div.line > a.code { + color: var(--code-link); +} + +span.lineno, span.lineno>* { + color: var(--code-line); + border-right: none; + background-color: var(--code-bg); +} + +span.lineno a { + background-color: var(--code-line-bg); +} + +span.lineno a:hover { + color: var(--bg3font); + background-color: var(--code-line-bg); +} + +code { + background-color: #eee; + color: black; +} + +/***********************************/ + +/************* directory ***********/ + +/***********************************/ + +.directory tr.even { + background-color: inherit; +} + +.iconfclosed { + background-image: url(closed-folder.png); + margin-right: 10px; +} + +.iconfopen { + background-image: url(opened-folder.png); + margin-right: 10px; +} + +.icondoc { + background-image: url(document.png); + margin-right: 10px; +} + +.arrow { + color: #7d7d7d; +} + +.icona { + vertical-align: middle; + margin-right: 5px; +} + +.icon { + background-color: var(--icon-bg); + color: var(--icon-font); + display: table-cell; + vertical-align: middle; + height: 20px; + width: 20px; +} + +div.ah { + background-color: var(--qindex-icon-bg); + color: var(--qindex-icon-font); + text-align: center; + background-image: none; + -webkit-box-shadow: none; + box-shadow: none; + -webkit-border-radius: 0px; + border-radius: 0px; + border: none; +} + +div.qindex { + background-color: var(--qindex-menu-bg); + border: none; + padding: 20px; +} + +a.qindex { + color: var(--qindex-menu-font); + font-weight: normal; + font-size: 20px; +} + +a:hover.qindex { + color: var(--qindex-menu-font-hover); +} + +a:visited.qindex { + color: var(--qindex-menu-font); +} + +table.classindex { + margin-top: 30px; + margin-bottom: 30px; +} + +table.classindex a.el { + font-weight: normal; +} + +table.params { + margin-top:1em; +} + +#titlearea > table { + margin-top:0px; +} + +table.directory > tbody > tr { + border-top: thin solid var(--nav-tree-bg); + border-bottom: thin solid var(--nav-tree-bg); +} + +/***********************************/ + +/************** footer *************/ + +/***********************************/ + +div.directory { + border-top: 1px solid var(--bgborder); + border-bottom: none; + margin: 20px 0px; +} + +div.directory a.el { + font-weight: normal; +} + +div.directory>table { + margin: 20px 0px; +} + +hr.footer { + border: none; +} + +.contents>hr { + border-top: 0px; +} + +/***********************************/ + +/*********** memberdecls ***********/ + +/***********************************/ + +.memItemLeft, .memItemRight { + padding: 15px 30px; + background-color: inherit; +} + +.mdescRight { + padding: 0px 30px 10px 30px; +} + +.memberdecls * { + background-color: inherit; +} + +.memSeparator { + border-bottom: 1px solid var(--bgborder2); +} + +.memTemplParams { + color: var(--bgfont); +} + +/***********************************/ + +/*********** nav-tree ***********/ + +/***********************************/ + +#nav-tree-contents { + background-color: var(--nav-tree-bg); + margin: 0px; +} + +#side-nav, #nav-tree { + background-image: none; + background-color: var(--nav-tree-bg); +} + +#nav-tree .item { + background-color: var(--nav-tree-bg); + font-family: Arial; + text-shadow: none; + font-size: 90%; + font-weight: 700; + padding: 0.5em; + color: var(--nav-tree-font); +} + +#nav-tree .arrow { + color: var(--nav-tree-font); +} + +#nav-tree .selected { + background-image: none; + background-color: var(--nav-tree-bg-selected); +} + +#nav-tree .selected a { + color: var(--nav-tree-font-selected); +} + +#nav-tree .item:hover { + background-color: var(--nav-tree-bg-hover); + color: var(--nav-tree-font-hover); +} + +#nav-tree .item a:hover { + color: var(--nav-tree-font-hover); +} + +#side-nav .ui-resizable-e { + background-image: none; + background-color: var(--nav-tree-bg); +} + +#nav-sync { + background-color: transparent; +} + +#nav-sync>img { + content: url(off_sync.png); +} + +#nav-sync.sync>img { + content: url(on_sync.png); +} + +div.toc { + margin: 1em ; + margin-top: 15em; +} + +/***********************************/ + +/*********** Plant UML ***********/ + +/***********************************/ + +.plantumlgraph > img { + width: 80%; +}