Lift VFS from clang to llvm (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 10 Oct 2018 13:27:25 +0000 (13:27 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 10 Oct 2018 13:27:25 +0000 (13:27 +0000)
commitfc51490baf1d6ad5796d8cb8bb0792de13ce8fce
treebae0cfa9002258ffad07524d654245ed3b918cb1
parentc616a7236c83994cacdbc13e37269bbc9598093d
Lift VFS from clang to llvm (NFC)

This patch moves the virtual file system form clang to llvm so it can be
used by more projects.

Concretely the patch:
 - Moves VirtualFileSystem.{h|cpp} from clang/Basic to llvm/Support.
 - Moves the corresponding unit test from clang to llvm.
 - Moves the vfs namespace from clang::vfs to llvm::vfs.
 - Formats the lines affected by this change, mostly this is the result of
   the added llvm namespace.

RFC on the mailing list:
http://lists.llvm.org/pipermail/llvm-dev/2018-October/126657.html

Differential revision: https://reviews.llvm.org/D52783

llvm-svn: 344140
91 files changed:
clang-tools-extra/clang-tidy/ClangTidy.cpp
clang-tools-extra/clang-tidy/ClangTidy.h
clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
clang-tools-extra/clang-tidy/ClangTidyOptions.h
clang-tools-extra/clangd/ClangdUnit.cpp
clang-tools-extra/clangd/ClangdUnit.h
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/CodeComplete.h
clang-tools-extra/clangd/Compiler.cpp
clang-tools-extra/clangd/Compiler.h
clang-tools-extra/clangd/FS.cpp
clang-tools-extra/clangd/FS.h
clang-tools-extra/clangd/FSProvider.h
clang-tools-extra/clangd/Headers.h
clang-tools-extra/unittests/change-namespace/ChangeNamespaceTests.cpp
clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h
clang-tools-extra/unittests/clangd/ClangdTests.cpp
clang-tools-extra/unittests/clangd/FSTests.cpp
clang-tools-extra/unittests/clangd/SymbolCollectorTests.cpp
clang-tools-extra/unittests/clangd/TestFS.h
clang-tools-extra/unittests/include-fixer/IncludeFixerTest.cpp
clang-tools-extra/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp
clang/include/clang/Basic/FileManager.h
clang/include/clang/Basic/FileSystemStatCache.h
clang/include/clang/Driver/Distro.h
clang/include/clang/Driver/Driver.h
clang/include/clang/Driver/ToolChain.h
clang/include/clang/Format/Format.h
clang/include/clang/Frontend/ASTUnit.h
clang/include/clang/Frontend/CompilerInstance.h
clang/include/clang/Frontend/CompilerInvocation.h
clang/include/clang/Frontend/PrecompiledPreamble.h
clang/include/clang/Frontend/Utils.h
clang/include/clang/Tooling/StandaloneExecution.h
clang/include/clang/Tooling/Tooling.h
clang/lib/Basic/CMakeLists.txt
clang/lib/Basic/FileManager.cpp
clang/lib/Basic/FileSystemStatCache.cpp
clang/lib/Basic/SourceManager.cpp
clang/lib/Driver/Distro.cpp
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/BareMetal.cpp
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/lib/Driver/ToolChains/Cuda.cpp
clang/lib/Driver/ToolChains/Darwin.cpp
clang/lib/Driver/ToolChains/FreeBSD.cpp
clang/lib/Driver/ToolChains/Gnu.cpp
clang/lib/Driver/ToolChains/Hexagon.cpp
clang/lib/Driver/ToolChains/Linux.cpp
clang/lib/Driver/ToolChains/Minix.cpp
clang/lib/Format/Format.cpp
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Frontend/CacheTokens.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
clang/lib/Frontend/FrontendAction.cpp
clang/lib/Frontend/PrecompiledPreamble.cpp
clang/lib/Index/SimpleFormatContext.h
clang/lib/Lex/HeaderSearch.cpp
clang/lib/Lex/ModuleMap.cpp
clang/lib/Lex/PPLexerChange.cpp
clang/lib/Lex/PTHLexer.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/lib/Serialization/ModuleManager.cpp
clang/lib/Tooling/Core/Replacement.cpp
clang/lib/Tooling/StandaloneExecution.cpp
clang/lib/Tooling/Tooling.cpp
clang/tools/clang-format/ClangFormat.cpp
clang/tools/driver/cc1gen_reproducer_main.cpp
clang/tools/libclang/BuildSystem.cpp
clang/unittests/AST/ASTImporterTest.cpp
clang/unittests/AST/CommentTextTest.cpp
clang/unittests/Basic/CMakeLists.txt
clang/unittests/Basic/FileManagerTest.cpp
clang/unittests/Driver/DistroTest.cpp
clang/unittests/Driver/ToolChainTest.cpp
clang/unittests/Format/FormatTest.cpp
clang/unittests/Index/IndexTests.cpp
clang/unittests/Lex/HeaderSearchTest.cpp
clang/unittests/Lex/PPCallbacksTest.cpp
clang/unittests/Rename/ClangRenameTest.h
clang/unittests/Tooling/RefactoringTest.cpp
clang/unittests/Tooling/RewriterTestContext.h
clang/unittests/Tooling/ToolingTest.cpp
llvm/include/llvm/Support/VirtualFileSystem.h [moved from clang/include/clang/Basic/VirtualFileSystem.h with 96% similarity]
llvm/lib/Support/CMakeLists.txt
llvm/lib/Support/VirtualFileSystem.cpp [moved from clang/lib/Basic/VirtualFileSystem.cpp with 96% similarity]
llvm/unittests/Support/CMakeLists.txt
llvm/unittests/Support/VirtualFileSystemTest.cpp [moved from clang/unittests/Basic/VirtualFileSystemTest.cpp with 89% similarity]