Commit graph

64 commits

Author SHA1 Message Date
albert-github
41ddc50278 Add debug listing for sections
Add debug possibilities for sections
2023-09-28 12:45:33 +02:00
Dimitri van Heesch
2e353ba48e
Added debug option '-d entries' to dump the tree of Entries. 2023-08-22 19:15:52 +02:00
Dimitri van Heesch
728b1db96f
Issue #10193: Using an alias within an alias 2023-07-27 21:23:39 +02:00
albert-github
d851a1dfe9 Possibility to see the temporary files used for formulas
In the issue #10096 there was a problem with the bounding box of the formulas, to inspect the temporary files it would need a rebuild  with the remove flag unset.
With the -option `-d formula` it is now possible to get the these files (
2023-05-29 10:35:25 +02:00
Laurent Rineau
e015d3841b Fix a warning (introduced by 88c1899ae2)
.../Git/doxygen/src/debug.cpp: In function ‘uint64_t labelToEnumValue(const QCString&)’:
.../Git/doxygen/src/debug.cpp:96:31: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
   return (it!=s_labels.end()) ? it->second : 0;//Debug::DebugMask::Quiet;
          ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
2023-01-18 11:33:51 +01:00
albert-github
3d87ac5afa Lexical analyzer extra (for: ) for some lexers
We get with `-d lex:defargs` the messages like:
```
Entering lexical analyzer: .../src/defargs.l (for: )
```
due to the conversion from character to QCString and back an empty string is returned
2023-01-16 11:10:57 +01:00
Dimitri van Heesch
e26940ea1e
Fixed some minor issues with -d lex and friends
- `-d lex:xmlcode' was not recogised as valid option
- xml.l did not use same print function as other lexers
- lex start/end write not write to stderr
2023-01-15 20:37:00 +01:00
Dimitri van Heesch
bf0f96b794
Enable the entering/finished lexical scanner messages per scanner 2023-01-15 16:53:45 +01:00
Dimitri van Heesch
88c1899ae2
Improve debugging for lexical scanners
- Debug builds now have lex debugging compiled in by default
- For a release build option `enable_lex_debug` can enabled to compile
  in debug support.
- Option `-d lex` will now turn on debugging output for all lexers.
- Option `-d lex:name` will turn on debugging for lexer `name` only.
2023-01-15 14:48:15 +01:00
Dimitri van Heesch
1e8aa2da70
Replace custom tracing/debug prints by tracing via spdlog
Add -t <file> option to redirect tracing to a file.
If <file> is omitted, trace.txt will be used as file name.
2023-01-14 20:29:36 +01:00
albert-github
ecf265be3b Check debug settings by means of the compiler
Use as much as possible settings that can be verified on validity by the compiler, so when the developer makes a typing error it is shown directly.
2022-12-19 19:45:09 +01:00
Dimitri van Heesch
3e333dff7a
Merge branch 'feature/bug_windows_warn_5219' of https://github.com/albert-github/doxygen into albert-github-feature/bug_windows_warn_5219 2022-09-29 20:57:54 +02:00
albert-github
876aaf8208 Usage of steady_clock
Use the steady_clock (like in portable.cpp and doxygen.cpp) as the system_clock can be adjusted (e.g. leap seconds, daylit saving time, user adjusting the clock on the computer).

**steady clock**
Objects of class steady_clock represent clocks for which values of time_point never decrease as physical
time advances and for which values of time_point advance at a steady rate relative to real time. That is,
the clock may not be adjusted.

**system_clock**
Objects of type system_clock represent wall clock time from the system-wide realtime clock.
2022-09-13 14:27:22 +02:00
albert-github
2d28d501b0 Warning during compilation on Windows systems
This is based on the warning type: 5219 implicit conversion from 'type-1' to 'type-2', possible loss of data
2022-09-13 14:03:24 +02:00
albert-github
5cc149cbf6 Remove unused Validate debug option
Remove unused Validate debug option
2022-08-23 16:23:45 +02:00
Dimitri van Heesch
24ffa230b6
Some changes/improvements
- bring back 'const'
- use existing Debug::print function instead introducing a new one
- remove double "enabled" check
- add more visible begin/end markers for the debug output
2022-02-08 20:35:40 +01:00
albert-github
100c80e708 Making tag information better available
Making the tag info available by means of a debug switch.
(also to overcome some problems due to change in structures)
2022-01-28 12:50:57 +01:00
albert-github
7d91d52da3 issue #9058 Strip leading spaces in QHP file
As the `qhp` file is meant for processing by tools, not for humans to read.
To get a better readable form (indentation and line endings) one has to supply the option `-d qhp` to the doxygen command.
2022-01-23 16:49:35 +01:00
Dimitri van Heesch
446038e8e4
Refactoring: replace old style casts 2022-01-03 20:59:23 +01:00
albert-github
9073285a7c Debug facility for the RTF output
Debug facility for the RTF output, i.e.
- preserve temporary files
- show the conversion of names to labels as used in anchors.
2021-06-17 18:58:46 +02:00
Dimitri van Heesch
592aaa4f17
Refactoring: remove implicit conversion from QCString to const char *
This commit changes the following in relation to string use
- The implicit convert from 'QCString' to 'const char *' is removed
- Strings parameters use 'const QCString &' as much as possible in favor
  over 'const char *'
- 'if (s)' where s is a QCString has been replaced by 'if(!s.isEmpty())'
- data() now always returns a valid C-string and not a 0-pointer.
- when passing a string 's' to printf and related functions 'qPrint(s)' is
  used instead of 's.data()'
- for empty string arguments 'QCString()' is used instead of '0'
- The copy() operation has been removed
- Where possible 'qstrcmp(a,b)==0' has been replaces by 'a==b' and
  'qstrcmp(a,b)<0' has been replaced by 'a<b'
- Parameters of string type that were default initialized with '= 0' are
  no initialized with '= QCString()'
2021-04-22 19:34:13 +02:00
albert-github
9e4d6df2e5 Get preprocessor output without line numbers
For easier comparison of  the original source with a doxygen preprocessed source the line numbers can be a bit of an obstacle.
To remove the line numbers in the preprocessor output the option  `NoLineno` has been added.
(In case `Preprocessor` is not invoked, `NoLineno` has no effect).
2021-02-16 11:44:05 +01:00
Dimitri van Heesch
84e655b1e4
Refactoring: modernize Statistics & time keeping 2021-01-22 21:45:21 +01:00
albert-github
44c1f04b2b Debug facility for the \cite command
When issuing doxygen with `-d cite` the temporary (copied) files / directory are not removed, i.e.:
- bib*.aux
- bib*.bbl
- bib*.blg
- bib2xhtml.pl
- citelist.doc
- doxygen.bst
- bibTmpDir (directory)
2020-07-31 12:49:36 +02:00
albert-github
044fde94fc Compilation warning in debug.cpp
When compiling debug.cpp on a 32-bit Windows system we get the warning:
```
...\doxygen\src\debug.cpp(121): warning C4244: 'return': conversion from '_Rep' to 'int', possible loss of data
        with
        [
            _Rep=__int64
        ]
```

as we only use the seconds representation of the elapsed time we can do the conversion to seconds in the Timer class.
2020-07-06 15:20:19 +02:00
Dimitri van Heesch
10787eed95
Refactoring
- Makes doxycfg library more self contained
- renames _doxygen library to doxymain
- Modernizes Debug implementation
- Moves Doxygen::runningTime into Debug
- Moves full version string to libversion
- Removed mentioning of file version in messages (when
  FILE_VERSION_FILTER is used)
- Move substitute functions into QCString
2020-05-15 11:34:17 +02:00
albert-github
1659f94a4c Possibility to show converted fixed form
Create an easy possibility to show the Fortran source as converted from fixed form to free form.
2019-03-07 17:03:12 +01:00
Charles.Lee
1a9bb06143 Imporvement of performance : Reduce the Java running count
# What is it
- #6465 is the first reqeust.  So I followed up the albert advice.
	- in case of debug you use printf statements, I think that here there better options would be
		- create an -d flag (e.g. -d plantuml) that gives the information, so no need for using the configuration option
		- Follow up : create -d plantuml [debug.h, debug.cpp]
	- usage of printf
		- printf should not be used,all output is steered over calls to routines as defined in message.cpp,
		- Follow up : use Debug::Print(Debug::Plantuml, ...    and msg()
	- usage of std::string / std::map
		- in doxygen the string manipulation is. mostly, done by means of Qt classes (e.g. classes QCString, QString). For consistency these classes should be used.
		- map manipulation is also done by means of Qt classes (dictionary and list classes)
		- Follow up : use QDict QList QCString [plantuml.h, plantuml.cpp]
	- dirent / opendir /readdir
		- when browsing through directories the routines line readFileOrDirectory should probably be used or the techniques used in this routine
		- Follow up : I will follow when I try to reduce redundancy of creating plantuml image.

- Run java minimally
	- Test Case : 4 plantuml
	- Original Run without PLANTUML_RUN_JAVA_ONCE
		- 8.2 sec = 4 times * ( 1.6(java vm) + 0.1 * 1(load multiple file) + process each plantuml (0.35) *1 ) <- prediction
	- New with PLANTUML_RUN_JAVA_ONCE
		- 3.499 sec = 1.6(java vm) + 0.1 * 4(load multiple file) + process each plantuml (0.35) *4 <- prediction
	- Creating Java Virtual Machine has a big portion.

- Result
	- Improving Performance : 8.2 -> 3.499  (in case of 4 plantuml)

# Configuration
- add configuration value in Doxyfile
	- PLANTUML_RUN_JAVA_ONCE = YES

# Debugging
- doxygen -d plantuml
- doxygen -d time -d plantuml

# Tested with following options
- source code of 3 plantuml
- PLANTUML_RUN_JAVA_ONCE = YES  or    NO
- DOT_IMAGE_FORMAT       = png  or    svg
- DOT_CLEANUP            = YES  or    NO
- -d plantuml
2018-08-27 12:14:55 +09:00
Dimitri van Heesch
e11b487853 Bump copyright year 2015-02-26 20:39:53 +01:00
Dimitri van Heesch
a28ff2331d Updated copyright 2014-02-11 20:20:55 +01:00
Dimitri van Heesch
e47f3d0635 Fixed compiler warning related to implicit size_t to int conversion 2013-12-17 21:24:14 +01:00
albert-github
cdbcb67c28 usage: make -d print dev doxygen options
This is an extension / improvement to the pull request 67 from  groleo
- make printing of -d levels more flexible (when adding a new one this is now done automatically)
- layout of the message
2013-12-14 15:22:57 +01:00
Albert
3c0a246bd1 Debug output for lexical analyzer
In case of error messages like:
    input buffer overflow, can't enlarge buffer because scanner uses REJECT
it is not always directly clear from which lexical analyzer (.l file) this problem comes.
This patch helps to find these problems and does the following things:
- when using the option -d lex with doxygen each time a lexical analyzer is called at the start a line like the following line will be given:
    Entering lexical analyzer: pre.l (for: ..../file.c)
  and at the end:
    Finished lexical analyzer: pre.l (for: ..../file.c)
- in case the lexical analyzer has been translated with the -d option of lex / flex the above mentioned lines will be given as part of the lexical analyzer output (to stderr) and look like:
    --entering lexical analyzer: pre.l (for: ..../file.c)
    --finished lexical analyzer: pre.l (for: ..../file.c)
2013-11-13 18:43:28 +01:00
albert-github
b0572abe0c Usage of the -d opion corrected
Giving an error when a wrong -d option is given.
Made some error mesages more consistent.
Corrected usage of the exit call, in case of an error: exit(1) otherwise exit(0).
A closer look should be made on exitDoxygen as it does not contain any exit statements and it is unclear (to me) when it is used.
2013-09-15 19:50:40 +02:00
Dimitri van Heesch
dcd4714c44 Release-1.8.3.1 2013-01-20 13:31:30 +00:00
Dimitri van Heesch
fee4053bd3 Release-1.8.2-20121118 2012-11-18 21:43:28 +00:00
Dimitri van Heesch
0ce3aea886 Release-1.8.1.1 2012-06-10 09:28:22 +00:00
Dimitri van Heesch
34d4ace6d4 Release-1.7.6.1-20120220 2012-02-20 21:09:54 +00:00
Dimitri van Heesch
fd8b446f8a Release-1.7.6.1-20120110 2012-01-10 21:15:46 +00:00
Dimitri van Heesch
eba15fd2fe Release-1.7.3-20110123 2011-01-23 17:25:30 +00:00
Dimitri van Heesch
3eb607c723 Release-1.6.2-20100124 2010-01-24 22:18:59 +00:00
Dimitri van Heesch
f1103ed882 Release-1.5.4-20080101 2008-01-17 18:56:38 +00:00
Dimitri van Heesch
fc90c25edf Release-1.5.4 2008-01-16 19:20:21 +00:00
Dimitri van Heesch
eb59129668 Release-1.5.1-20070219 2007-02-19 18:51:10 +00:00
Dimitri van Heesch
66401e6575 Release-1.5.1-20070107 2007-01-07 21:17:16 +00:00
Dimitri van Heesch
afbfacbcf5 Release-1.5.1-20061202 2006-12-02 14:54:35 +00:00
Dimitri van Heesch
0674d90955 Release-1.4.6-20060507 2006-05-07 18:20:12 +00:00
Dimitri van Heesch
4fa6a6049a Release-1.4.2 2005-03-28 13:38:53 +00:00
Dimitri van Heesch
2b2cf3ee82 Release-1.4.1 2005-01-11 19:39:24 +00:00
Dimitri van Heesch
0593024557 Release-1.3.9.1-20041114 2004-11-14 19:44:16 +00:00