IoT25S IoT Klocka 0.1
Grupparbete för IoT25S på Jensen YH
Loading...
Searching...
No Matches
CMakeCXXCompilerId.cpp File Reference

Go to the source code of this file.

Macros

#define __has_include(x)   0
 
#define COMPILER_ID   ""
 
#define STRINGIFY_HELPER(X)   #X
 
#define STRINGIFY(X)   STRINGIFY_HELPER(X)
 
#define PLATFORM_ID
 
#define ARCHITECTURE_ID
 
#define DEC(n)
 
#define HEX(n)
 
#define CXX_STD   __cplusplus
 

Functions

int main (int argc, char *argv[])
 

Variables

char const * info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"
 
char const * info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"
 
char const * info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"
 
const char * info_language_standard_default
 
const char * info_language_extensions_default
 

Macro Definition Documentation

◆ __has_include

#define __has_include (   x)    0

Definition at line 11 of file CMakeCXXCompilerId.cpp.

◆ ARCHITECTURE_ID

#define ARCHITECTURE_ID

Definition at line 715 of file CMakeCXXCompilerId.cpp.

◆ COMPILER_ID

#define COMPILER_ID   ""

Definition at line 426 of file CMakeCXXCompilerId.cpp.

◆ CXX_STD

#define CXX_STD   __cplusplus

Definition at line 813 of file CMakeCXXCompilerId.cpp.

◆ DEC

#define DEC (   n)
Value:
('0' + (((n) / 10000000)%10)), \
('0' + (((n) / 1000000)%10)), \
('0' + (((n) / 100000)%10)), \
('0' + (((n) / 10000)%10)), \
('0' + (((n) / 1000)%10)), \
('0' + (((n) / 100)%10)), \
('0' + (((n) / 10)%10)), \
('0' + ((n) % 10))

Definition at line 719 of file CMakeCXXCompilerId.cpp.

741 :" "compiler_version[" COMPILER_VERSION "]";
742
743/* Construct a string literal encoding the version number components. */
744#elif defined(COMPILER_VERSION_MAJOR)
745char const info_version[] = {
746 'I', 'N', 'F', 'O', ':',
747 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
748 COMPILER_VERSION_MAJOR,
749# ifdef COMPILER_VERSION_MINOR
750 '.', COMPILER_VERSION_MINOR,
751# ifdef COMPILER_VERSION_PATCH
752 '.', COMPILER_VERSION_PATCH,
753# ifdef COMPILER_VERSION_TWEAK
754 '.', COMPILER_VERSION_TWEAK,
755# endif
756# endif
757# endif
758 ']','\0'};
759#endif
760
761/* Construct a string literal encoding the internal version number. */
762#ifdef COMPILER_VERSION_INTERNAL
763char const info_version_internal[] = {
764 'I', 'N', 'F', 'O', ':',
765 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
766 'i','n','t','e','r','n','a','l','[',
767 COMPILER_VERSION_INTERNAL,']','\0'};
768#elif defined(COMPILER_VERSION_INTERNAL_STR)
769char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
770#endif
771
772/* Construct a string literal encoding the version number components. */
773#ifdef SIMULATE_VERSION_MAJOR
774char const info_simulate_version[] = {
775 'I', 'N', 'F', 'O', ':',
776 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
777 SIMULATE_VERSION_MAJOR,
778# ifdef SIMULATE_VERSION_MINOR
779 '.', SIMULATE_VERSION_MINOR,
780# ifdef SIMULATE_VERSION_PATCH
781 '.', SIMULATE_VERSION_PATCH,
782# ifdef SIMULATE_VERSION_TWEAK
783 '.', SIMULATE_VERSION_TWEAK,
784# endif
785# endif
786# endif
787 ']','\0'};
788#endif
789
790/* Construct the string literal in pieces to prevent the source from
791 getting matched. Store it in a pointer rather than an array
792 because some compilers will just produce instructions to fill the
793 array rather than assigning a pointer to a static array. */
794char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
795char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
796
797
798
799#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
800# if defined(__INTEL_CXX11_MODE__)
801# if defined(__cpp_aggregate_nsdmi)
802# define CXX_STD 201402L
803# else
804# define CXX_STD 201103L
805# endif
806# else
807# define CXX_STD 199711L
808# endif
809#elif defined(_MSC_VER) && defined(_MSVC_LANG)
810# define CXX_STD _MSVC_LANG
811#else
812# define CXX_STD __cplusplus
813#endif
814
815const char* info_language_standard_default = "INFO" ":" "standard_default["
816#if CXX_STD > 202002L
817 "23"
818#elif CXX_STD > 201703L
819 "20"
820#elif CXX_STD >= 201703L
821 "17"
822#elif CXX_STD >= 201402L
823 "14"
824#elif CXX_STD >= 201103L
825 "11"
826#else
827 "98"
828#endif
829"]";
830
831const char* info_language_extensions_default = "INFO" ":" "extensions_default["
832#if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
833 defined(__TI_COMPILER_VERSION__)) && \
834 !defined(__STRICT_ANSI__)
835 "ON"
836#else
837 "OFF"
838#endif
839"]";
840
841/*--------------------------------------------------------------------------*/
842
843int main(int argc, char* argv[])
844{
845 int require = 0;
846 require += info_compiler[argc];
847 require += info_platform[argc];
848 require += info_arch[argc];
849#ifdef COMPILER_VERSION_MAJOR
850 require += info_version[argc];
851#endif
852#ifdef COMPILER_VERSION_INTERNAL
853 require += info_version_internal[argc];
854#endif
855#ifdef SIMULATE_ID
856 require += info_simulate[argc];
857#endif
858#ifdef SIMULATE_VERSION_MAJOR
859 require += info_simulate_version[argc];
860#endif
861#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
862 require += info_cray[argc];
863#endif
864 require += info_language_standard_default[argc];
865 require += info_language_extensions_default[argc];
866 (void)argv;
867 return require;
868}

◆ HEX

#define HEX (   n)
Value:
('0' + ((n)>>28 & 0xF)), \
('0' + ((n)>>24 & 0xF)), \
('0' + ((n)>>20 & 0xF)), \
('0' + ((n)>>16 & 0xF)), \
('0' + ((n)>>12 & 0xF)), \
('0' + ((n)>>8 & 0xF)), \
('0' + ((n)>>4 & 0xF)), \
('0' + ((n) & 0xF))

Definition at line 730 of file CMakeCXXCompilerId.cpp.

◆ PLATFORM_ID

#define PLATFORM_ID

Definition at line 557 of file CMakeCXXCompilerId.cpp.

◆ STRINGIFY

#define STRINGIFY (   X)    STRINGIFY_HELPER(X)

Definition at line 447 of file CMakeCXXCompilerId.cpp.

◆ STRINGIFY_HELPER

#define STRINGIFY_HELPER (   X)    #X

Definition at line 446 of file CMakeCXXCompilerId.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 844 of file CMakeCXXCompilerId.cpp.

845{
846 int require = 0;
847 require += info_compiler[argc];
848 require += info_platform[argc];
849 require += info_arch[argc];
850#ifdef COMPILER_VERSION_MAJOR
851 require += info_version[argc];
852#endif
853#ifdef COMPILER_VERSION_INTERNAL
854 require += info_version_internal[argc];
855#endif
856#ifdef SIMULATE_ID
857 require += info_simulate[argc];
858#endif
859#ifdef SIMULATE_VERSION_MAJOR
860 require += info_simulate_version[argc];
861#endif
862#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
863 require += info_cray[argc];
864#endif
865 require += info_language_standard_default[argc];
866 require += info_language_extensions_default[argc];
867 (void)argv;
868 return require;
869}
char const * info_compiler
const char * info_language_extensions_default
char const * info_platform
const char * info_language_standard_default
char const * info_arch

Variable Documentation

◆ info_arch

char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"

Definition at line 796 of file CMakeCXXCompilerId.cpp.

◆ info_compiler

char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"

Definition at line 433 of file CMakeCXXCompilerId.cpp.

◆ info_language_extensions_default

const char* info_language_extensions_default
Initial value:
= "INFO" ":" "extensions_default["
"OFF"
"]"

Definition at line 832 of file CMakeCXXCompilerId.cpp.

◆ info_language_standard_default

const char* info_language_standard_default
Initial value:
= "INFO" ":" "standard_default["
"98"
"]"

Definition at line 816 of file CMakeCXXCompilerId.cpp.

◆ info_platform

char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"

Definition at line 795 of file CMakeCXXCompilerId.cpp.