I'd like to create shell aliases that will always use the "latest" version of the C/C++ standards supported by gcc
/g++
/clang
/clang++
(one alias for C, one alias for C++). I realize that this could have multiple interpretations:
- The latest GNU-extended standard
- The latest released standard (e.g. C++14)
- The latest unreleased standard (e.g. C++1z)
- The latest standard fully implemented by the compiler (e.g. C++11 for GCC 4.9, C++14 for GCC 5+)
- ... possibly other options I haven't thought of
....but for the purpose of these shell aliases, I don't care that much which "moving" value is used as long as I know which of the above rules is used to determine which standard-mode is used.
Does either compiler include an argument-alias that tracks a moving "latest standard"? I don't see any mention of alias-options in the GCC docs (though my google-fu may simply be failing me); meanwhile, the Clang user manual mentions that "The supported modes for C are [explicit std modes...] and various aliases for those modes", but I don't see where the aliases themselves are documented.