llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[clang-doc] Refactor `CommentInfo.Kind` from string to `CommentKind` enum in clang-doc

Open snarang181 opened this issue 1 year ago • 2 comments

We should refactor the clang-doc tool’s internal handling of comment kinds by migrating the CommentInfo.Kind field from a raw SmallString<16> (string) to a strongly-typed enum, CommentKind. This should make iteration of the different fields much more convenient.

snarang181 avatar May 31 '25 14:05 snarang181

@ilovepi, I saw the issue you created https://github.com/llvm/llvm-project/issues/142083 and how it suggests the refactoring of the CommentInfo.Kind field. I started working on it yesterday and saw the diff is substantial so decided to break down the issues.

The draft PR I have up is linked to this issue.

snarang181 avatar May 31 '25 14:05 snarang181

This is a duplicate of https://github.com/llvm/llvm-project/issues/142083. I'm not sure what value a second issue covering the same problem achieves.

ilovepi avatar Jun 01 '25 07:06 ilovepi