summaryrefslogtreecommitdiffstats
path: root/tools/clang-format/ClangFormat.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-09-04 18:23:42 +0000
committerDaniel Jasper <djasper@google.com>2014-09-04 18:23:42 +0000
commitbb235c67bc3e99d34c48c776c013f16c293f6000 (patch)
tree1c68254f568345bc7838a3210fc396d77ba3f514 /tools/clang-format/ClangFormat.cpp
parentac0e79e22b0eddc1dbbb5ecbea240f059e6be25c (diff)
clang-format: [JS] Support alternative operator names as identifiers.
Before: not. and . or . not_eq = 1; After: not.and.or.not_eq = 1; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-format/ClangFormat.cpp')
-rw-r--r--tools/clang-format/ClangFormat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/clang-format/ClangFormat.cpp b/tools/clang-format/ClangFormat.cpp
index cebb2757d4..7dda9c6e13 100644
--- a/tools/clang-format/ClangFormat.cpp
+++ b/tools/clang-format/ClangFormat.cpp
@@ -226,7 +226,7 @@ static bool format(StringRef FileName) {
FormatStyle FormatStyle = getStyle(
Style, (FileName == "-") ? AssumeFilename : FileName, FallbackStyle);
Lexer Lex(ID, Sources.getBuffer(ID), Sources,
- getFormattingLangOpts(FormatStyle.Standard));
+ getFormattingLangOpts(FormatStyle));
tooling::Replacements Replaces = reformat(FormatStyle, Lex, Sources, Ranges);
if (OutputXML) {
llvm::outs()