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 | 4db69bd5422e3a51e1843652682f7f753baf3c7d (patch) | |
tree | 83bac1026e7ce230fbcb5f147ba069366e334454 /clang/tools | |
parent | 6b3a94065b9f8c5c8e711af39b728d0746274dc9 (diff) | |
download | bcm5719-llvm-4db69bd5422e3a51e1843652682f7f753baf3c7d.tar.gz bcm5719-llvm-4db69bd5422e3a51e1843652682f7f753baf3c7d.zip |
clang-format: [JS] Support alternative operator names as identifiers.
Before:
not. and . or . not_eq = 1;
After:
not.and.or.not_eq = 1;
llvm-svn: 217179
Diffstat (limited to 'clang/tools')
-rw-r--r-- | clang/tools/clang-format/ClangFormat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/ClangFormat.cpp b/clang/tools/clang-format/ClangFormat.cpp index cebb2757d4d..7dda9c6e138 100644 --- a/clang/tools/clang-format/ClangFormat.cpp +++ b/clang/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() |