Previously: both had type void() and return type void.
Now: neither have a type. Constructors return T, destructors return void.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Build result: pass - 60137 tests passed, 0 failed and 729 were skipped.
Log files: console-log.txt, CMakeCache.txt
clang-tools-extra/clangd/XRefs.cpp | ||
---|---|---|
599 | this looks reasonable though I'd prefer not setting the return type for ctor/dtor. If we decide to go down this path, we'd better make other "returnType" places (Symbol::ReturnType, CodeCompletion) align with this. | |
clang-tools-extra/clangd/unittests/XRefsTests.cpp | ||
914 | nit: add a test case for destructor? |
clang-tools-extra/clangd/XRefs.cpp | ||
---|---|---|
599 | So code completion shows ~foo() as type void, and has no return type for constructors (including when it would matter for ranking!). Indexing code doesn't have a return type for either. |
Build result: pass - 60168 tests passed, 0 failed and 731 were skipped.
Log files: console-log.txt, CMakeCache.txt
this looks reasonable though I'd prefer not setting the return type for ctor/dtor. If we decide to go down this path, we'd better make other "returnType" places (Symbol::ReturnType, CodeCompletion) align with this.