llvm/llvm-project

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

Open

#24,841 建立於 2015年8月15日

在 GitHub 查看
 (12 留言) (1 反應) (1 負責人)C++ (26,378 star) (10,782 fork)batch import
bugzillacheck-requestclang-tidygood first issue

描述

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.

貢獻者指南