]> granicus.if.org Git - clang/commit
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)
commitef858170ac4ee33edebe4afdadaec624325e7aa3
tree2ac2f2e9947d707bca25570a1571a47212311ad4
parent37521757fa2168cc9b401c37069623f19d07b0b7
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344140 91177308-0d34-0410-b5e6-96231b3b80d8
67 files changed:
include/clang/Basic/FileManager.h
include/clang/Basic/FileSystemStatCache.h
include/clang/Basic/VirtualFileSystem.h [deleted file]
include/clang/Driver/Distro.h
include/clang/Driver/Driver.h
include/clang/Driver/ToolChain.h
include/clang/Format/Format.h
include/clang/Frontend/ASTUnit.h
include/clang/Frontend/CompilerInstance.h
include/clang/Frontend/CompilerInvocation.h
include/clang/Frontend/PrecompiledPreamble.h
include/clang/Frontend/Utils.h
include/clang/Tooling/StandaloneExecution.h
include/clang/Tooling/Tooling.h
lib/Basic/CMakeLists.txt
lib/Basic/FileManager.cpp
lib/Basic/FileSystemStatCache.cpp
lib/Basic/SourceManager.cpp
lib/Basic/VirtualFileSystem.cpp [deleted file]
lib/Driver/Distro.cpp
lib/Driver/Driver.cpp
lib/Driver/ToolChain.cpp
lib/Driver/ToolChains/BareMetal.cpp
lib/Driver/ToolChains/CommonArgs.cpp
lib/Driver/ToolChains/Cuda.cpp
lib/Driver/ToolChains/Darwin.cpp
lib/Driver/ToolChains/FreeBSD.cpp
lib/Driver/ToolChains/Gnu.cpp
lib/Driver/ToolChains/Hexagon.cpp
lib/Driver/ToolChains/Linux.cpp
lib/Driver/ToolChains/Minix.cpp
lib/Format/Format.cpp
lib/Frontend/ASTUnit.cpp
lib/Frontend/CacheTokens.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/CreateInvocationFromCommandLine.cpp
lib/Frontend/FrontendAction.cpp
lib/Frontend/PrecompiledPreamble.cpp
lib/Index/SimpleFormatContext.h
lib/Lex/HeaderSearch.cpp
lib/Lex/ModuleMap.cpp
lib/Lex/PPLexerChange.cpp
lib/Lex/PTHLexer.cpp
lib/Sema/SemaCodeComplete.cpp
lib/Serialization/ModuleManager.cpp
lib/Tooling/Core/Replacement.cpp
lib/Tooling/StandaloneExecution.cpp
lib/Tooling/Tooling.cpp
tools/clang-format/ClangFormat.cpp
tools/driver/cc1gen_reproducer_main.cpp
tools/libclang/BuildSystem.cpp
unittests/AST/ASTImporterTest.cpp
unittests/AST/CommentTextTest.cpp
unittests/Basic/CMakeLists.txt
unittests/Basic/FileManagerTest.cpp
unittests/Basic/VirtualFileSystemTest.cpp [deleted file]
unittests/Driver/DistroTest.cpp
unittests/Driver/ToolChainTest.cpp
unittests/Format/FormatTest.cpp
unittests/Index/IndexTests.cpp
unittests/Lex/HeaderSearchTest.cpp
unittests/Lex/PPCallbacksTest.cpp
unittests/Rename/ClangRenameTest.h
unittests/Tooling/RefactoringTest.cpp
unittests/Tooling/RewriterTestContext.h
unittests/Tooling/ToolingTest.cpp