Recommit r335063: [Darwin] Add a warning for missing include path for libstdc++
authorAlex Lorenz <arphaman@gmail.com>
Tue, 19 Jun 2018 22:47:53 +0000 (22:47 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 19 Jun 2018 22:47:53 +0000 (22:47 +0000)
commit1f79297ebea4480f7ec594ae0d290984053ab9c8
treee89a9d416d813101ca31d4cc542fbe81d4513302
parent77920a49282b5b46aad575d6e83908fb0ff9f6e0
Recommit r335063: [Darwin] Add a warning for missing include path for libstdc++

The recommit ensures that the tests that failed on bots don't trigger the warning.

Xcode 10 removes support for libstdc++, but the users just get a confusing
include not file warning when including an STL header (when building for iOS6
which uses libstdc++ by default for example).
This patch adds a new warning that lets the user know that the libstdc++ include
path was not found to ensure that the user is more aware of why the error occurs.

rdar://40830462

Differential Revision: https://reviews.llvm.org/D48297

llvm-svn: 335081
clang/include/clang/Basic/DiagnosticFrontendKinds.td
clang/include/clang/Lex/HeaderSearch.h
clang/lib/Frontend/InitHeaderSearch.cpp
clang/test/CodeGenCXX/apple-kext-guard-variable.cpp
clang/test/Frontend/warning-stdlibcxx-darwin.cpp [new file with mode: 0644]
clang/test/Misc/backend-stack-frame-diagnostics.cpp