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:
Brad King
2008-03-13 13:48:57 -04:00
parent 73df9a5cd4
commit f7f03347a6
8 changed files with 155 additions and 91 deletions

View File

@@ -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()