Parser: Store the Backtrace for use in issuing messages
This commit is contained in:
parent
96de37092a
commit
db7de303c2
|
@ -30,6 +30,7 @@ struct cmListFileParser
|
||||||
cmListFileArgument::Delimiter delim);
|
cmListFileArgument::Delimiter delim);
|
||||||
cmListFile* ListFile;
|
cmListFile* ListFile;
|
||||||
cmMakefile* Makefile;
|
cmMakefile* Makefile;
|
||||||
|
cmListFileBacktrace Backtrace;
|
||||||
const char* FileName;
|
const char* FileName;
|
||||||
cmListFileLexer* Lexer;
|
cmListFileLexer* Lexer;
|
||||||
cmListFileFunction Function;
|
cmListFileFunction Function;
|
||||||
|
@ -45,6 +46,7 @@ cmListFileParser::cmListFileParser(cmListFile* lf, cmMakefile* mf,
|
||||||
const char* filename)
|
const char* filename)
|
||||||
: ListFile(lf)
|
: ListFile(lf)
|
||||||
, Makefile(mf)
|
, Makefile(mf)
|
||||||
|
, Backtrace(mf->GetBacktrace())
|
||||||
, FileName(filename)
|
, FileName(filename)
|
||||||
, Lexer(cmListFileLexer_New())
|
, Lexer(cmListFileLexer_New())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue