]> granicus.if.org Git - clang/commit
SourceManager intialization tweaks.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Aug 2013 13:46:52 +0000 (13:46 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Aug 2013 13:46:52 +0000 (13:46 +0000)
commita3bf897544692cf71e34f090f39b54f9adf5c8cc
tree5d2740455ae25c914d6d345bc146d77888e12e71
parentb349a78c9705a63a352d7b9210cafb2e9d27047c
SourceManager intialization tweaks.

- Open files before calling stat on them.
- Go through FileManager for getting the buffer of named pipes. It has the
  necessary plumbing to deal with "volatile" files.
- Print the cause when stdin reading fails. The only case I can imagine where
  this happens is when stdin is wired to a device file, so no test case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188178 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticFrontendKinds.td
lib/Frontend/CompilerInstance.cpp