-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixe #2278 #2312
base: master
Are you sure you want to change the base?
fixe #2278 #2312
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First round of comments
@@ -35,14 +35,16 @@ struct LintConfigParameterDescriptor { | |||
std::string description; | |||
}; | |||
|
|||
struct LintRuleDescriptor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where did this one go ? Looks like the end of the file was accidentally deleted ?
} // namespace verilog | ||
|
||
#endif // VERIBLE_VERILOG_ANALYSIS_DESCRIPTIONS_H_ | ||
std::string format_long_description(const std::string& description) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a unit test.
The naming convention for functions is typically CamelCase, so here FormatLongDescription()
} // namespace verilog | ||
|
||
#endif // VERIBLE_VERILOG_ANALYSIS_DESCRIPTIONS_H_ | ||
std::string format_long_description(const std::string& description) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you pass in an absl::string_view, your operations below will be cheaper.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hzeller okay sir again i do my best
Improve lint rule help
fix issue: #2278