[clang] [clang] Bounds checking on unclosed parentheses, brackets or braces in Expanded Tokens (PR #69849)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 26 18:38:21 PST 2023


================
@@ -585,6 +585,17 @@ TEST_F(TokenCollectorTest, DelayedParsing) {
   EXPECT_THAT(collectAndDump(Code), StartsWith(ExpectedTokens));
 }
 
+TEST_F(TokenCollectorTest, UnclosedToken) {
----------------
HighCommander4 wrote:

I started looking at this to try and make some progress towards getting this landed. However, when running this test locally, I'm not seeing either of the branches added to `spelledForExpandedToken()` being taken.

Am I missing something, or is this test not exercising the intended codepath?

https://github.com/llvm/llvm-project/pull/69849


More information about the cfe-commits mailing list