Parser: Store the Backtrace for use in issuing messages

This commit is contained in:
Stephen Kelly 2016-01-28 22:10:24 +01:00
parent 96de37092a
commit db7de303c2
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ struct cmListFileParser
cmListFileArgument::Delimiter delim);
cmListFile* ListFile;
cmMakefile* Makefile;
cmListFileBacktrace Backtrace;
const char* FileName;
cmListFileLexer* Lexer;
cmListFileFunction Function;
@ -45,6 +46,7 @@ cmListFileParser::cmListFileParser(cmListFile* lf, cmMakefile* mf,
const char* filename)
: ListFile(lf)
, Makefile(mf)
, Backtrace(mf->GetBacktrace())
, FileName(filename)
, Lexer(cmListFileLexer_New())
{