Add an option to enable pedantic warnings in Clang.

The equivalent for the GCC checker is not needed, as in the GCC versions we care about `-pedantic` is just a deprecated alias to `-Wpedantic`. This is not the case in Clang, where `-pedantic` modifies the preprocessor behavior, but `-Wpedantic` does not.