diff options
author | Brad King <brad.king@kitware.com> | 2008-05-14 15:54:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-05-14 15:54:32 (GMT) |
commit | 7652a8a1e5cd7095afee45c8212d4c23e5fef599 (patch) | |
tree | 220bb36fc9fcea55c405f297cc8b68b6a4700a87 /Source/cmDependsC.h | |
parent | 600e5e274ea5e78989c9355685e97d6f4d6f28ec (diff) | |
download | CMake-7652a8a1e5cd7095afee45c8212d4c23e5fef599.zip CMake-7652a8a1e5cd7095afee45c8212d4c23e5fef599.tar.gz CMake-7652a8a1e5cd7095afee45c8212d4c23e5fef599.tar.bz2 |
ENH: Teach cmDependsC about user-configured macro transformations.
- Syntax is SOME_MACRO(%)=value-with-%
- Later we will configure these with target and directory properties.
- See issue #6648.
Diffstat (limited to 'Source/cmDependsC.h')
-rw-r--r-- | Source/cmDependsC.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmDependsC.h b/Source/cmDependsC.h index 738e035..dafb112 100644 --- a/Source/cmDependsC.h +++ b/Source/cmDependsC.h @@ -59,6 +59,15 @@ protected: std::string IncludeRegexScanString; std::string IncludeRegexComplainString; + // Regex to transform #include lines. + std::string IncludeRegexTransformString; + cmsys::RegularExpression IncludeRegexTransform; + typedef std::map<cmStdString, cmStdString> TransformRulesType; + TransformRulesType TransformRules; + void SetupTransforms(); + void ParseTransform(std::string const& xform); + void TransformLine(std::string& line); + public: // Data structures for dependency graph walk. struct UnscannedEntry |