c++1z adds the following constructions to the language:
if constexpr (cond) statement1; else if constexpr (cond) statement2; else if constexpr (cond) statement3; else statement4;
so clang-format needs to accept the constexpr keyword after the if
keyword.
- lib/Format/TokenAnnotator.cpp: Handle Style.SpaceBeforeParens.
- lib/Format/UnwrappedLineParser.cpp: Skip the token when parsing
ifThenElse.
- unittests/Format/FormatTest.cpp: Tests.