Author: d0k Date: Sat Oct 13 15:18:22 2018 New Revision: 344468 URL: http://llvm.org/viewvc/llvm-project?rev=344468&view=rev Log: Move some helpers from the global namespace into anonymous ones.
Modified: clang-tools-extra/trunk/clangd/ClangdServer.cpp Modified: clang-tools-extra/trunk/clangd/ClangdServer.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdServer.cpp?rev=344468&r1=344467&r2=344468&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/ClangdServer.cpp (original) +++ clang-tools-extra/trunk/clangd/ClangdServer.cpp Sat Oct 13 15:18:22 2018 @@ -72,7 +72,8 @@ public: } // namespace // Returns callbacks that can be used to update the FileIndex with new ASTs. -std::unique_ptr<ParsingCallbacks> makeUpdateCallbacks(FileIndex *FIndex) { +static std::unique_ptr<ParsingCallbacks> +makeUpdateCallbacks(FileIndex *FIndex) { struct CB : public ParsingCallbacks { CB(FileIndex *FIndex) : FIndex(FIndex) {} FileIndex *FIndex; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits