[PATCH] D63859: [Support] Add getFileOrSTDIN which calls a callback if stdin is a tty

Alex Brachet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 4 02:09:31 PDT 2019


abrachet updated this revision to Diff 207993.
abrachet marked an inline comment as done.
abrachet added a comment.

Use #define dup2 _dup2 instead of auto dup2 = _dup2, which would not have worked. Also temporarily comment out testing if the lambda changes a local variable.


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

https://reviews.llvm.org/D63859

Files:
  llvm/include/llvm/Support/MemoryBuffer.h
  llvm/lib/Support/MemoryBuffer.cpp
  llvm/unittests/Support/MemoryBufferTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63859.207993.patch
Type: text/x-patch
Size: 3884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190704/9f34658d/attachment.bin>


More information about the llvm-commits mailing list