summaryrefslogtreecommitdiff
path: root/include/clang/Basic/VirtualFileSystem.h
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2014-02-24 20:56:37 +0000
committerBen Langmuir <blangmuir@apple.com>2014-02-24 20:56:37 +0000
commit02ed63841276d2205598d8a02b6ebf6e06960957 (patch)
treec8524b9e5b2dbb27b30a4e9580556dd7abc52d28 /include/clang/Basic/VirtualFileSystem.h
parentd55429f14a23e27dda52d2688e8432ae0525bc21 (diff)
downloadclang-02ed63841276d2205598d8a02b6ebf6e06960957.tar.gz
clang-02ed63841276d2205598d8a02b6ebf6e06960957.tar.bz2
clang-02ed63841276d2205598d8a02b6ebf6e06960957.tar.xz
Pass through context for DiagHandler in VFS
This allows the unit tests to not use global state when checking diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/VirtualFileSystem.h')
-rw-r--r--include/clang/Basic/VirtualFileSystem.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Basic/VirtualFileSystem.h b/include/clang/Basic/VirtualFileSystem.h
index a5f7f302f9..b592024fa9 100644
--- a/include/clang/Basic/VirtualFileSystem.h
+++ b/include/clang/Basic/VirtualFileSystem.h
@@ -166,7 +166,9 @@ llvm::sys::fs::UniqueID getNextVirtualUniqueID();
///
/// Takes ownership of \p Buffer.
IntrusiveRefCntPtr<FileSystem>
-getVFSFromYAML(llvm::MemoryBuffer *Buffer, llvm::SourceMgr::DiagHandlerTy,
+getVFSFromYAML(llvm::MemoryBuffer *Buffer,
+ llvm::SourceMgr::DiagHandlerTy DiagHandler,
+ void *DiagContext = 0,
IntrusiveRefCntPtr<FileSystem> ExternalFS = getRealFileSystem());
} // end namespace vfs