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

Siva Chandra via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 25 17:34:57 PST 2023


sivachandra created this revision.
sivachandra added a reviewer: aaron.ballman.
Herald added subscribers: ChuanqiXu, carlosgalvezp, ecnelises, tschuett, xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
sivachandra requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142592

Files:
  clang-tools-extra/clang-tidy/llvmlibc/CMakeLists.txt
  clang-tools-extra/clang-tidy/llvmlibc/InlineFunctionDeclCheck.cpp
  clang-tools-extra/clang-tidy/llvmlibc/InlineFunctionDeclCheck.h
  clang-tools-extra/clang-tidy/llvmlibc/LLVMLibcTidyModule.cpp
  clang-tools-extra/docs/clang-tidy/checks/llvmlibc/inline-function-decl-check.rst
  clang-tools-extra/test/clang-tidy/checkers/llvmlibc/inline-function-decl.cpp
  clang-tools-extra/test/clang-tidy/checkers/llvmlibc/inline-function-decl.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142592.492300.patch
Type: text/x-patch
Size: 8369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230126/2cb784ef/attachment-0001.bin>


More information about the cfe-commits mailing list