diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-02-23 12:35:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-23 12:35:23 (GMT) |
commit | 646b4766c251b565f2651c9db2a718cdfd956c6b (patch) | |
tree | 3c0d7228877218fde6f2fc53d23c19ac0a9b4510 | |
parent | 8075ba0bbe45e1692c678bedd03a14ff167a0b8c (diff) | |
parent | 8616d8e1ee61d3fc1a929a04f1594b0f417da7c2 (diff) | |
download | Doxygen-646b4766c251b565f2651c9db2a718cdfd956c6b.zip Doxygen-646b4766c251b565f2651c9db2a718cdfd956c6b.tar.gz Doxygen-646b4766c251b565f2651c9db2a718cdfd956c6b.tar.bz2 |
Merge pull request #7610 from albert-github/feature/bug_pre_filename
Specifying filename in preprocessor debug output
-rw-r--r-- | src/pre.l | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3435,7 +3435,7 @@ void Preprocessor::processFile(const char *fileName,BufStr &input,BufStr &output { char *orgPos=output.data()+orgOffset; char *newPos=output.data()+output.curPos(); - Debug::print(Debug::Preprocessor,0,"Preprocessor output (size: %d bytes):\n",newPos-orgPos); + Debug::print(Debug::Preprocessor,0,"Preprocessor output of %s (size: %d bytes):\n",fileName,newPos-orgPos); int line=1; Debug::print(Debug::Preprocessor,0,"---------\n00001 "); while (orgPos<newPos) @@ -3447,7 +3447,7 @@ void Preprocessor::processFile(const char *fileName,BufStr &input,BufStr &output Debug::print(Debug::Preprocessor,0,"\n---------\n"); if (state->defineManager.defineContext().count()>0) { - Debug::print(Debug::Preprocessor,0,"Macros accessible in this file:\n"); + Debug::print(Debug::Preprocessor,0,"Macros accessible in this file (%s):\n", fileName); Debug::print(Debug::Preprocessor,0,"---------\n"); QDictIterator<Define> di(state->defineManager.defineContext()); Define *def; @@ -3459,7 +3459,7 @@ void Preprocessor::processFile(const char *fileName,BufStr &input,BufStr &output } else { - Debug::print(Debug::Preprocessor,0,"No macros accessible in this file.\n"); + Debug::print(Debug::Preprocessor,0,"No macros accessible in this file (%s).\n", fileName); } } state->defineManager.endContext(); |