llvm/llvm-project

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

Open

#24.841 geöffnet am 15. Aug. 2015

Auf GitHub ansehen
 (12 Kommentare) (1 Reaktion) (1 zugewiesene Person)C++ (10.782 Forks)batch import
bugzillacheck-requestclang-tidygood first issue

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide