diff options
author | Gedare Bloom <gedare@rtems.org> | 2024-09-18 20:44:09 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-18 19:44:09 -0700 |
commit | c9aa9d53b6f92d9780430ab8239ea9117574c95d (patch) | |
tree | c6ac10b294e08aa04eef362ca6c286d75d2b08f3 /clang/unittests/Format/FormatTestJS.cpp | |
parent | 87dc3e89e72bb8d42d742c6a916f5fdee0bf853b (diff) | |
download | llvm-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.cpp | 5 |
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 |