Having C++ coding standard guidelines is a good idea, but is it applied? To be sure that developers follow the guidelines, the better way is to automate this code review and maybe integrate it in your build process to conserve code base quality.
Using CQL for more flexibility
CppDepend supports the Code Query Language (CQL) for maximum flexibility. CQL will help you answer in seconds your questions about your code base:
- Which public methods have more than 30 lines of code?
- Which classes Derived From CBase?
SELECTTYPESWHEREIsClass AND DeriveFrom "CBase"
- Which methods have been refactored recently ?
CppDepend comes with many queries to understand and audit the existing code, queries are grouped by category.
Please refer to the detailled documentation of CQL to discover all its capabilities to query the code.
Integration to the build process
CppDepend comes with CppDepend.Console.exe, you can use it to launch the analysis from your build process, and provides also the possibility to stop build if some critical rules are violated.
We can specify that a query is critical from CQL query editor.