summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-02-23 11:36:24 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-02-23 11:36:24 (GMT)
commit8616d8e1ee61d3fc1a929a04f1594b0f417da7c2 (patch)
tree3c0d7228877218fde6f2fc53d23c19ac0a9b4510
parent8075ba0bbe45e1692c678bedd03a14ff167a0b8c (diff)
downloadDoxygen-8616d8e1ee61d3fc1a929a04f1594b0f417da7c2.zip
Doxygen-8616d8e1ee61d3fc1a929a04f1594b0f417da7c2.tar.gz
Doxygen-8616d8e1ee61d3fc1a929a04f1594b0f417da7c2.tar.bz2
Specifying filename in preprocessor debug output
Especially when running with `QUIET=YES` it is no clear which file is preprocessed, so the filename is added to the 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();