[clang-tools-extra] r344225 - Fix the qualification of `IntrusiveRefCntPtr` to use `llvm::`.
Chandler Carruth via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 11 01:05:10 PDT 2018
Author: chandlerc
Date: Thu Oct 11 01:05:10 2018
New Revision: 344225
URL: http://llvm.org/viewvc/llvm-project?rev=344225&view=rev
Log:
Fix the qualification of `IntrusiveRefCntPtr` to use `llvm::`.
Without this, the code only compiled if the header was included after
something introduced the alias from `clang::` to `llvm::` for this type.
Any modules build would fail here.
Modified:
clang-tools-extra/trunk/clangd/FSProvider.h
Modified: clang-tools-extra/trunk/clangd/FSProvider.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/FSProvider.h?rev=344225&r1=344224&r2=344225&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/FSProvider.h (original)
+++ clang-tools-extra/trunk/clangd/FSProvider.h Thu Oct 11 01:05:10 2018
@@ -25,13 +25,15 @@ public:
/// Context::current() will be the context passed to the clang entrypoint,
/// such as addDocument(), and will also be propagated to result callbacks.
/// Embedders may use this to isolate filesystem accesses.
- virtual IntrusiveRefCntPtr<llvm::vfs::FileSystem> getFileSystem() const = 0;
+ virtual llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
+ getFileSystem() const = 0;
};
class RealFileSystemProvider : public FileSystemProvider {
public:
// FIXME: returns the single real FS instance, which is not threadsafe.
- IntrusiveRefCntPtr<llvm::vfs::FileSystem> getFileSystem() const override {
+ llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
+ getFileSystem() const override {
return llvm::vfs::getRealFileSystem();
}
};
More information about the cfe-commits
mailing list