Add clang-tidy
From clang-tidy
documentation:
clang-tidy is a clang-based C++ “linter” tool. Its purpose is to provide an extensible framework for diagnosing and fixing typical programming errors, like style violations, interface misuse, or bugs that can be deduced via static analysis. clang-tidy is modular and provides a convenient interface for writing new checks.
This will be very helpful, as most IDEs support clang-tidy warnings and suggest changes for easy fixes.
It also allows to add code conventions as: (from TODO.txt)
- Klassen beginnen gross, Fkt&Variablen klein
- zusammengestzte Namen nicht mit "_", sondern mit Grossschreibung hervorheben
- Praeprozessor Variablen hingegen mit "_" trennen
- Member-Variablen beginnen mit m... (gefolgt von Grossbuchstaben)
- Dateinamen beginnen immer klein und besitzen Namen der Hauptklasse
Edited by d.kilic