Author: Sam McCall Date: 2020-04-17T01:00:42+02:00 New Revision: b0c4dfb3b160ecde23e668e773d340171880302c
URL: https://github.com/llvm/llvm-project/commit/b0c4dfb3b160ecde23e668e773d340171880302c DIFF: https://github.com/llvm/llvm-project/commit/b0c4dfb3b160ecde23e668e773d340171880302c.diff LOG: [clangd] Print PID on windows too Added: Modified: clang-tools-extra/clangd/tool/ClangdMain.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/tool/ClangdMain.cpp b/clang-tools-extra/clangd/tool/ClangdMain.cpp index a8d8f95ce805..92e46a662953 100644 --- a/clang-tools-extra/clangd/tool/ClangdMain.cpp +++ b/clang-tools-extra/clangd/tool/ClangdMain.cpp @@ -570,10 +570,7 @@ clangd accepts flags on the commandline, and in the CLANGD_FLAGS environment var LoggingSession LoggingSession(Logger); // Write some initial logs before we start doing any real work. log("{0}", clang::getClangToolFullVersion("clangd")); -// FIXME: abstract this better, and print PID on windows too. -#ifndef _WIN32 - log("PID: {0}", getpid()); -#endif + log("PID: {0}", llvm::sys::Process::getProcessId()); { SmallString<128> CWD; if (auto Err = llvm::sys::fs::current_path(CWD)) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits