CodeQL documentation

Inconsistent virtual inheritance

ID: cpp/inconsistent-virtual-inheritance
Kind: problem
Security severity: 
Severity: error
Precision: high
Tags:
   - maintainability
   - readability
   - external/jsf
Query suites:
   - cpp-security-and-quality.qls

Click to see the query in the CodeQL repository

If a base class is both virtual and non-virtual within a single hierarchy then the hierarchy is more difficult to understand and maintain. This rule identifies any base classes that are derived as both virtual and non-virtual in one hierarchy as violations.

References

  • AV Rule 89, Joint Strike Fighter Air Vehicle C++ Coding Standards. Lockheed Martin Corporation, 2005.

  • MSDN Library: Multiple Base Classes.

  • © GitHub, Inc.
  • Terms
  • Privacy
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy