Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/Hover.cpp | ||
---|---|---|
986 | Unfortunately, while CallExpr and CXXConstructExpr basically have the same API for getting Args, they're not related by a common base class. Is there a more elegant solution than temporarily storing the Args in a SmallVector here? |
clang-tools-extra/clangd/Hover.cpp | ||
---|---|---|
986 | You can use ArrayRef instead of SmallVector and avoid copying the arguments (compare process_call in InlayHintVisitor). |
Comment Actions
Use ArrayRef instead of SmallVector to avoid copy (also fix 2 typos in the comment below)
clang-tools-extra/clangd/Hover.cpp | ||
---|---|---|
986 | Ah perfect, thanks! |
Unfortunately, while CallExpr and CXXConstructExpr basically have the same API for getting Args, they're not related by a common base class.
Is there a more elegant solution than temporarily storing the Args in a SmallVector here?