[clang] [clang-format] Stop crashing on slightly off Verilog module headers (PR #116000)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 23 06:39:20 PST 2024
================
@@ -2598,6 +2598,20 @@ TEST_F(TokenAnnotatorTest, UnderstandsVerilogOperators) {
Tokens = Annotate("x = '{\"\"};");
ASSERT_EQ(Tokens.size(), 8u) << Tokens;
EXPECT_TOKEN(Tokens[4], tok::string_literal, TT_Unknown);
+
+ // Module headers.
+ Tokens = Annotate("module x();\nendmodule");
----------------
owenca wrote:
Fixed in aa2d084f9a68f041a42e4df84e11d769a7be34a6.
https://github.com/llvm/llvm-project/pull/116000
More information about the cfe-commits
mailing list