[all-commits] [llvm/llvm-project] daca97: [clang-tidy][libc] Fix namespace check with macro ...

michaelrj-google via All-commits all-commits at lists.llvm.org
Fri Oct 6 14:06:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: daca97216cf132d733513f992d49e3c722aabf40
      https://github.com/llvm/llvm-project/commit/daca97216cf132d733513f992d49e3c722aabf40
  Author: michaelrj-google <71531609+michaelrj-google at users.noreply.github.com>
  Date:   2023-10-06 (Fri, 06 Oct 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/llvmlibc/CalleeNamespaceCheck.cpp
    M clang-tools-extra/clang-tidy/llvmlibc/ImplementationInNamespaceCheck.cpp
    A clang-tools-extra/clang-tidy/llvmlibc/NamespaceConstants.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/llvmlibc/callee-namespace.rst
    M clang-tools-extra/test/clang-tidy/checkers/llvmlibc/callee-namespace.cpp

  Log Message:
  -----------
  [clang-tidy][libc] Fix namespace check with macro (#68134)

The name of the namespace for LLVM's libc is now provided by a macro.
The ImplementationNamespaceCheck was updated to handle this, but the
CalleeNamespaceCheck was missed. This patch updates the
CalleeNamespaceCheck to handle the macro.




More information about the All-commits mailing list