Skip to content

[clang-tidy] Add comment format configuration to bugprone-argument-comment #168062

@Jacobfaib

Description

@Jacobfaib

TL;DR: Add bugprone-argument-comment.CommentTemplate: <regex> configuration option.

It would be nice if users could have more control over the comment format that clang-tidy considers to be an argument comment. Common use-cases seen in the wild include:

  • /* parameter_name */ arg
  • arg /* parameter_name */
  • /* parameter_name = */ arg

Currently only (exactly) /*paramter_name=*/ works, so the above are not checked for correctness.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-tidyenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions