[Format] Make it easy to add new format::FormatStyle::LanguageStandard. NFCI
authorFangrui Song <maskray@google.com>
Wed, 24 Jul 2019 08:04:29 +0000 (08:04 +0000)
committerFangrui Song <maskray@google.com>
Wed, 24 Jul 2019 08:04:29 +0000 (08:04 +0000)
commit00e8ac3bebfa92e5a6260de0a87d70108d03edf4
treeda2f7c34f7387365daf992a88ae06d0288e663ae
parent0e7bbb11220a761fd999440b9bba3d30cac35095
[Format] Make it easy to add new format::FormatStyle::LanguageStandard. NFCI

Preparatory change for D65043.

We current use `!=LS_Cpp03` to enable language standards 11,14,17, and
2a. `>=LS_Cpp11` is better if we decide to add new LanguageStandard in
the future.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D65183

llvm-svn: 366876
clang/lib/Format/Format.cpp
clang/lib/Format/TokenAnnotator.cpp