Probably not essential as afaik only one check uses this field. but still good to have consistent behaviour.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/tool/ClangdMain.cpp | ||
---|---|---|
813 | do you think we should #ifdef this for windows? maybe like User = llvm::sys::Process::GetEnv( #ifdef _WIN32 "USERNAME" #else "USER" ) (or maybe always query USER but only query USERNAME on windows, or something else?) | |
814 | I think this is meant to be USERNAME? |
Comment Actions
Still LG
clang-tools-extra/clangd/tool/ClangdMain.cpp | ||
---|---|---|
813 | OK. I'd still suggest #ifdefing the USERNAME part, since that's not meaningful in any sense outside windows. |
do you think we should #ifdef this for windows?
maybe like
(or maybe always query USER but only query USERNAME on windows, or something else?)