summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-18 19:33:38 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-18 21:56:00 (GMT)
commit61d52e6e77bef903225bd3bad3e381bac73ee557 (patch)
tree40b42b258872096cab15ca5aaac95edc1a2a089d /Source/cmListFileCache.h
parenta271f7f17707c50744c2dbeb20ae82b10c886f4f (diff)
downloadCMake-61d52e6e77bef903225bd3bad3e381bac73ee557.zip
CMake-61d52e6e77bef903225bd3bad3e381bac73ee557.tar.gz
CMake-61d52e6e77bef903225bd3bad3e381bac73ee557.tar.bz2
cmListFileBacktrace: Hide the context-stack implementation detail.
The backtrace will soon not be implemented in terms of a stack of cmListFileContext objects. Keep the cmListFileContext in the API for convenience for now.
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r--Source/cmListFileCache.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h
index d7e29d9..4a1d181 100644
--- a/Source/cmListFileCache.h
+++ b/Source/cmListFileCache.h
@@ -71,7 +71,7 @@ struct cmListFileFunction: public cmListFileContext
std::vector<cmListFileArgument> Arguments;
};
-class cmListFileBacktrace: public std::vector<cmListFileContext>
+class cmListFileBacktrace: private std::vector<cmListFileContext>
{
public:
cmListFileBacktrace(cmLocalGenerator* localGen)
@@ -80,7 +80,12 @@ class cmListFileBacktrace: public std::vector<cmListFileContext>
{
}
+ void Append(cmListFileContext const& context);
+
void MakeRelative();
+
+ void PrintTitle(std::ostream& out);
+ void PrintCallStack(std::ostream& out);
private:
cmLocalGenerator* LocalGenerator;
bool Relative;