[all-commits] [llvm/llvm-project] 32aaac: [clang-tidy] support nested inline namespace in c+...
Congcong Cai via All-commits
all-commits at lists.llvm.org
Tue Apr 11 12:28:36 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 32aaacc609e7a0523d498b244e081ac6f3df532b
https://github.com/llvm/llvm-project/commit/32aaacc609e7a0523d498b244e081ac6f3df532b
Author: Congcong Cai <congcongcai0907 at 163.com>
Date: 2023-04-11 (Tue, 11 Apr 2023)
Changed paths:
M clang-tools-extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp
M clang-tools-extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/modernize/concat-nested-namespaces.rst
M clang-tools-extra/test/clang-tidy/checkers/modernize/concat-nested-namespaces.cpp
Log Message:
-----------
[clang-tidy] support nested inline namespace in c++20 for modernize-concat-nested-namespaces
Fixed https://github.com/llvm/llvm-project/issues/56022
c++20 support namespace like `namespace a::inline b {}`.
If an inline namespace is not the first, it can be concatened.
Reviewed By: PiotrZSL
Differential Revision: https://reviews.llvm.org/D147946
More information about the All-commits
mailing list