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>
This commit is contained in:
Spicyyboi
2023-02-21 07:56:04 +01:00
committed by GitHub
parent 3d77e1a35c
commit 846b6422c7
4 changed files with 93 additions and 0 deletions

24
pages.de/common/clang.md Executable file
View File

@@ -0,0 +1,24 @@
# clang
> Compiler für C, C++ und Objective-C Quelldateien. Kann als Ersatz für GCC genutzt werden.
> Weitere Informationen: <https://clang.llvm.org/docs/ClangCommandLineReference.html>.
- Kompiliere eine Quelldatei in eine ausführbare Binärdatei:
`clang {{pfad/zu/quelldatei.c}} -o {{pfad/zu/binärdatei}}`
- Zeige geläufige Fehler und Warnungen an:
`clang {{pfad/zu/quelldatei.c}} -Wall -o {{pfad/zu/binärdatei}}`
- Binde Bibliotheken, die sich an einem anderen Pfad als die Quelldatei befinden, ein:
`clang {{pfad/zu/quelldatei.c}} -o {{pfad/zu/binärdatei}} -I{{pfad/zu/headerdatei}} -L{{pfad/zu/bibliothek}} -l{{bibliotheks_name}}`
- Kompiliere eine Quelldatei zu LLVM Intermediate Representation (IR):
`clang -S -emit-llvm {{pfad/zu/quelldatei.c}} -o {{pfad/zu/ir_datei.ll}}`
- Kompiliere eine Quelldatei, ohne zu Linken:
`clang -c {{pfad/zu/quelldatei.c}}`