From e08a91ecd2159c979d0f00b4f9151d1af905a3d6 Mon Sep 17 00:00:00 2001 From: Nikola Smiljanic Date: Thu, 8 May 2014 00:05:13 +0000 Subject: Enable alternative tokens by default for clang-format. Patch by Bobby Moretti. llvm-svn: 208269 --- clang/lib/Format/Format.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Format') 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; -- cgit v1.2.3