Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks, I think this behaviour change is reasonable.
clang-tools-extra/clangd/InlayHints.cpp | ||
---|---|---|
680 | Can we factor out a function ShouldPrintCanonicalType(QualType), and add a comment like this in its implementation: // The sugared type is more useful in some cases, and the canonical // type in other cases. For now, prefer the sugared type unless // we are printing `decltype(expr)`. This could be refined further // (see https://github.com/clangd/clangd/issues/1298). Then in this function we can set: TypeHintPolicy.PrintCanonicalTypes = ShouldPrintCanonicalType(T); |
Comment Actions
Thanks!
clang-tools-extra/clangd/InlayHints.cpp | ||
---|---|---|
665 | small nit: could you put the comment inside the function, since it's more an explanation of the current logic in the implementation |
small nit: could you put the comment inside the function, since it's more an explanation of the current logic in the implementation