`clang++ -dumpversion` always outputs 4.2.1 as it was designed to be compatible with `g++` in that version. So parse `clang++ --version` for `clang++` instead.