diff options
author | Nikola Smiljanic <popizdeh@gmail.com> | 2014-05-08 00:05:13 +0000 |
---|---|---|
committer | Nikola Smiljanic <popizdeh@gmail.com> | 2014-05-08 00:05:13 +0000 |
commit | e08a91ecd2159c979d0f00b4f9151d1af905a3d6 (patch) | |
tree | 995edf30111d5d57246ee956c7131e376b41b071 /clang/lib/Format | |
parent | 9c1a57b64f4b5e6a12001f0995dbf965d5aea5b4 (diff) | |
download | bcm5719-llvm-e08a91ecd2159c979d0f00b4f9151d1af905a3d6.tar.gz bcm5719-llvm-e08a91ecd2159c979d0f00b4f9151d1af905a3d6.zip |
Enable alternative tokens by default for clang-format.
Patch by Bobby Moretti.
llvm-svn: 208269
Diffstat (limited to 'clang/lib/Format')
-rw-r--r-- | clang/lib/Format/Format.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 008b4159fa3..efb790b3592 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -1856,6 +1856,7 @@ LangOptions getFormattingLangOpts(FormatStyle::LanguageStandard Standard) { LangOpts.CPlusPlus11 = Standard == FormatStyle::LS_Cpp03 ? 0 : 1; LangOpts.CPlusPlus1y = Standard == FormatStyle::LS_Cpp03 ? 0 : 1; LangOpts.LineComment = 1; + LangOpts.CXXOperatorNames = 1; LangOpts.Bool = 1; LangOpts.ObjC1 = 1; LangOpts.ObjC2 = 1; |