[PATCH] D90944: [clang-tidy] implement concurrency-mt-unsafe

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 26 01:58:31 PST 2020


lebedev.ri added a comment.

Looks good to me, but i'm still uneasy about doing the checking in inverted sense.



================
Comment at: clang-tools-extra/clang-tidy/concurrency/MtUnsafeCheck.cpp:31-32
+
+// Initial list was extracted from gcc documentation
+static const StringRef GlibcFunctions[] = {
+    "::argp_error",
----------------
I commented, but the comment was lost; do these arrays really have to be in namespace?
I'd think they can be right afterwards `using namespace clang::ast_matchers;`.


================
Comment at: clang-tools-extra/clang-tidy/concurrency/MtUnsafeCheck.h:9
+
+#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CONCURRENT_MTUNSAFECHECK_H
+#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CONCURRENT_MTUNSAFECHECK_H
----------------
s/CONCURRENT/CONCURRENCY/, maybe elsewhere too


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90944/new/

https://reviews.llvm.org/D90944



More information about the cfe-commits mailing list