clang++
Compile C++ source files. tldr-pages
On several platforms
Several platforms
Compile C++ source files. Part of LLVM.
Compile a set of source code files into an executable binary
clang++ path/to/source1.cpp path/to/source2.cpp ... --output path/to/output_executableIdentifyActivate output of all errors and warnings
clang++ path/to/source.cpp -Wall --output output_executableIdentifyShow common warnings, debug symbols in output, and optimize without affecting debugging
clang++ path/to/source.cpp -Wall --debug -Og --output path/to/output_executableIdentifyChoose a language standard to compile for
clang++ path/to/source.cpp -std=c++20 --output path/to/output_executableIdentifyInclude libraries located at a different path than the source file
clang++ path/to/source.cpp --output path/to/output_executable -Ipath/to/headers -Lpath/to/library -lpath/to/library_nameIdentifyCompile source code into LLVM Intermediate Representation (IR)
clang++ --assemble -emit-llvm path/to/source.cpp --output path/to/output.llIdentifyOptimize the compiled program for performance
clang++ path/to/source.cpp -O1 --output path/to/output_executableIdentifyDisplay version
clang++ --versionIdentify