[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
Mon Nov 27 01:18:51 PST 2023
================
@@ -585,6 +585,17 @@ TEST_F(TokenCollectorTest, DelayedParsing) {
EXPECT_THAT(collectAndDump(Code), StartsWith(ExpectedTokens));
}
+TEST_F(TokenCollectorTest, UnclosedToken) {
----------------
HighCommander4 wrote:
Indeed, it looks like `TokenBuffer::spelledForExpanded()` (which is the only call site of `spelledForExpandedToken()`) is not called by anything currently in this test.
To exercise `spelledForExpanded()`, we will need to make an explicit call to it, the way a number of other tests in this file do.
https://github.com/llvm/llvm-project/pull/69849
More information about the cfe-commits
mailing list