[PATCH] D98275: [clang-tidy] Fix mpi checks when running multiple TUs per clang-tidy process

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 24 12:22:08 PDT 2021


njames93 marked an inline comment as done.
njames93 added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/mpi/BufferDerefCheck.cpp:29-30
 
+  if (!FuncClassifier)
+    FuncClassifier.emplace(*Result.Context);
+
----------------
aaron.ballman wrote:
> This is racy, but I don't think we support running multiple checks in parallel, do we?
This isn't racy as one instance of a check will only ever run on one thread. 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98275



More information about the cfe-commits mailing list