[PATCH] D65628: [clang-doc] Parallelize reducing phase

Jake Ehrlich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 2 16:10:52 PDT 2019


jakehehrlich added a comment.

LGTM other than a couple atomicity issues.



================
Comment at: clang-tools-extra/clang-doc/tool/ClangDocMain.cpp:244
+          llvm::errs() << toString(ReadInfos.takeError()) << "\n";
+          Error = true;
+          return;
----------------
use std::atomic<bool>


================
Comment at: clang-tools-extra/clang-doc/tool/ClangDocMain.cpp:262
+        llvm::errs() << toString(InfoPath.takeError()) << "\n";
+        Error = true;
+        return;
----------------
This isn't technically thread safe. Use an std::atomic<bool>


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

https://reviews.llvm.org/D65628





More information about the cfe-commits mailing list