llvm/llvm-project

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

Open

#24.841 aperta il 15 ago 2015

Vedi su GitHub
 (12 commenti) (1 reazione) (1 assegnatario)C++ (10.782 fork)batch import
bugzillacheck-requestclang-tidygood first issue

Metriche repository

Star
 (26.378 star)
Metriche merge PR
 (Merge medio 1g 2h) (1000 PR mergiate in 30 g)

Descrizione

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.

Guida contributor