QwAnalysis
3.5.1/CompilerIdCXX/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

#define ARCHITECTURE_ID   ""

Definition at line 430 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.

#define COMPILER_ID   ""

Definition at line 263 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.

#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 434 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.

#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 445 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.

#define PLATFORM_ID   ""

Definition at line 380 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.

#define STRINGIFY (   X)    STRINGIFY_HELPER(X)

Definition at line 284 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.

#define STRINGIFY_HELPER (   X)    #X

Definition at line 283 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.

Function Documentation

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

Definition at line 513 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.

References info_compiler, info_language_dialect_default, and info_platform.

514 {
515  int require = 0;
516  require += info_compiler[argc];
517  require += info_platform[argc];
518 #ifdef COMPILER_VERSION_MAJOR
519  require += info_version[argc];
520 #endif
521 #ifdef SIMULATE_ID
522  require += info_simulate[argc];
523 #endif
524 #ifdef SIMULATE_VERSION_MAJOR
525  require += info_simulate_version[argc];
526 #endif
527 #if defined(__CRAYXE) || defined(__CRAYXC)
528  require += info_cray[argc];
529 #endif
530  require += info_language_dialect_default[argc];
531  (void)argv;
532  return require;
533 }
char const * info_compiler
char const * info_platform
const char * info_language_dialect_default

Variable Documentation

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

Definition at line 496 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.

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

Definition at line 270 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.

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

Definition at line 501 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.

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

Definition at line 495 of file 3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.