Fixed https://github.com/llvm/llvm-project/issues/57530
Add pre check to avoid false positive for namespace with attributes like
namespace [[deprecated]] ns {}
Paths
| Differential D147857
[clang-tidy] fix false positve for namespace with attrs in modernize-concat-nested-namespaces ClosedPublic Authored by HerrCai0907 on Apr 8 2023, 12:51 PM.
Details Summary Fixed https://github.com/llvm/llvm-project/issues/57530 namespace [[deprecated]] ns {}
Diff Detail
Event TimelineComment Actions It should fix https://github.com/llvm/llvm-project/issues/57530 due to side effect instead of root cause.\ This revision is now accepted and ready to land.Apr 9 2023, 12:31 AM Comment Actions Reference issue in commit message, so it could auto-close, or close it manualy later. This revision was landed with ongoing or failed builds.Apr 9 2023, 7:23 AM Closed by commit rGbdf7fd8297bc: [clang-tidy] fix false positve for namespace with attrs in modernize-concat… (authored by HerrCai0907). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 512005 clang-tools-extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/modernize/concat-nested-namespaces.cpp
|
Merge those 2 into one if possible.