Skip to content

Commit

Permalink
[slang-tidy] Minor syntax fixes in the code
Browse files Browse the repository at this point in the history
Solves #854
  • Loading branch information
Sustrak committed Dec 10, 2023
1 parent e15e3d0 commit cccec00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/tidy/src/style/AlwaysFFBlocking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class AlwaysFFBlocking : public TidyCheck {
std::string diagString() const override {
return "use of a blocking assignment for a non local variables inside always_ff";
}
std::string name() const override { return "AlwaysCombNonBlocking"; }
std::string name() const override { return "AlwaysFFBlocking"; }
std::string description() const override { return shortDescription(); }
std::string shortDescription() const override {
return "Enforces that blocking assignments are not being used inside always_ff "
Expand Down
4 changes: 2 additions & 2 deletions tools/tidy/src/style/NoOldAlwaysSyntax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ class NoOldAlwaysSyntax : public TidyCheck {

DiagCode diagCode() const override { return diag::NoOldAlwaysSyntax; }

std::string diagString() const override { return "Use of old always verilog syntax"; }
std::string diagString() const override { return "use of old always verilog syntax"; }

DiagnosticSeverity diagSeverity() const override { return DiagnosticSeverity::Warning; }

std::string name() const override { return "NoOldAlwaysSyntax "; }
std::string name() const override { return "NoOldAlwaysSyntax"; }

std::string description() const override { return shortDescription(); }

Expand Down
2 changes: 1 addition & 1 deletion tools/tidy/src/synthesis/NoLatchesOnDesign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class NoLatchesOnDesign : public TidyCheck {

DiagCode diagCode() const override { return diag::NoLatchesOnDesign; }

std::string diagString() const override { return "Latches are not allowed in this design"; }
std::string diagString() const override { return "latches are not allowed in this design"; }

DiagnosticSeverity diagSeverity() const override { return DiagnosticSeverity::Error; }

Expand Down

0 comments on commit cccec00

Please sign in to comment.