Skip to content

Replace /* ... */ single-line comments with // ... comments #24841

@LegalizeAdulthood

Description

@LegalizeAdulthood
Bugzilla Link 24467
Version unspecified
OS Windows NT

Extended Description

Detect when C-style /.../ block comments are used to create a single-line comment. Replace those block-style comments with // style comments.

Possible false positives:

/* ....\ */

comments could result in a // comment like this:

// ...\

which would escape the newline and be a problem.

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillacheck-requestRequest for a new check in clang-tidyclang-tidygood first issuehttps://github.com/llvm/llvm-project/contribute

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions