From: Duncan P. N. Exon Smith Date: Fri, 6 Nov 2020 17:40:43 +0000 (-0500) Subject: Frontend: Skip namespace around createVFSFromCompilerInvocation definition, NFC X-Git-Tag: llvmorg-13-init~6358 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e9af3d47847c68b0ffa8a062ae029702b06214d;p=platform%2Fupstream%2Fllvm.git Frontend: Skip namespace around createVFSFromCompilerInvocation definition, NFC Qualify definitions with `clang::` rather than opening/closing a namespace. Differential Revision: https://reviews.llvm.org/D90957 --- 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 -createVFSFromCompilerInvocation(const CompilerInvocation &CI, - DiagnosticsEngine &Diags) { +clang::createVFSFromCompilerInvocation(const CompilerInvocation &CI, + DiagnosticsEngine &Diags) { return createVFSFromCompilerInvocation(CI, Diags, llvm::vfs::getRealFileSystem()); } -IntrusiveRefCntPtr createVFSFromCompilerInvocation( +IntrusiveRefCntPtr +clang::createVFSFromCompilerInvocation( const CompilerInvocation &CI, DiagnosticsEngine &Diags, IntrusiveRefCntPtr BaseFS) { if (CI.getHeaderSearchOpts().VFSOverlayFiles.empty()) @@ -4061,5 +4060,3 @@ IntrusiveRefCntPtr createVFSFromCompilerInvocation( } return Result; } - -} // namespace clang