diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-11-06 12:40:43 -0500 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-11-11 16:15:06 -0500 |
commit | 4e9af3d47847c68b0ffa8a062ae029702b06214d (patch) | |
tree | 09754a6733774d927890b1cf50d6c4982310a430 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b781a04f6aff145f43b6f87c5b987159c2b64123 (diff) | |
download | llvm-4e9af3d47847c68b0ffa8a062ae029702b06214d.zip llvm-4e9af3d47847c68b0ffa8a062ae029702b06214d.tar.gz llvm-4e9af3d47847c68b0ffa8a062ae029702b06214d.tar.bz2 |
Frontend: Skip namespace around createVFSFromCompilerInvocation definition, NFC
Qualify definitions with `clang::` rather than opening/closing a namespace.
Differential Revision: https://reviews.llvm.org/D90957
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index d3516f5..b2ce88f 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -4024,16 +4024,15 @@ void CompilerInvocation::generateCC1CommandLine( #undef OPTION_WITH_MARSHALLING_FLAG } -namespace clang { - IntrusiveRefCntPtr<llvm::vfs::FileSystem> -createVFSFromCompilerInvocation(const CompilerInvocation &CI, - DiagnosticsEngine &Diags) { +clang::createVFSFromCompilerInvocation(const CompilerInvocation &CI, + DiagnosticsEngine &Diags) { return createVFSFromCompilerInvocation(CI, Diags, llvm::vfs::getRealFileSystem()); } -IntrusiveRefCntPtr<llvm::vfs::FileSystem> createVFSFromCompilerInvocation( +IntrusiveRefCntPtr<llvm::vfs::FileSystem> +clang::createVFSFromCompilerInvocation( const CompilerInvocation &CI, DiagnosticsEngine &Diags, IntrusiveRefCntPtr<llvm::vfs::FileSystem> BaseFS) { if (CI.getHeaderSearchOpts().VFSOverlayFiles.empty()) @@ -4061,5 +4060,3 @@ IntrusiveRefCntPtr<llvm::vfs::FileSystem> createVFSFromCompilerInvocation( } return Result; } - -} // namespace clang |