[PATCH] D147946: [clang-tidy] support inline namespace in c++20

Congcong Cai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 10 08:38:47 PDT 2023


HerrCai0907 created this revision.
HerrCai0907 added a reviewer: PiotrZSL.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
HerrCai0907 requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147946

Files:
  clang-tools-extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp
  clang-tools-extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.h
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/modernize/concat-nested-namespaces.rst
  clang-tools-extra/test/clang-tidy/checkers/modernize/concat-nested-namespaces.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147946.512161.patch
Type: text/x-patch
Size: 18207 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230410/86ac86aa/attachment-0001.bin>


More information about the cfe-commits mailing list