Remove failure conditions for categories in libclang and return empty
content instead.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | ||
---|---|---|
540–549 | It's not really clear to me what the intended behavior was meant to be here, ie. whether if any parent fails we skip writing all *or* if we should be writing all valid parents. I'll leave that to someone that knows more about the symbolgraph output. But this fixes the obvious crash, so that part is fine with me. |
clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | ||
---|---|---|
540–549 | I think it is a bit of a grey area, having parent contexts and related symbols allows downstream clients to perform link resolution on declaration fragment chunks e.t.c I figured it would be best to do a best effort and provide the known parents. |
It's not really clear to me what the intended behavior was meant to be here, ie. whether if any parent fails we skip writing all *or* if we should be writing all valid parents. I'll leave that to someone that knows more about the symbolgraph output.
But this fixes the obvious crash, so that part is fine with me.