summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__std_stream
Commit message (Collapse)AuthorAgeFilesLines
* Enable and fix warnings during the build.Eric Fiselier2015-07-181-1/+0
| | | | | | | | | | | | | | | | | Although CMake adds warning flags, they are ignored in the libc++ headers because the headers '#pragma system header' themselves. This patch disables the system header pragma when building libc++ and fixes the warnings that arose. The warnings fixed were: 1. <memory> - anonymous structs are a GNU extension 2. <functional> - anonymous structs are a GNU extension. 3. <__hash_table> - Embedded preprocessor directives have undefined behavior. 4. <string> - Definition is missing noexcept from declaration. 5. <__std_stream> - Unused variable. llvm-svn: 242623
* Partial implementation of N3665. This paper was not voted into the C++1y ↵Howard Hinnant2013-08-091-0/+14
| | | | | | draft. However I was looking at it and with some experimentation realized that I could partially implement it, and at the same time offer a performance optimization to cout. I simply added an xsputn override to the cout filebuf. The override does nothing special at all if there is a non-trivial codecvt installed. However if the codecvt returns true for always_noconv(), then this function can dump an entire string to fwrite, instead of doing it a character at a time under overflow(). This just makes sense. I stopped short of a full implementation of N3665 because in order to do so, xsputn would have to allocate a buffer when always_noconv() returned false, and I don't want to go to that expense. llvm-svn: 188077
* Make cout a little more thread-safe. This fixes ↵Howard Hinnant2013-06-281-10/+9
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=12158 llvm-svn: 185222
* Put a 1-character unget buffer into cin. This fixes ↵Howard Hinnant2013-05-081-20/+49
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=15867 llvm-svn: 181470
* This is an optimization which produces improved launching time. There ↵Howard Hinnant2013-03-191-14/+14
| | | | | | should be no functionality change. Clients should see no ABI differences. llvm-svn: 177443
* This SO question: ↵Howard Hinnant2013-03-111-1/+1
| | | | | | http://stackoverflow.com/questions/15344402/how-can-i-read-a-0xff-in-a-file-with-libc-istream-iterator/15347225#15347225 highlighted the lack of a cast in the implementation of std::cin. Added. I unfortunately don't have a test case to add to the suite since this bug only shows itself when using std::cin. The current testsuite setup does not have a way a good way to test std::cin. llvm-svn: 176822
* Quash a whole bunch of warningsHoward Hinnant2011-12-011-4/+4
| | | | llvm-svn: 145624
* Add protection from min/max macrosHoward Hinnant2011-11-291-0/+2
| | | | llvm-svn: 145407
* Windows support by Ruben Van Boxem.Howard Hinnant2011-10-171-0/+2
| | | | llvm-svn: 142235
* _STD -> _VSTD to avoid macro clash on windowsHoward Hinnant2011-06-301-6/+6
| | | | llvm-svn: 134190
* Chris Jefferson noted many places where function calls needed to be ↵Howard Hinnant2011-02-141-1/+1
| | | | | | qualified (thanks Chris). llvm-svn: 125510
* license changeHoward Hinnant2010-11-161-2/+2
| | | | llvm-svn: 119395
* Wiped out some non-ascii characters that snuck into the copyright.Howard Hinnant2010-05-111-2/+2
| | | | llvm-svn: 103516
* libcxx initial importHoward Hinnant2010-05-111-0/+313
llvm-svn: 103490
OpenPOWER on IntegriCloud