MikePopoloski / slang

SystemVerilog compiler and language services
MIT License
546 stars 114 forks source link

Add unused import check #974

Open corco opened 3 weeks ago

corco commented 3 weeks ago

Given the following code

package pkg;

  localparam int A = 12;

endpackage : pkg

module mod;

  import pkg::A;

endmodule : mod

I would like to get a warning that "unused import pkg::A". It could be added with "-Wunused-import" and be included in "-Wunused".