[PATCH] D142592: [clang-tidy][libc] Add an inline function checker for the libc project.
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 25 19:14:42 PST 2023
Eugene.Zelenko added a comment.
Please add entry in Release Notes.
================
Comment at: clang-tools-extra/clang-tidy/llvmlibc/InlineFunctionDeclCheck.cpp:29
+
+ auto SrcBegin = FuncDecl->getSourceRange().getBegin();
+ // Consider functions only in header files.
----------------
Please don't use `auto` unless type is explicitly stated in same statement or iterator.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142592/new/
https://reviews.llvm.org/D142592
More information about the cfe-commits
mailing list