[all-commits] [llvm/llvm-project] 72777d: [clang-tidy] avoid colon in namespace cause false ...

Congcong Cai via All-commits all-commits at lists.llvm.org
Mon Apr 10 04:43:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 72777dc000ac432a99cf5f591553127432bd0365
      https://github.com/llvm/llvm-project/commit/72777dc000ac432a99cf5f591553127432bd0365
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2023-04-10 (Mon, 10 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/test/clang-tidy/checkers/modernize/concat-nested-namespaces.cpp

  Log Message:
  -----------
  [clang-tidy] avoid colon in namespace cause false positve

Refactor the Namespaces with NamespaceDecl[][].
First level stores non nested namepsace.
Second level stores nested namespace.

Reviewed By: PiotrZSL

Differential Revision: https://reviews.llvm.org/D147893




More information about the All-commits mailing list