summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsC.h
Commit message (Collapse)AuthorAgeFilesLines
* cmDepends: Define DependencyMap instead of DependencyVectorSebastian Holtermann2019-03-271-3/+2
| | | | | | | | | | | | | In `cmDepends` use `typedef std::map<std::string, std::vector<std::string>> DependencyMap` instead of defining a `class DependencyVector : public std::vector<std::string>` and using it in `std::map<std::string, DependencyVector>`. Since `std::map<std::string, std::vector<std::string>>` is used in various other places, we now reuse all of it's auto generated methods. This doesn't happen when we use `DependencyVector` in a `std::map`, because it is a different class than `std::vector<std::string>`.
* clang-tidy: Use `= delete`Regina Pfeifer2019-01-291-2/+3
|
* cleanup: Prefer compiler provided special member functionsRegina Pfeifer2019-01-251-1/+0
|
* clang-tidy: Use `= default`Regina Pfeifer2019-01-251-1/+1
| | | | | | Suppress some cases in `Source/cmGeneratorExpressionNode.cxx` and `Source/cmUVHandlePtr.h` where a few older compilers require a user-defined default constructor (with `{}`).
* cmDepends: all members accept std::string argumentsVitaly Stakhovsky2019-01-191-2/+2
| | | | | | Most `const char*` arguments converted to `const std::string&` in `cmDepends` and derived classes. In addition performed minor code cleanup.
* clang-tidy: Use default member initializationRegina Pfeifer2018-12-151-6/+3
|
* Use C++11 override instead of CM_OVERRIDEBrad King2017-09-151-2/+2
| | | | | | | | 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 CM_DISABLE_COPYDaniel Pfeifer2017-04-241-4/+2
|
* Use quotes for non-system includesDaniel Pfeifer2017-04-111-2/+2
| | | | | | | | | | | | | 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'
* 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-0/+9
|
* mark functions with CM_OVERRIDEDaniel Pfeifer2016-06-271-5/+4
|
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-6/+11
| | | | | | | | | | | | | 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.
* strings: Remove cmStdString referencesBen Boeckel2014-03-081-8/+8
| | | | | | | | | | | Casts from std::string -> cmStdString were high on the list of things taking up time. Avoid such implicit casts across function calls by just using std::string everywhere. The comment that the symbol name is too long is no longer relevant since modern debuggers alias the templates anyways and the size is a non-issue since the underlying methods are generated since it's inherited.
* stringapi: Use strings for the languagesBen Boeckel2014-03-081-1/+2
|
* cmDepends: allow multiple dependees per dependerAlex Neundorf2012-11-061-2/+2
| | | | | | | | | | | | | | | | | | | | | This patch is heavily inspired by Michael Wild. The interfaces cmDepends::Write and cmDepends::WriteDependencies where extended to allow multiple dependees (sources) per depender (object). cmDepends::Write first collect all dependencies into a std::set before passing it to cmDepends::WriteDependencies. cmDependsC::WriteDependencies also first collects all explicit and implicit dependencies into a std::set and only then writes depend.{internal,make}. The implementation of cmDependsFortran simply loops over all sources and proceeds as before, whereas the cmDependsJava implementation is as trivial as before. This is for preventing exponential growth of depend.{internal,make} in the next commit which fixes dependency-vector erasure in cmDepends::CheckDependencies. Inspired-by: Michael Wild <themiwi@users.sourceforge.net>
* cmDependsC: remove unused member variableAlex Neundorf2012-09-301-3/+0
| | | | Alex
* 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.
* Major optimization of C/C++ dependency scanning.Alexander Neundorf2009-09-231-1/+3
| | | | | | | | | | | | | | Now only the dependencies for the file where the dependencies actually may have changed are rescanned, before that this was done for all source files even if only one source file had changed. This reduces e.g. on my machine the time for scanning the dependencies of kdelibs/khtml/ when only one file (khtml_global.cpp) has changed from around 7.5 seconds to 1.2 seconds. The tests succeed, it does what I expected it to do on kdelibs, and Brad also reviewed the patch, so I think it should be ok. Alex
* ENH: Teach cmDependsC about user-configured macro transformations.Brad King2008-05-141-0/+9
| | | | | | - Syntax is SOME_MACRO(%)=value-with-% - Later we will configure these with target and directory properties. - See issue #6648.
* ENH: Light refactoring of implicit dependency scanning configuration ↵Brad King2008-05-081-9/+4
| | | | | | implementation. - Move lookup of config variables from cmLocalUnixMakefileGenerator3 to cmDepends hierarchy.
* BUG: Patch from Alex to recompute dependencies when the include regex ↵Brad King2007-02-051-0/+3
| | | | changes. This addresses bug#4168.
* ENH: Patch from Alex to speed dependency scanning approximately 2x.Brad King2006-09-131-1/+2
|
* ENH: Make sure all custom command outputs are up to date before scanning ↵Brad King2006-08-311-11/+0
| | | | dependencies. This avoids the need to pass a list of generated files to the dependency scanning code and to rescan after the files have been generated. Currently there is no notion of implicit dependencies of the custom commands themselves so this design is safe. We only need to make sure implicit dependencies are up to date before the make process for the /build part of a target is executed because only this process loads them. This is a step towards fixing bug#3658.
* ENH: a warning fix and some more cleanupKen Martin2006-03-161-1/+1
|
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-13/+13
|
* STYLE: Fix some style issuesAndy Cedilnik2006-03-101-4/+6
|
* BUG: Fix for scanning generated headers included with double-quotes. Also ↵Brad King2006-01-051-0/+3
| | | | fixed double-quote include support to not use the special quoted location when a full path is given on the include line.
* ENH: try to fix hp build problemBill Hoffman2005-12-101-1/+1
|
* ENH: fix compile errorAndy Cedilnik2005-12-091-2/+2
|
* ENH: clean up style a bitBill Hoffman2005-12-091-3/+3
|
* PERF: apply patch for bug 2575 speeds up depend scanningBill Hoffman2005-12-091-2/+16
|
* ENH: Improve performance of check build system by creating another file that ↵Andy Cedilnik2005-10-121-7/+6
| | | | is simpler to parse and therefore much faster overall
* ENH: Adding support for automatically adding the OBJECT_DEPENDS for ↵Brad King2005-08-171-2/+11
| | | | generated header files.
* ENH: reduce the number of files produced still needs a bit more cleanupKen Martin2005-07-271-14/+5
|
* ENH: some changes to the depends signature to be more flexibleKen Martin2005-05-111-4/+5
|
* BUG: Re-implemented dependency line parsing to deal with quoted paths and ↵Brad King2005-05-101-0/+5
| | | | escaped spaces.
* ENH: Added optional verbose output to build system dependency check.Brad King2005-05-061-1/+1
|
* BUG: Fixed scanning to account for double-quote includes.Brad King2005-03-031-2/+7
|
* ENH: Implemented support for include/complain regular expressions for ↵Brad King2005-02-071-3/+9
| | | | dependency scanning. This now includes the possibility that scanning will return failure and the build will stop.
* ENH: Split dependency scanning and checking into separate cmDepends ↵Brad King2005-01-181-0/+70
superclass with language-specific subclasses such as cmDependsC.