]> granicus.if.org Git - clang/commit
[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)
commit78e14633a4c4dad11a3327e56bda2703f4767491
tree654b1d8afeff3b538ad74732be35914b89b557c1
parent4ede2bf4c9918758be3388ab015438db11146af4
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335063 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticFrontendKinds.td
include/clang/Lex/HeaderSearch.h
lib/Frontend/InitHeaderSearch.cpp
test/Frontend/warning-stdlibcxx-darwin.cpp [new file with mode: 0644]