summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratedFileStream.h
Commit message (Collapse)AuthorAgeFilesLines
* Revise include order using clang-format-6.0Kitware Robot2019-10-011-2/+4
| | | | | Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
* clang-tidy: Replace typedef with usingRegina Pfeifer2019-09-031-2/+2
|
* clang-tidy: Use `= delete`Regina Pfeifer2019-01-291-3/+2
|
* clang-tidy: Use default member initializationRegina Pfeifer2018-12-151-4/+4
|
* cmGeneratedFileStream: Use ``std::string const&`` instead of ``const char*``Sebastian Holtermann2018-08-071-6/+6
|
* Fix misc. typosluz.paz2018-06-041-1/+1
| | | | Found via `codespell` and `grep`
* Revise C++ coding style using clang-format-6.0Kitware Robot2018-06-011-2/+3
| | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Use C++11 override instead of CM_OVERRIDEBrad King2017-09-151-1/+1
| | | | | | | | We now require C++11 support including `override`. Drop use of the old compatibility macro. Convert references as follows: git grep -l CM_OVERRIDE -- '*.h' '*.hxx' '*.cxx' | xargs sed -i 's/CM_OVERRIDE/override/g'
* IWYU: Mark cmConfigure.h with pragma: keepDaniel Pfeifer2017-08-261-1/+1
| | | | Also remove `#include "cmConfigure.h"` from most source files.
* Use quotes for non-system includesDaniel Pfeifer2017-04-111-3/+3
| | | | | | | | | | | | | Automate with: git grep -l '#include <cm_' -- Source \ | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g' git grep -l '#include <cmsys/' -- Source \ | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g' git grep -l '#include <cm[A-Z]' -- Source \ | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
* cmGeneratedFileStream: Add optional encoding supportDāvis Mosāns2016-10-061-2/+5
| | | | | This allows to save file stream in different encoding than internal encoding.
* Simplify CMake per-source license noticesBrad King2016-09-271-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* fix a load of include-what-you-use violationsDaniel Pfeifer2016-09-031-2/+1
|
* make sure to include cmConfigure.h before cmStandardIncludes.hDaniel Pfeifer2016-09-031-0/+2
|
* mark functions with CM_OVERRIDEDaniel Pfeifer2016-06-271-1/+1
|
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-5/+5
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Source: Stabilize include orderBrad King2016-04-291-0/+1
| | | | | Each source file has a logical first include file. Include it in an isolated block so that tools that sort includes do not move them.
* cmGeneratedFileStream: Fix spelling in commentRaffi Enficiaud2015-09-171-2/+2
| | | | s/destionation/destination/
* Drop SGI as a CMake host compiler.Stephen Kelly2015-01-081-8/+0
| | | | | It has not been tested since commit v3.1.0-rc1~584^2 (Utilities/Release: Drop IRIX binary generation on ferrari, 2014-04-30).
* stringapi: Use strings for generated file stream namesBen Boeckel2014-03-081-1/+1
|
* Use cmsys::[io]fstream instead of cmsys_ios::[io]fstream.Clinton Stimpson2014-01-071-2/+3
| | | | | Also use SystemTools::Fopen() instead of fopen(). This is to eventually support utf-8 filenames.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* ENH: Add ability to call Visual Studio macros from CMake. Add a CMake Visual ↵David Cole2007-11-161-2/+2
| | | | Studio macro to reload a solution file automatically if CMake makes changes to .sln files or .vcproj files. Add code to call the macro automatically for any running Visual Studio instances with the .sln file open at the end of the Visual Studio Generate call. Only call the macro if some .sln or .vcproj file changed during Generate. Also, add handling for REG_EXPAND_SZ type to SystemTools::ReadRegistryValue - returned string has environment variable references expanded.
* COMP: Fix warning about not being able to automatically generate a copy ↵Brad King2007-08-011-0/+3
| | | | constructor.
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-7/+7
|
* COMP: Remove warningAndy Cedilnik2006-01-121-1/+2
|
* ENH: Add support for binaryAndy Cedilnik2006-01-121-1/+1
|
* ENH: Add a way to overwrite compression extensionAndy Cedilnik2006-01-021-0/+8
|
* ENH: Allow changing of file nameAndy Cedilnik2005-05-101-0/+6
|
* COMP: Added pragma directives for SGI compilers to avoid useless warnings.Brad King2005-05-031-0/+8
|
* ENH: Added Close method and updated Open method to allow streams to be reused.Brad King2005-04-051-5/+17
|
* ENH: Add compression supportAndy Cedilnik2005-01-271-0/+11
|
* ENH: Added default constructor and Open method.Brad King2005-01-261-2/+23
|
* STYLE: Adjusted signature of cmGeneratedFileStream to make copy-if-different ↵Brad King2004-11-031-7/+10
| | | | more explicity.
* COMP: Fix new cmGeneratedFileStream for MSVC.Brad King2004-11-031-0/+2
|
* ENH: Re-implemented cmGeneratedFileStream to look like a real stream and ↵Brad King2004-11-031-106/+49
| | | | replace the destination file atomically. This will avoid problems with the process being terminated while generating a file.
* BUG: make sure global generate is done when cmakelist file chagnes, also ↵Bill Hoffman2004-05-201-0/+1
| | | | make sure guids are stored in the cache so the .sln file does not change every time
* ENH: Added reference to Copyright.txt. Removed old reference to ITK ↵Brad King2002-10-231-3/+3
| | | | copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
* ENH:Updated copyrightWill Schroeder2002-01-211-29/+5
|
* ENH: try to better handle control-c during make MakefilesBill Hoffman2001-06-041-4/+24
|
* BUG: remove warningBill Hoffman2001-05-231-1/+1
|
* BUG: fix to compile on hp with aCCBill Hoffman2001-05-171-1/+1
|
* ERR: const error fixed.Brad King2001-05-161-1/+1
|
* ERR: Added is_open() check in cmGeneratedFileStream::operator bool() so that ↵Brad King2001-05-161-1/+1
| | | | implicit conversion to bool is not used.
* ENH: cmGeneratedFileStream class added to simplify copy-if-different usage ↵Brad King2001-05-161-0/+142
on generated files.