Hi @Carl,
What you are describing indeed sounds like a bug.
I will try to reproduce it and get back to this thread.
As a workaround to clear the cache, you can change one analysis configuration that impacts the results. For example:
- by enabling/disabling one rule.
- or if you want to do it from the command line, you can add one new option like
-Dsonar.cfamily.reportingCppStandardOverride=c++20
Both approaches will clear the cache since they invalidate the results of all files.
Thanks,