mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user