aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2020-04-23 09:25:01 +0200
committerHaojian Wu <hokein.wu@gmail.com>2020-04-23 09:25:01 +0200
commit47ef09e4848a970c530928496b54085cfdba5a76 (patch)
tree0b40676324fe250eb62031f70847377bfc8e8d4c /clang/unittests/Format/FormatTestJS.cpp
parent25807452ac1bca643bdc00f7555e9cad03097b0e (diff)
downloadllvm-47ef09e4848a970c530928496b54085cfdba5a76.zip
llvm-47ef09e4848a970c530928496b54085cfdba5a76.tar.gz
llvm-47ef09e4848a970c530928496b54085cfdba5a76.tar.bz2
Revert "clang-format: support aligned nested conditionals formatting"
This reverts 3d61b1120e8267aa39f4c9a33d618dbaec4ec6fa, 5daa25fd7a184524759b6ad065a8bd7e95aa149a The clang-format test (FormatTest.ConfigurableUseOfTab) is failing in the buildbot: http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/31811/steps/ninja%20check%201/logs/stdio
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index c1c4706..eadea35 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -277,7 +277,7 @@ TEST_F(FormatTestJS, UnderstandsJavaScriptOperators) {
verifyFormat("var x = aaaaaaaaaaaaaaaaaaaaaaaaa() in\n"
" aaaa.aaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;");
FormatStyle Style = getGoogleJSStyleWithColumns(80);
- Style.AlignOperands = FormatStyle::OAS_Align;
+ Style.AlignOperands = true;
verifyFormat("var x = aaaaaaaaaaaaaaaaaaaaaaaaa() in\n"
" aaaa.aaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;",
Style);