]> granicus.if.org Git - clang/commit
[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)
commitf137ef15ab66e755039686cab4657181e64ec8b7
treebd0536e0aeb632dbcb275994ac81ebc5d48c0a80
parenta25d062264efe6f7af3c8ad18e73989ae20909c5
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366876 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp