TRLC Platform Library
1.0.0
Header-only C++ library for compile-time platform detection and abstraction
|
Consolidated compiler information structure. More...
#include <trlc/platform/compiler.hpp>
Static Public Member Functions | |
static bool | isAtLeast (const CompilerVersion &min_version) const |
Check if compiler is at least the specified version. More... | |
static bool | isGccCompatible () const |
Check if this is a GCC-compatible compiler. More... | |
static bool | isClangCompatible () const |
Check if this is a Clang-compatible compiler. More... | |
Public Attributes | |
CompilerType | type |
Detected compiler type. More... | |
CompilerVersion | version |
Compiler version information. More... | |
const char * | name |
Human-readable compiler name. More... | |
bool | has_builtin_attribute |
Supports __has_builtin attributes. More... | |
bool | has_inline_assembly |
Supports inline assembly. More... | |
bool | has_color_diagnostics |
Supports colored diagnostic output. More... | |
Consolidated compiler information structure.
This structure aggregates all compiler detection results into a single convenient structure for reporting and analysis purposes.
Definition at line 472 of file compiler.hpp.
|
inlinestatic |
Check if compiler is at least the specified version.
min_version | Minimum version to check against |
Definition at line 485 of file compiler.hpp.
|
inlinestatic |
Check if this is a Clang-compatible compiler.
Definition at line 502 of file compiler.hpp.
|
inlinestatic |
Check if this is a GCC-compatible compiler.
Definition at line 493 of file compiler.hpp.
bool trlc::platform::CompilerInfo::has_builtin_attribute |
Supports __has_builtin attributes.
Definition at line 476 of file compiler.hpp.
bool trlc::platform::CompilerInfo::has_color_diagnostics |
Supports colored diagnostic output.
Definition at line 478 of file compiler.hpp.
bool trlc::platform::CompilerInfo::has_inline_assembly |
Supports inline assembly.
Definition at line 477 of file compiler.hpp.
const char* trlc::platform::CompilerInfo::name |
Human-readable compiler name.
Definition at line 475 of file compiler.hpp.
CompilerType trlc::platform::CompilerInfo::type |
Detected compiler type.
Definition at line 473 of file compiler.hpp.
CompilerVersion trlc::platform::CompilerInfo::version |
Compiler version information.
Definition at line 474 of file compiler.hpp.