CmdID

CmdID / Commands

clang++

Compile C++ source files. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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_executableIdentify

Activate output of all errors and warnings

clang++ path/to/source.cpp -Wall --output output_executableIdentify

Show common warnings, debug symbols in output, and optimize without affecting debugging

clang++ path/to/source.cpp -Wall --debug -Og --output path/to/output_executableIdentify

Choose a language standard to compile for

clang++ path/to/source.cpp -std=c++20 --output path/to/output_executableIdentify

Include 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_nameIdentify

Compile source code into LLVM Intermediate Representation (IR)

clang++ --assemble -emit-llvm path/to/source.cpp --output path/to/output.llIdentify

Optimize the compiled program for performance

clang++ path/to/source.cpp -O1 --output path/to/output_executableIdentify

Display version

clang++ --versionIdentify