For some reason return type was not included. Even though it is present
in full type dump, it is not good enough as C++ types can get quite
complex. Besides there is no way to get a desugared version of the type
from function type string. Patch uses "returnType" json key, just like
ObjCMethodDecl dumper. I also updated tests. If anything is missing -
please let me know.
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This seems to not be good enough, however. Somehow desugared version of type is not added anywhere.
Comment Actions
Hey @Temtaime,
Until we can rely on this i opted in for poor man's workaround - splitting type/qualType field at the first ( and using first part. I realize it is not reliable and will break when function pointers are used, but since they arent in my project that is an acceptable short term workaround.