summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-02-23 12:35:23 (GMT)
committerGitHub <noreply@github.com>2020-02-23 12:35:23 (GMT)
commit646b4766c251b565f2651c9db2a718cdfd956c6b (patch)
tree3c0d7228877218fde6f2fc53d23c19ac0a9b4510
parent8075ba0bbe45e1692c678bedd03a14ff167a0b8c (diff)
parent8616d8e1ee61d3fc1a929a04f1594b0f417da7c2 (diff)
downloadDoxygen-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.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pre.l b/src/pre.l
index a082760..fbf7bde 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -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();