aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2024-09-18 20:44:09 -0600
committerGitHub <noreply@github.com>2024-09-18 19:44:09 -0700
commitc9aa9d53b6f92d9780430ab8239ea9117574c95d (patch)
treec6ac10b294e08aa04eef362ca6c286d75d2b08f3 /clang/unittests/Format/FormatTestJS.cpp
parent87dc3e89e72bb8d42d742c6a916f5fdee0bf853b (diff)
downloadllvm-c9aa9d53b6f92d9780430ab8239ea9117574c95d.zip
llvm-c9aa9d53b6f92d9780430ab8239ea9117574c95d.tar.gz
llvm-c9aa9d53b6f92d9780430ab8239ea9117574c95d.tar.bz2
[clang-format] Fix regression in BAS_AlwaysBreak for-await (#108634)
Fixes #108589.
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 57c021c..4b15e7b 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -2870,6 +2870,11 @@ TEST_F(FormatTestJS, BreakAfterOpenBracket) {
verifyFormat("failedUserIds.push(await subscriptioxxxxxxxxxxxxnSubset.map(\n"
" subscxxxxxxxxxxxxription => subscription.getUserId()));",
Style);
+ verifyFormat("for await (const packageId of ops.api.iterateEmbeddedFiles(\n"
+ " this.getFileId().getDriveFile(),\n"
+ " )) {\n"
+ "}",
+ Style);
}
} // namespace format