diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-31 17:37:08 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-05 23:37:15 (GMT) |
commit | 6361f680568c81e0391fa56cf9a7f4637bd745dc (patch) | |
tree | 24e8c14c2bf179a931ea9d1baa44f5ead864b419 /Source/cmMakefile.h | |
parent | 94704d759cc8939f3573122d36d52c4598fd04ba (diff) | |
download | CMake-6361f680568c81e0391fa56cf9a7f4637bd745dc.zip CMake-6361f680568c81e0391fa56cf9a7f4637bd745dc.tar.gz CMake-6361f680568c81e0391fa56cf9a7f4637bd745dc.tar.bz2 |
cmState: Store execution context.
Extend snapshot creation API to store the file being executed and the
entry point to get to that context.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 0ade8e1..01c9e8c 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -720,7 +720,7 @@ public: class FunctionPushPop { public: - FunctionPushPop(cmMakefile* mf, + FunctionPushPop(cmMakefile* mf, std::string const& fileName, cmPolicies::PolicyMap const& pm); ~FunctionPushPop(); @@ -733,8 +733,8 @@ public: class MacroPushPop { public: - MacroPushPop(cmMakefile* mf, - cmPolicies::PolicyMap const& pm); + MacroPushPop(cmMakefile* mf, std::string const& fileName, + cmPolicies::PolicyMap const& pm); ~MacroPushPop(); void Quiet() { this->ReportError = false; } @@ -743,9 +743,11 @@ public: bool ReportError; }; - void PushFunctionScope(cmPolicies::PolicyMap const& pm); + void PushFunctionScope(std::string const& fileName, + cmPolicies::PolicyMap const& pm); void PopFunctionScope(bool reportError); - void PushMacroScope(cmPolicies::PolicyMap const& pm); + void PushMacroScope(std::string const& fileName, + cmPolicies::PolicyMap const& pm); void PopMacroScope(bool reportError); void PushScope(); void PopScope(); |