[PATCH] D138942: Support: Make Wait's SecondsToWait be Optional [NFC]

Alexander Kornienko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 16:46:28 PST 2022


alexfh added inline comments.


================
Comment at: llvm/unittests/Support/ProgramTest.cpp:427
   ASSERT_NO_ERROR(fs::unlockFile(FD1));
-  ProcessInfo WaitResult = llvm::sys::Wait(PI2, 5 /* seconds */, true, &Error);
+  ProcessInfo WaitResult = llvm::sys::Wait(PI2, 5 /* seconds */, &Error);
   ASSERT_TRUE(Error.empty());
----------------
aganea wrote:
> Perhaps `/*SecondsToWait*/` here too?
Or rather `/*SecondsToWait=*/`, since this format is more common and supported by clang-tidy (https://clang.llvm.org/extra/clang-tidy/checks/bugprone/argument-comment.html). Same for other argument comments.


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

https://reviews.llvm.org/D138942



More information about the llvm-commits mailing list