summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/FormattedStream.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Remove trailing spaceFangrui Song2018-07-301-1/+1
| | | | | | sed -Ei 's/[[:space:]]+$//' include/**/*.{def,h,td} lib/**/*.{cpp,h} llvm-svn: 338293
* Sort the remaining #include lines in include/... and lib/....Chandler Carruth2017-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | I did this a long time ago with a janky python script, but now clang-format has built-in support for this. I fed clang-format every line with a #include and let it re-sort things according to the precise LLVM rules for include ordering baked into clang-format these days. I've reverted a number of files where the results of sorting includes isn't healthy. Either places where we have legacy code relying on particular include ordering (where possible, I'll fix these separately) or where we have particular formatting around #include lines that I didn't want to disturb in this patch. This patch is *entirely* mechanical. If you get merge conflicts or anything, just ignore the changes in this patch and run clang-format over your #include lines in the files. Sorry for any noise here, but it is important to keep these things stable. I was seeing an increasing number of patches with irrelevant re-ordering of #include lines because clang-format was used. This patch at least isolates that churn, makes it easy to skip when resolving conflicts, and gets us to a clean baseline (again). llvm-svn: 304787
* Added LLVM_FALLTHROUGH to address gcc warning: this statement may fall through.Galina Kistanova2017-05-191-0/+1
| | | | llvm-svn: 303457
* Re-sort includes with sort-includes.py and insert raw_ostream.h where it's used.Benjamin Kramer2015-03-231-0/+1
| | | | llvm-svn: 232998
* [C++11] Make use of 'nullptr' in the Support library.Craig Topper2014-04-071-1/+1
| | | | llvm-svn: 205697
* Add line tracking support to FormattedStream Daniel Malea2013-05-081-20/+25
| | | | | | | | - previously formatted_raw_ostream tracked columns, now it tracks lines too - used by (upcoming) DebugIR pass to know the line number to connect to each IR instruction llvm-svn: 181463
* Add missing standard headers. Patch by Joerg Sonnenberger!Nick Lewycky2010-12-191-0/+1
| | | | llvm-svn: 122193
* Make tool_output_file's raw_ostream instance a member variable insteadDan Gohman2010-09-011-3/+0
| | | | | | | | | | of a base class. This makes it possible to unregister the file from FilesToRemove when the file is done. Also, this eliminates the need for formatted_tool_output_file. llvm-svn: 112706
* Introduce a new tool_output_file class, which extends raw_ostream withDan Gohman2010-08-201-0/+3
| | | | | | | | functionality that most command-line tools need: ensuring that the output file gets deleted if the tool is interrupted or encounters an error. llvm-svn: 111595
* Fix various doxygen warnings.Dan Gohman2010-02-221-2/+0
| | | | llvm-svn: 96779
* make PadToColumn return the stream so you can use:Chris Lattner2010-02-151-1/+2
| | | | | | OS.PadToColumn(42) << "foo"; llvm-svn: 96208
* Change errs() to dbgs().David Greene2010-01-051-0/+8
| | | | llvm-svn: 92641
* switch formattedstream to use raw_ostream::indent. This eliminatesChris Lattner2009-08-221-10/+1
| | | | | | the weird MAX_COLUMN_PAD limitation. llvm-svn: 79785
* raw_ostream: Reduce FormattedStream's reliance on raw_ostream's implementation.Daniel Dunbar2009-08-181-21/+18
| | | | | | | | | | | | | | - Kill off begin(), end(), and iterator. It isn't clear what these mean. Instead provide getBufferStart(), which can be used with GetNumBytesInBuffer to the same effect. - Update ComputeColumn to take arguments for the buffer to scan, this simplifies the implementation of write_impl substantially. - This should also fix possible problems with the scanning pointer pointing outside of the current raw_ostream buffer. llvm-svn: 79379
* the MinPad argument to PadToColumn only really makes sense to be 1,Chris Lattner2009-08-171-4/+3
| | | | | | just remove the argument and replace it with 1. llvm-svn: 79246
* Add support for column computation on unbuffered streams.Dan Gohman2009-08-151-15/+38
| | | | llvm-svn: 79065
* Move FormattedStream's write_impl out of line.Dan Gohman2009-08-151-0/+6
| | | | llvm-svn: 79064
* Remove an unnecessary #include.Dan Gohman2009-08-151-1/+0
| | | | llvm-svn: 79063
* Re-apply previous changes and improve column padding performance some more.David Greene2009-07-291-17/+21
| | | | llvm-svn: 77461
* Revert r77397, it causes significant regressions in llc performance.Daniel Dunbar2009-07-291-9/+4
| | | | llvm-svn: 77425
* Improve performance of PadToColumn by eliminating flushes.David Greene2009-07-281-4/+9
| | | | llvm-svn: 77397
* Write space padding as one string to speed up comment printing.David Greene2009-07-231-3/+13
| | | | llvm-svn: 76910
* Use size_t.Dan Gohman2009-07-161-1/+1
| | | | llvm-svn: 76069
* minor syntax cleanupChris Lattner2009-07-141-11/+5
| | | | llvm-svn: 75707
* Have asm printers use formatted_raw_ostream directly to avoid aDavid Greene2009-07-141-0/+13
| | | | | | dynamic_cast<>. llvm-svn: 75670
* Make some more changes suggested by Chris. Manipulators go away.David Greene2009-07-131-58/+41
| | | | llvm-svn: 75472
* Make changes suggested by Chris and eliminate newly-added raw_ostreamDavid Greene2009-07-101-0/+74
hooks as they're no longer needed. The major change with this patch is to make formatted_raw_ostream usable by any client of raw_ostream. llvm-svn: 75283
OpenPOWER on IntegriCloud