Clang and Clang++ are a set of C/C++ compilers with an LLVM back-end.
For build automation support (Meson, CMake), we have to set environment variables, otherwise the tool will use GCC/G++ by default.
CC=clang CXX=clang++ cmake ..Flags
-ast-dump: outputs Clang’s AST representation of the source file.-emit-llvm: outputs the LLVM intermediate representation.