Add the ability to remove diagnostic callbacks.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM! Is there a simple way to test this ?
lldb/source/Utility/Diagnostics.cpp | ||
---|---|---|
55–58 | nit: may be use llvm::remove_if instead ? |
Comment Actions
I considered a unit test, but that would require making everything protected and would basically boil down to testing the implementation of the underlying container, but I can add it if you think it's worthwhile. I think a better way to test this is through an integration test that exercises this code path. D143548 would indirectly test it (it doesn't crash but I assume ASAN would have caught it).
nit: may be use llvm::remove_if instead ?