For example, template parameter might not be resolved in a broken TU,
which can result in wrong USR/SymbolID.
Details
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 19983 Build 19983: arc lint + arc unit
Event Timeline
LGTM with a minor NIT
clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp | ||
---|---|---|
88 | NIT: Maybe use clangd's log here? To get timestamps in the output, etc. |
clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp | ||
---|---|---|
88 | The default logger doesn't seem to add timestamp? I'll keep llvm::errs() here for consistency in this file. |
clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp | ||
---|---|---|
88 |
Ah, yes, it's the JSONOutput that adds timestamps.... Sorry.
We write to stderr at the bottom of the file to show errors to the user. Since our dependencies (e.g. SymbolCollector) use logs, I'd argue it's actually more consistent across the program to use log here as well. E.g. if someone adds a LoggingSession that writes timestamps, not only SymbolCollector logs should start showing those, but this one as well. |
NIT: Maybe use clangd's log here? To get timestamps in the output, etc.