1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:02:07 +02:00
tldr/pages.de/common/clang-tidy.md
K.B.Dharun Krishna 5c26174aa9
pages/*: update links and more info link script (#11390)
* pages/*: update links and more info link script

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* cleanup: reformat code

* ax-webapp: fix link

* curl: fix false positive

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-11-06 23:14:12 +05:30

694 B
Executable file

clang-tidy

Ein LLVM-basierter C/C++ Linter zum Finden von Stilverletzungen, Bugs und Sicherheitsmängeln durch statische Codeanalyse. Weitere Informationen: https://clang.llvm.org/extra/clang-tidy/.

  • Führe die Standard-Checks für eine Quelldatei aus:

clang-tidy {{pfad/zu/quelldatei.cpp}}

  • Prüfe nur ob eine Datei den cppcoreguidelines Checks entspricht:

clang-tidy {{pfad/zu/quelldatei.cpp}} -checks={{-*,cppcoreguidelines-*}}

  • Liste alle verfügbaren Checks auf:

clang-tidy -checks={{*}} -list-checks

  • Lege defines und includes als Kompilierungsoptionen fest (nach --):

clang-tidy {{pfad/zu/quelldatei.cpp}} -- -I{{mein_projekt/include}} -D{{definitions}}