Skip to content

Commit

Permalink
Merge pull request #2247 from sconwayaus/rule/explicit-begin
Browse files Browse the repository at this point in the history
Rule/explicit begin
  • Loading branch information
hzeller authored Sep 18, 2024
2 parents 14ca40e + 6da2fe5 commit 88bf4fb
Show file tree
Hide file tree
Showing 11 changed files with 1,010 additions and 4 deletions.
35 changes: 35 additions & 0 deletions verilog/analysis/checkers/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ cc_library(
":disable-statement-rule",
":endif-comment-rule",
":enum-name-style-rule",
":explicit-begin-rule",
":explicit-function-lifetime-rule",
":explicit-function-task-parameter-type-rule",
":explicit-parameter-storage-type-rule",
Expand Down Expand Up @@ -1253,6 +1254,40 @@ cc_test(
],
)

cc_library(
name = "explicit-begin-rule",
srcs = ["explicit_begin_rule.cc"],
hdrs = ["explicit_begin_rule.h"],
deps = [
"//common/analysis:lint-rule-status",
"//common/analysis:token-stream-lint-rule",
"//common/text:config-utils",
"//common/text:token-info",
"//verilog/analysis:descriptions",
"//verilog/analysis:lint-rule-registry",
"//verilog/parser:verilog-token-enum",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:string_view",
],
alwayslink = 1,
)

cc_test(
name = "explicit-begin-rule_test",
srcs = ["explicit_begin_rule_test.cc"],
deps = [
":explicit-begin-rule",
"//common/analysis:linter-test-utils",
"//common/analysis:token-stream-linter-test-utils",
"//verilog/analysis:verilog-analyzer",
"//verilog/parser:verilog-token-enum",
"@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)

cc_library(
name = "explicit-function-lifetime-rule",
srcs = ["explicit_function_lifetime_rule.cc"],
Expand Down
Loading

0 comments on commit 88bf4fb

Please sign in to comment.