Improved C and C++ analysis cache and 2 new rules

A post was split to a new topic: Main branch analysis cache not used for PR