Bläddra i källkod

Capital `C` in language versions

default_compile_flags
vector-of-bool 5 år sedan
förälder
incheckning
3f3207c29a
2 ändrade filer med 11 tillägg och 12 borttagningar
  1. +10
    -11
      src/dds/toolchain/from_dds.cpp
  2. +1
    -1
      tools/msvc.dds

+ 10
- 11
src/dds/toolchain/from_dds.cpp Visa fil

@@ -29,7 +29,6 @@ toolchain dds::parse_toolchain_dds(strv str, strv context) {
}

namespace {

struct read_argv_acc {
strv my_key;
opt_str_seq& out;
@@ -203,13 +202,13 @@ toolchain dds::parse_toolchain_dds(const lm::pair_list& pairs, strv context) {
= [&] {
if (!c_version) {
return c_none;
} else if (c_version == "c89") {
} else if (c_version == "C89") {
return c89;
} else if (c_version == "c99") {
} else if (c_version == "C99") {
return c99;
} else if (c_version == "c11") {
} else if (c_version == "C11") {
return c11;
} else if (c_version == "c18") {
} else if (c_version == "C18") {
return c18;
} else {
fail(context, "Unknown C-Version '{}'", *c_version);
@@ -228,17 +227,17 @@ toolchain dds::parse_toolchain_dds(const lm::pair_list& pairs, strv context) {
= [&] {
if (!cxx_version) {
return cxx_none;
} else if (cxx_version == "c++98") {
} else if (cxx_version == "C++98") {
return cxx98;
} else if (cxx_version == "c++03") {
} else if (cxx_version == "C++03") {
return cxx03;
} else if (cxx_version == "c++11") {
} else if (cxx_version == "C++11") {
return cxx11;
} else if (cxx_version == "c++14") {
} else if (cxx_version == "C++14") {
return cxx14;
} else if (cxx_version == "c++17") {
} else if (cxx_version == "C++17") {
return cxx17;
} else if (cxx_version == "c++20") {
} else if (cxx_version == "C++20") {
return cxx20;
} else {
fail(context, "Unknown C++-Version '{}'", *cxx_version);

+ 1
- 1
tools/msvc.dds Visa fil

@@ -1,3 +1,3 @@
Compiler-ID: MSVC
C++-Version: c++17
C++-Version: C++17
Flags: /experimental:preprocessor

Laddar…
Avbryt
Spara