summaryrefslogtreecommitdiffstats
path: root/include/clang/Lex
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2018-06-19 22:47:53 +0000
committerAlex Lorenz <arphaman@gmail.com>2018-06-19 22:47:53 +0000
commitcd6d4e81a71e04a91eb93878a4668844e1d2162b (patch)
tree8524645e161b2e770e2bbbba920b80df0a71ad35 /include/clang/Lex
parenta194a6649eaa8d0c410a0bd7e7ae518b15f1adec (diff)
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex')
-rw-r--r--include/clang/Lex/HeaderSearch.h2
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,