[Darwin] Add a warning for missing include path for libstdc++
authorAlex Lorenz <arphaman@gmail.com>
Tue, 19 Jun 2018 17:56:03 +0000 (17:56 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 19 Jun 2018 17:56:03 +0000 (17:56 +0000)
commit456699ddd1eddad07e3e85ae082e54b6a6221a6d
treeb0e33fc1d285c7a97f36785cc242dfb5a8a8eac4
parent7ffa97699355822eaa42d79216ff917036167f9b
[Darwin] Add a warning for missing include path for libstdc++

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: 335063
clang/include/clang/Basic/DiagnosticFrontendKinds.td
clang/include/clang/Lex/HeaderSearch.h
clang/lib/Frontend/InitHeaderSearch.cpp
clang/test/Frontend/warning-stdlibcxx-darwin.cpp [new file with mode: 0644]