1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 18:22:08 +02:00
tldr/pages.de/common/clang-tidy.md
Spicyyboi 846b6422c7
clang, clang++, clang-format, clang-tidy: add German translation (#9427)
* clang, clang++, clang-format, clang-tidy: add German translation

* Update pages.de/common/clang-format.md

Co-authored-by: pixel <pixel+github@chrissx.de>

* Update pages.de/common/clang-tidy.md

Co-authored-by: pixel <pixel+github@chrissx.de>

* Update pages.de/common/clang-tidy.md

Co-authored-by: pixel <pixel+github@chrissx.de>

---------

Co-authored-by: pixel <pixel+github@chrissx.de>
2023-02-21 14:56:04 +08:00

20 lines
692 B
Markdown
Executable file

# clang-tidy
> Ein LLVM-basierter C/C++ Linter zum Finden von Stilverletzungen, Bugs und Sicherheitsmängeln durch statische Codeanalyse.
> Weitere Information: <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}}`