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 {
18 enum class compiler_id {
20 unknown = -1,
22 msvc,
24 clang,
26 gcc,
31 microsoft_visual_studio [[deprecated("Replaced by xtd::compiler_id::msvc - Will be removed in version 0.4.0")]] = msvc,
32 };
33}
34
36template<> struct xtd::enum_register<xtd::compiler_id> {
37 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"}};}
38};
Contains enum_ and enum_ut_ keywords.
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:19
compiler_id
Identifies the compiler, supported by an assembly.
Definition compiler_id.h:18
@ 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:36