From 885040f0f25e399c11b7e4ec4c5316439b02dcda Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Wed, 3 Jan 2024 09:36:05 -0800 Subject: [PATCH] Add some missing includes. --- verilog/analysis/checkers/BUILD | 31 +++++++++++-------- .../checkers/suspicious_semicolon_rule.cc | 6 ++++ 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/verilog/analysis/checkers/BUILD b/verilog/analysis/checkers/BUILD index f61323da4..8905a4b0e 100644 --- a/verilog/analysis/checkers/BUILD +++ b/verilog/analysis/checkers/BUILD @@ -2130,22 +2130,27 @@ cc_library( srcs = ["suspicious_semicolon_rule.cc"], hdrs = ["suspicious_semicolon_rule.h"], deps = [ - "//common/analysis:lint-rule-status", - "//common/analysis:syntax-tree-lint-rule", - "//verilog/CST:verilog-matchers", - "//verilog/analysis:descriptions", - "//verilog/analysis:lint-rule-registry", + "//common/analysis:lint-rule-status", + "//common/analysis:syntax-tree-lint-rule", + "//common/analysis/matcher", + "//common/text:concrete-syntax-tree", + "//common/text:tree-utils", + "//verilog/CST:verilog-matchers", + "//verilog/CST:verilog-nonterminals", + "//verilog/analysis:descriptions", + "//verilog/analysis:lint-rule-registry", + "@com_google_absl//absl/strings", ], alwayslink = 1, ) cc_test( - name = "suspicious-semicolon-rule_test", - srcs = ["suspicious_semicolon_rule_test.cc"], - deps = [ - ":suspicious-semicolon-rule", - "//common/analysis:syntax-tree-linter-test-utils", - "//verilog/analysis:verilog-analyzer", - "@com_google_googletest//:gtest_main", - ], + name = "suspicious-semicolon-rule_test", + srcs = ["suspicious_semicolon_rule_test.cc"], + deps = [ + ":suspicious-semicolon-rule", + "//common/analysis:syntax-tree-linter-test-utils", + "//verilog/analysis:verilog-analyzer", + "@com_google_googletest//:gtest_main", + ], ) diff --git a/verilog/analysis/checkers/suspicious_semicolon_rule.cc b/verilog/analysis/checkers/suspicious_semicolon_rule.cc index 043c21aeb..6193f4aaf 100644 --- a/verilog/analysis/checkers/suspicious_semicolon_rule.cc +++ b/verilog/analysis/checkers/suspicious_semicolon_rule.cc @@ -14,9 +14,15 @@ #include "verilog/analysis/checkers/suspicious_semicolon_rule.h" +#include "absl/strings/string_view.h" +#include "common/analysis/lint_rule_status.h" +#include "common/analysis/matcher/bound_symbol_manager.h" #include "common/analysis/matcher/matcher.h" +#include "common/text/concrete_syntax_tree.h" +#include "common/text/tree_utils.h" #include "verilog/CST/verilog_matchers.h" #include "verilog/CST/verilog_nonterminals.h" +#include "verilog/analysis/descriptions.h" #include "verilog/analysis/lint_rule_registry.h" namespace verilog {