xtd 0.2.0
Loading...
Searching...
No Matches
compiler_id.h
Go to the documentation of this file.
1
4#pragma once
5#include "enum.h"
6
8namespace xtd {
20 enum class compiler_id {
22 unknown = -1,
24 msvc,
26 clang,
28 gcc,
33 microsoft_visual_studio [[deprecated("Replaced by xtd::compiler_id::msvc - Will be removed in version 0.4.0.")]] = msvc,
34 };
35}
36
38template<> struct xtd::enum_register<xtd::compiler_id> {
39 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::compiler_id> {{xtd::compiler_id::unknown, "unknown"}, {xtd::compiler_id::msvc, "msvc"}, {xtd::compiler_id::clang, "clang"}, {xtd::compiler_id::gcc, "gcc"}, {xtd::compiler_id::apple_clang, "apple_clang"}};}
40};
Contains enum_ and enum_ut_ keywords.
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:22
compiler_id
Identifies the compiler, supported by an assembly.
Definition compiler_id.h:20
@ unknown
The processor architecture is unknown.
@ clang
The compiler is clang.
@ msvc
The compiler is Microsoft Visual Studio.
@ apple_clang
The compiler is Apple clang.
@ unknown
The compiler is unknown.
@ gcc
The compiler is gcc.
@ microsoft_visual_studio
The compiler is Microsoft Visual Studio.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38