[clang] [clang-format] Detect nesting in template strings (PR #119989)

2024-12-17 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/119989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Detect nesting in template strings (PR #119989)

2024-12-14 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/119989 >From fa8d1b12eee0164f2b4c8223281d0e59dfa693e1 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Sat, 14 Dec 2024 15:25:44 -0700 Subject: [PATCH 1/2] [clang-format] detect nesting in template strings The helper

[clang] [clang-format] Detect nesting in template strings (PR #119989)

2024-12-14 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/119989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Detect nesting in template strings (PR #119989)

2024-12-14 Thread Owen Pan via cfe-commits
@@ -2157,6 +2157,13 @@ TEST_F(FormatTestJS, TemplateStringMultiLineExpression) { " : a,\n" " : b,\n" "})}`;"); + + verifyFormat("`${\n" +

[clang] [clang-format] Detect nesting in template strings (PR #119989)

2024-12-14 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/119989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] detect nesting in template strings (PR #119989)

2024-12-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Gedare Bloom (gedare) Changes The helper to check if a token is in a template string scans too far backward. It should stop if a different scope is found. Fixes #107571 --- Full diff: https://github.com/llvm/llvm-project/pull/1199

[clang] [clang-format] detect nesting in template strings (PR #119989)

2024-12-14 Thread Gedare Bloom via cfe-commits
https://github.com/gedare created https://github.com/llvm/llvm-project/pull/119989 The helper to check if a token is in a template string scans too far backward. It should stop if a different scope is found. Fixes #107571 >From fa8d1b12eee0164f2b4c8223281d0e59dfa693e1 Mon Sep 17 00:00:00 2001