[clang] Include clang config.h in LangStandards.cpp
authorCassie Jones <code@witchoflight.com>
Sat, 14 May 2022 08:47:41 +0000 (01:47 -0700)
committerCassie Jones <code@witchoflight.com>
Sat, 14 May 2022 08:47:41 +0000 (01:47 -0700)
commit2e270947963659cf9db4099f42387144feb10fec
treeef6cb3260ee7d6a291514f26bd210cb2a173a158
parent6f5f847a36af2f2e9dfce4ed99f1a243161c7d5d
[clang] Include clang config.h in LangStandards.cpp

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.

Reviewed By: hokein, dexonsmith

Differential Revision: https://reviews.llvm.org/D124974
clang/lib/Basic/LangStandards.cpp