| Issue |
63882
|
| Summary |
[clang-format] 15.0 FixNamespaceComment does not add comment in case of single lambda
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
gotnone
|
The error seems to occur when a namespace surrounds a single named lambda, regardless of the contents of the lambda.
````
namespace foo {
auto bar = [] {
int should;
int trigger;
int namespace;
int comment;
};
}
````
I would expect to see `} // namespace foo`, but the result with --style=LLVM is:
````
namespace foo {
auto bar = [] {
int should;
int trigger;
int namespace;
int comment;
};
}
````
It appears that this is being tagged as a short namespace.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs