llvm-project
llvm-project copied to clipboard
[clang-tidy]: modernize-use-using duplicates class body when its member has comment
clang-tidy 23.1.5
typedef struct {
int n; ///< comm
} Foo;
typedef struct {
/// comm
int n;
} Bar;
clang-tidy --checks=modernize-use-using --fix yields malformed code shown as below:
using Foo = struct {
int n; ///< comm
} {
int n; ///< comm
};
using Bar = struct {
/// comm
int n;
} {
/// comm
int n;
};
https://godbolt.org/z/rzdz61115: add --fix option to see generated code.
@llvm/issue-subscribers-clang-tidy
Author: Eisuke Kawashima (e-kwsm)
clang-tidy 23.1.5
typedef struct {
int n; ///< comm
} Foo;
typedef struct {
/// comm
int n;
} Bar;
clang-tidy --checks=modernize-use-using --fix yields malformed code shown as below:
using Foo = struct {
int n; ///< comm
} {
int n; ///< comm
};
using Bar = struct {
/// comm
int n;
} {
/// comm
int n;
};
<https://godbolt.org/z/rzdz61115>: add --fix option to see generated code.
can i work on this?
can i work on this?
Just create pull request and mention it on this page.