Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doxygen warning format to match Visual Studio

I have doxygen setup as a PostBuild Event in Visual Studio 2013 (C++) as a means of giving warnings about what still needs to be documented.

Does anyone know if its possible to alter the format of the doxygen warning messages

Currently the doxygen format is

D:/project/src/MyFile.h:13: warning: Compound MyClass is not documented.

But if the format were:

D:\project\src\MyFile.cpp(63): warning Compound MyClass is not documented.

Then the errors would get copied from the output into the "Error List" and also double clicking on the error in the output window would take me directly to the line where the documentation was missing

Of course I can write an application to run doxygen in the background and transform the messages (which is what I will do) but if its possible to tell doxygen to generate VS style warnings via the doxygen configuration Then I would prefer to do that.

e.g.

path(line): message

Many thanks in advance

like image 583
MyDeveloperDay Avatar asked Dec 14 '25 06:12

MyDeveloperDay


1 Answers

Sorry to answer my own question, it seems that the doxygen configuration has the following option WARN_FORMAT

by altering it to:

WARN_FORMAT = "$file($line): $text"

Allows the errors to be integrated into visual studios error and output

like image 128
MyDeveloperDay Avatar answered Dec 16 '25 21:12

MyDeveloperDay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!