[all-commits] [llvm/llvm-project] bdf7fd: [clang-tidy] fix false positve for namespace with ...
Congcong Cai via All-commits
all-commits at lists.llvm.org
Sun Apr 9 07:23:51 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bdf7fd8297bcbcddc9c184a40c954c1f1b0b8340
https://github.com/llvm/llvm-project/commit/bdf7fd8297bcbcddc9c184a40c954c1f1b0b8340
Author: Congcong Cai <congcongcai0907 at 163.com>
Date: 2023-04-09 (Sun, 09 Apr 2023)
Changed paths:
M clang-tools-extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/modernize/concat-nested-namespaces.cpp
Log Message:
-----------
[clang-tidy] fix false positve for namespace with attrs in modernize-concat-nested-namespaces
Fixed https://github.com/llvm/llvm-project/issues/57530
Add pre check to avoid false positive for namespace with attributes like
```
namespace [[deprecated]] ns {}
```
Reviewed By: PiotrZSL
Differential Revision: https://reviews.llvm.org/D147857
More information about the All-commits
mailing list