diff options
author | albert-github <albert.tests@gmail.com> | 2020-10-03 17:45:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-03 17:45:59 (GMT) |
commit | 21bc8b5077ff95c823f9633f81c0738c271219bd (patch) | |
tree | 63200149db3b76224fadd3aa595f5f2e8340b544 /src/message.cpp | |
parent | a296ad92c2f8c1252c305ac39ecaef7c83549c2f (diff) | |
download | Doxygen-21bc8b5077ff95c823f9633f81c0738c271219bd.zip Doxygen-21bc8b5077ff95c823f9633f81c0738c271219bd.tar.gz Doxygen-21bc8b5077ff95c823f9633f81c0738c271219bd.tar.bz2 |
Flush warnings file (#8069)
* Flush warnings file
When having a large project the warnings file is buffered but when a long time there are no warnings emitted the last warnings are not yet written.
During testing tis is most obvious when the `dot` process starts and one needs the `.dot` files but not the converted files at hat moment one wants to kill the doxygen process but the result is an incomplete warnings file of the warnings that should already be written.
Created a flush function for the warnings file and placed it at a few strategic points.
* Flush warnings file
Last minute change without proper testing ( :-( )
* Flush warnings file
void is the default changed for consistency and due to (http://www.dietmar-kuehl.de/mirror/c++-faq/newbie.html#faq-29.4):
> C programmers often use f(void) when declaring a function that takes no parameters, however in C++ that is considered bad style. In fact, the f(void) style has been called an "abomination" by Bjarne Stroustrup, the creator of C++, Dennis Ritchie, the co-creator of C, and Doug McIlroy, head of the research department where Unix was born.
Diffstat (limited to 'src/message.cpp')
-rw-r--r-- | src/message.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/message.cpp b/src/message.cpp index ec98b0f..e107139 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -279,6 +279,12 @@ void term(const char *fmt, ...) exit(1); } +void warn_flush() +{ + fflush(warnFile); +} + + void printlex(int dbg, bool enter, const char *lexName, const char *fileName) { const char *enter_txt = "entering"; |