[Clang] Add __STDCPP_THREADS__ to standard predefine macros
authorZequan Wu <zequanwu@google.com>
Wed, 18 Nov 2020 23:26:21 +0000 (15:26 -0800)
committerZequan Wu <zequanwu@google.com>
Mon, 23 Nov 2020 00:05:53 +0000 (16:05 -0800)
commit15a3ae1ab1a64cc62041c32ba54914a9dd7b8361
tree2bdad503bc071f9b6de8cce66e76a2f7ba60bdf7
parentc8c3a411c50f541ce5362bd60ee3f8fe43ac2722
[Clang] Add __STDCPP_THREADS__ to standard predefine macros

According to https://eel.is/c++draft/cpp.predefined#2.6, `__STDCPP_THREADS__` is a predefined macro.

Differential Revision: https://reviews.llvm.org/D91747
clang/include/clang/Basic/CodeGenOptions.h
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Basic/LangOptions.h
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/InitPreprocessor.cpp
clang/test/CXX/cpp/cpp.predefined/p2.cpp [new file with mode: 0644]
clang/test/Preprocessor/init-aarch64.c