porglezomp created this revision. porglezomp added reviewers: hokein, sammccall, dexonsmith. Herald added a project: All. porglezomp requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
This is necessary in order to pick up the default C/C++ standard from the CLANG_DEFAULT_STD_C(XX) defines. This fixes a bug that was introduced when this default language standard code was moved from Frontend to Basic, making compilers ignore the configured default language version override. Fixes a bug introduced by D121375 <https://reviews.llvm.org/D121375>. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D124974 Files: clang/lib/Basic/LangStandards.cpp Index: clang/lib/Basic/LangStandards.cpp =================================================================== --- clang/lib/Basic/LangStandards.cpp +++ clang/lib/Basic/LangStandards.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include "clang/Basic/LangStandard.h" +#include "clang/Config/config.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/ADT/Triple.h" #include "llvm/Support/ErrorHandling.h"
Index: clang/lib/Basic/LangStandards.cpp =================================================================== --- clang/lib/Basic/LangStandards.cpp +++ clang/lib/Basic/LangStandards.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include "clang/Basic/LangStandard.h" +#include "clang/Config/config.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/ADT/Triple.h" #include "llvm/Support/ErrorHandling.h"
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits