v0.14.0
Macros | Functions | Variables
CMakeCXXCompilerId.cpp File Reference

Go to the source code of this file.

Macros

#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)
 

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_dialect_default
 

Macro Definition Documentation

◆ ARCHITECTURE_ID

#define ARCHITECTURE_ID   ""

Definition at line 411 of file CMakeCXXCompilerId.cpp.

◆ COMPILER_ID

#define COMPILER_ID   ""

Definition at line 248 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 415 of file CMakeCXXCompilerId.cpp.

◆ 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 426 of file CMakeCXXCompilerId.cpp.

◆ PLATFORM_ID

#define PLATFORM_ID   ""

Definition at line 361 of file CMakeCXXCompilerId.cpp.

◆ STRINGIFY

#define STRINGIFY (   X)    STRINGIFY_HELPER(X)

Definition at line 265 of file CMakeCXXCompilerId.cpp.

◆ STRINGIFY_HELPER

#define STRINGIFY_HELPER (   X)    #X

Definition at line 264 of file CMakeCXXCompilerId.cpp.

Function Documentation

◆ main()

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

Definition at line 494 of file CMakeCXXCompilerId.cpp.

495 {
496  int require = 0;
497  require += info_compiler[argc];
498  require += info_platform[argc];
499 #ifdef COMPILER_VERSION_MAJOR
500  require += info_version[argc];
501 #endif
502 #ifdef SIMULATE_ID
503  require += info_simulate[argc];
504 #endif
505 #ifdef SIMULATE_VERSION_MAJOR
506  require += info_simulate_version[argc];
507 #endif
508  require += info_language_dialect_default[argc];
509  (void)argv;
510  return require;
511 }

Variable Documentation

◆ info_arch

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

Definition at line 477 of file CMakeCXXCompilerId.cpp.

◆ info_compiler

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

Definition at line 255 of file CMakeCXXCompilerId.cpp.

◆ info_language_dialect_default

const char* info_language_dialect_default
Initial value:
= "INFO" ":" "dialect_default["
"98"
"]"

Definition at line 482 of file CMakeCXXCompilerId.cpp.

◆ info_platform

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

Definition at line 476 of file CMakeCXXCompilerId.cpp.

info_compiler
char const * info_compiler
Definition: CMakeCXXCompilerId.cpp:255
convert.n
n
Definition: convert.py:82
info_platform
char const * info_platform
Definition: CMakeCXXCompilerId.cpp:476
info_language_dialect_default
const char * info_language_dialect_default
Definition: CMakeCXXCompilerId.cpp:482