diff options
author | Daniel Jasper <djasper@google.com> | 2014-09-04 18:23:42 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-09-04 18:23:42 +0000 |
commit | bb235c67bc3e99d34c48c776c013f16c293f6000 (patch) | |
tree | 1c68254f568345bc7838a3210fc396d77ba3f514 /tools/clang-format/ClangFormat.cpp | |
parent | ac0e79e22b0eddc1dbbb5ecbea240f059e6be25c (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.cpp | 2 |
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() |