mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
ENH: Improve new error/warning message generation
- Add cmListFileBacktrace to record stack traces
- Move main IssueMessage method to the cmake class instance
(make the backtrace an explicit argument)
- Change cmMakefile::IssueMessage to construct a backtrace
and call the cmake instance version
- Record a backtrace at the point a target is created
(useful later for messages issued by generators)
This commit is contained in:
@@ -57,11 +57,15 @@ struct cmListFileContext
|
||||
long Line;
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream&, cmListFileContext const&);
|
||||
|
||||
struct cmListFileFunction: public cmListFileContext
|
||||
{
|
||||
std::vector<cmListFileArgument> Arguments;
|
||||
};
|
||||
|
||||
class cmListFileBacktrace: public std::vector<cmListFileContext> {};
|
||||
|
||||
struct cmListFile
|
||||
{
|
||||
cmListFile()
|
||||
|
||||
Reference in New Issue
Block a user