diff options
author | Alex Lorenz <arphaman@gmail.com> | 2018-06-19 17:56:03 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2018-06-19 17:56:03 +0000 |
commit | 78e14633a4c4dad11a3327e56bda2703f4767491 (patch) | |
tree | 654b1d8afeff3b538ad74732be35914b89b557c1 /include/clang/Lex | |
parent | 4ede2bf4c9918758be3388ab015438db11146af4 (diff) |
[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
Diffstat (limited to 'include/clang/Lex')
-rw-r--r-- | include/clang/Lex/HeaderSearch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Lex/HeaderSearch.h b/include/clang/Lex/HeaderSearch.h index 3d13162da7..fd52000954 100644 --- a/include/clang/Lex/HeaderSearch.h +++ b/include/clang/Lex/HeaderSearch.h @@ -272,6 +272,8 @@ public: FileManager &getFileMgr() const { return FileMgr; } + DiagnosticsEngine &getDiags() const { return Diags; } + /// Interface for setting the file search paths. void SetSearchPaths(const std::vector<DirectoryLookup> &dirs, unsigned angledDirIdx, unsigned systemDirIdx, |