[libc-commits] [PATCH] D113946: [libc][clang-tidy] fix namespace check for externals
Eugene Zelenko via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Nov 15 21:57:48 PST 2021
Eugene.Zelenko added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/llvmlibc/CalleeNamespaceCheck.cpp:13
+#include <stdio.h>
+
----------------
Should be `<cstdio>` and without newline separation form rest of headers.
================
Comment at: clang-tools-extra/clang-tidy/llvmlibc/CalleeNamespaceCheck.cpp:39
+// intercepted.
+static const char *FUNCTIONS_TO_IGNORE_NAMESPACE[] = {
+ "__errno_location", "malloc", "calloc", "realloc", "free"};
----------------
Why not `std::array` of appropriate LLVM container?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113946/new/
https://reviews.llvm.org/D113946
More information about the libc-commits
mailing list