[all-commits] [llvm/llvm-project] b7b28c: [clang-tidy][libc] Add an inline function checker ...

Siva Chandra via All-commits all-commits at lists.llvm.org
Sun Feb 12 22:03:52 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7b28c6cfe04b8ca59dec0f2e2b9b7493c1c71d3
      https://github.com/llvm/llvm-project/commit/b7b28c6cfe04b8ca59dec0f2e2b9b7493c1c71d3
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2023-02-13 (Mon, 13 Feb 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/llvmlibc/CMakeLists.txt
    A clang-tools-extra/clang-tidy/llvmlibc/InlineFunctionDeclCheck.cpp
    A clang-tools-extra/clang-tidy/llvmlibc/InlineFunctionDeclCheck.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/inline-function-decl.rst
    A clang-tools-extra/test/clang-tidy/checkers/llvmlibc/inline-function-decl.hpp

  Log Message:
  -----------
  [clang-tidy][libc] Add an inline function checker for the libc project.

The new checker checks if inline functions defined in header files are
tagged with the LIBC_INLINE macro. See https://libc.llvm.org/code_style.html
for more information about this macro.

Reviewed By: carlosgalvezp

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




More information about the All-commits mailing list