clang-cpp
Clang C/C++ preprocessor
TLDR
Run the C preprocessor on a source file
$ clang-cpp [source.c]
Preprocess with defines$ clang-cpp -D[MACRO]=[value] [source.c]
Preprocess with include path$ clang-cpp -I[/path/to/includes] [source.c]
Output to file$ clang-cpp [source.c] -o [output.i]
SYNOPSIS
clang-cpp [options] file
DESCRIPTION
clang-cpp is the Clang C preprocessor. It handles #include directives, macro expansion, and conditional compilation, outputting the preprocessed source.
This is the LLVM/Clang equivalent of cpp from GCC.
PARAMETERS
-D macro[=value]
Define a preprocessor macro.-U macro
Undefine a preprocessor macro.-I path
Add include search path.-o file
Write output to file.-E
Preprocess only (implied).
