Nathan Ridge

Results 1165 comments of Nathan Ridge

In my mind, this is a special case of a more general feature: given a template, search the project for instantiations of that template to see what sorts of arguments...

> `sized` gives me a red squiggle saying > > > No member named 'sized' in 'std::basic_string'clang(no_member) > > and indeed, changing it to `size` has no red squiggle. This...

> > search the project for instantiations of that template to see what sorts of arguments it gets instantiated with, and use that information to provide better analysis of the...

> https://github.com/vittorioromeo/vittorioromeo.info/blob/master/extra/zeroalloc_continuations/p2_parallel.cpp I'm seeing a lot of `` hints in this file, presumably we just want to omit those?

> https://github.com/vittorioromeo/vittorioromeo.info/blob/master/extra/zeroalloc_continuations/p2_parallel.cpp#L489 > ... > Hover shows the correct type but the inline hint isn't shown. This is a length issue. The hint is `tuple`, which is longer than the...

I often reduce such code examples manually.

> > https://github.com/vittorioromeo/vittorioromeo.info/blob/master/extra/zeroalloc_continuations/p2_parallel.cpp#L499-L501 > > But here the hints are below the length limit, so there must be something else going on and further investigation is needed. Taking another look,...

> > https://github.com/vittorioromeo/vittorioromeo.info/blob/master/extra/zeroalloc_continuations/p2_parallel.cpp#L551 > > And here if you add `&&` to the `auto t` the type inference stops working altogether. > > Confirmed, this will need some further investigation...

It sounds like your use case may be better served by running clangd itself on the remote machine, perhaps using something like https://code.visualstudio.com/docs/remote/remote-overview.

Confirmed. A minimal testcase: Start with the following files: test.hpp: ```c++ #ifndef TEST_HPP #define TEST_HPP void waldo(int); #endif ``` test.cpp: ```c++ #include "test.hpp" int main() { waldo(42); } ``` 1....