For build automation support (Meson, CMake), we have to set environment variables, otherwise the tool will use GCC/G++ by default.
Flags
-ast-dump
: outputs Clang’s AST representation of the source file.-emit-llvm
: outputs the LLVM intermediate representation.