Is there a gcc/clang flag to validate a C++ program without compiling it ?
In some of our per-commit-checks we only compile the program and pass if it compiles. We don't really need the compiled binary/executable. We want to save some time and compute power if possible.