Skip to content
Commit f59993f4 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Diagnostics: Simplify provider registeration and make it safer

Instead of manual register/unregister calls, rely on RAII. A provider
gets registered on construction and unregistered on destruction.

On unregistering, clear the diagnostics from the provider getting
destroyed to avoid stale pointers in diagnostics.

Also, ensure destructing is fast by clearing everything manually before
disabling plugins.

This fixes a crash after the build plugin merge.
parent 8b169743
Pipeline #374755 passed with stages
in 11 minutes and 20 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment