This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG155f5a6dac62: [libc][clang-tidy] fix namespace check for
externals (authored by michaelrj).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAS
michaelrj updated this revision to Diff 390769.
michaelrj added a comment.
fix final comments before commit
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113946/new/
https://reviews.llvm.org/D113946
Files:
clang-tools-extra/clang-tidy/llvmlibc/C
aaron.ballman accepted this revision.
aaron.ballman added a comment.
LGTM aside from a tiny nit with the documentation.
Comment at: libc/docs/clang_tidy_checks.rst:71
+There are exceptions for the following functions:
+``__errno_location`` so that errno can be set
+``malloc``,
michaelrj updated this revision to Diff 388588.
michaelrj marked 3 inline comments as done.
michaelrj added a comment.
address comments and rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113946/new/
https://reviews.llvm.org/D113946
Files:
aaron.ballman added inline comments.
Comment at: clang-tools-extra/clang-tidy/llvmlibc/CalleeNamespaceCheck.cpp:39
+// intercepted.
+static const llvm::StringSet<> FUNCTIONS_TO_IGNORE_NAMESPACE = {
+"__errno_location", "malloc", "calloc", "realloc", "free"};
michaelrj added a comment.
ping for clang-tidy review
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113946/new/
https://reviews.llvm.org/D113946
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
ht
michaelrj added inline comments.
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"};
sivachandra wr
michaelrj updated this revision to Diff 387759.
michaelrj marked an inline comment as done.
michaelrj added a comment.
update the set type
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113946/new/
https://reviews.llvm.org/D113946
Files:
clang-to
sivachandra accepted this revision.
sivachandra added a comment.
For libc requirements, LGTM. Please wait for @aaron.ballman for stamping the
clang-tidy parts.
Comment at: clang-tools-extra/clang-tidy/llvmlibc/CalleeNamespaceCheck.cpp:39
+// intercepted.
+static const char *FU
michaelrj updated this revision to Diff 387713.
michaelrj added a comment.
add test for the new lint behavior:
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113946/new/
https://reviews.llvm.org/D113946
Files:
clang-tools-extra/clang-tidy/llvmlib
michaelrj added inline comments.
Comment at: clang-tools-extra/clang-tidy/llvmlibc/CalleeNamespaceCheck.cpp:13
+#include
+
sivachandra wrote:
> Eugene.Zelenko wrote:
> > Should be `` and without newline separation form rest of headers.
> Looks like this is pr
michaelrj updated this revision to Diff 387703.
michaelrj marked 6 inline comments as done.
michaelrj added a comment.
clean up the code and remove debug statements
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113946/new/
https://reviews.llvm.org/
sivachandra added inline comments.
Comment at: clang-tools-extra/clang-tidy/llvmlibc/CalleeNamespaceCheck.cpp:1
//===-- CalleeNamespaceCheck.cpp
--===//
//
You should add tests for this exception check. See
https://gith
Eugene.Zelenko added inline comments.
Comment at: clang-tools-extra/clang-tidy/llvmlibc/CalleeNamespaceCheck.cpp:13
+#include
+
Should be `` and without newline separation form rest of headers.
Comment at: clang-tools-extra/clang-tidy/llvml
lntue added inline comments.
Comment at: clang-tools-extra/clang-tidy/llvmlibc/CalleeNamespaceCheck.cpp:59
+llvm::StringRef(FUNCTIONS_TO_IGNORE_NAMESPACE[i]))) {
+ printf("String found %s\n", FuncDecl->getName().str().c_str());
+ return;
Loo
michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, carlosgalvezp, ecnelises, tschuett,
xazax.hun.
Herald added a project: libc-project.
michaelrj requested review of this revision.
Herald added a project: clang-tools-extra.
Heral
16 matches
Mail list logo