PiotrZSL accepted this revision.
PiotrZSL added a comment.
This revision is now accepted and ready to land.
LGTM, just some style comments.
================
Comment at:
clang-tools-extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp:84-86
+ Str.append(ND->getName());
+ } else
+ Str.append(ND->getName());
----------------
```
if (ND->isInlineNamespace()) {
Str.append("inline ");
}
Str.append(ND->getName());
```
================
Comment at:
clang-tools-extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp:106
+ }
+ return ND.isAnonymousNamespace() || ND.isInlineNamespace() ||
+ !ND.attrs().empty();
----------------
You could extract ```ND.isAnonymousNamespace()``` and
```!ND.attrs().empty();``` before if.
Like
```
if (ND.isAnonymousNamespace() || !ND.attrs().empty())
return true;
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147946/new/
https://reviews.llvm.org/D147946
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits