[all-commits] [llvm/llvm-project] 8683f5: [clang-tidy] Add check callee-namespace.

Paula Toth via All-commits all-commits at lists.llvm.org
Tue Apr 28 17:23:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8683f5de535274398a82ed0a2c9f05648dc43f41
      https://github.com/llvm/llvm-project/commit/8683f5de535274398a82ed0a2c9f05648dc43f41
  Author: Paula Toth <paulatoth at google.com>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

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

  Log Message:
  -----------
  [clang-tidy] Add check callee-namespace.

Summary:
This check will ensure that all calls to functions resolve to one inside the `__llvm_libc` namespace.

This is done to ensure that if we include a public header then we don't accidentally call into the a function within the global namespace.

Reviewers: aaron.ballman, njames93

Reviewed By: aaron.ballman

Subscribers: Eugene.Zelenko, mgorny, xazax.hun, cfe-commits, sivachandra

Tags: #clang-tools-extra, #libc-project, #clang

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




More information about the All-commits mailing list