Commit graph

78 commits

Author SHA1 Message Date
albert-github
7059075d72 Refactoring: Fixing warnings like: Use the "nullptr" literal (3)
Fixing sonar cloud warnings like: Use the "nullptr" literal
Some were missed before or even not reported by sonarcloud
2024-02-20 14:43:42 +01:00
Eli Schwartz
0df6da616f
doxycfg: re-fix linking to spdlog, but at the correct location
Previously, commits:

- 70bb112352
- 71f2ed171a

added spdlog as a dependency of individual programs in addon/ to ensure
that they actually include link-time dependencies on libspdlog.(so|dll)

Also, commit 1e8aa2da70 added spdlog as a
dependency of the primary "doxygen" program.

The underlying issue here is that trace.cpp and trace.h (part of the
doxycfg static library) includes the spdlog headers and thus needs all
of its:
- interface include directories
- compile definitions
- link libraries, if any (and with system spdlog, there will be)

Conversely, the programs don't actually need spdlog at all, they don't
directly use it. They don't need its include directories, nor its
compile definitions, but they do need to link to spdlog::spdlog if and
only if they link to a target -- doxycfg -- which requires spdlog.

CMake automatically includes libspdlog.so in the linker command line
when the doxycfg static library has a private dependency on it, and
doesn't propagate interface include directories or compile definitions
in this case. All this is exactly what we want, both for doxycfg and for
the CLI programs.

Additionally, the doxymain static library includes trace.h and therefore
needs to link to spdlog.

This effectively reverts commits 70bb112352
and 71f2ed171a because those commits were
the incorrect solution to the problem.
2024-01-20 21:37:24 -05:00
Dimitri van Heesch
ca615835cc
Refactoring: Avoid creating QCString from 0 pointer.
To prepare to migrate from QCString to std::string, 0 pointer initialization
should be avoided as this is undefined behavior for std::string.
2024-01-05 10:59:51 +01:00
Dimitri van Heesch
e29c4a5e86
Refactoring: Modernize libversion 2023-11-13 21:07:08 +01:00
Dimitri van Heesch
19012e55ce
Improve snippet handling 2023-10-06 19:20:11 +02:00
مهدي شينون (Mehdi Chinoune)
71f2ed171a
doxyparse: Fix linking to spdlog 2023-09-04 18:50:25 +01:00
Dimitri van Heesch
8802df82c3
Added interactive code folding to the HTML output
Can be controlled via new option HTML_CODE_FOLDING.
2023-07-16 15:59:45 +02:00
albert-github
c42f1be243 Add sqlite3 as local dependent package
Instead of an external package add sqlite3  as local dependent package so it can be used on all platforms.
- used amalgamation of version 3.42 of sqlite3
- no need to do separate compilations to add sqlite3
- on windows only the dll and def were distributed (hard to integrate and would still need the dll)
- consistency between the platforms
2023-05-29 12:54:39 +02:00
albert-github
eb83e5d914 Fix for some permanent redirects
Fix for some permanent redirects
2023-05-10 13:35:54 +02:00
Dimitri van Heesch
9f6210aff7
Support various compiler warnings 2023-04-28 20:05:10 +02:00
albert-github
fca7dd1bc3 bug 615500 Program Icon under Windows
Analogous to the doxywizard adding an icon to the the other executables.
(Icon is less useful as the executables are command line executables, but in file viewers it has an advantage).

The chosen icon is the colored `d` from the doxygen color logo, which is converted to an icon.
2023-03-21 14:12:41 +01:00
Dimitri van Heesch
a31d3b7fdf
Refactoring: Use std::variant for code generators 2023-02-04 20:17:54 +01:00
Dimitri van Heesch
34bd5dcf67
Refactoring: use OutputCodeList for parsing code instead of CodeOutputInterface 2023-02-04 20:17:54 +01:00
Dimitri van Heesch
338f2e146f
Refactoring: simplified the way search data from source code is gathered 2023-01-25 20:34:52 +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
Dimitri van Heesch
be08def964
Refactoring: make a couple of global enums scoped 2023-01-01 23:31:03 +01:00
Dimitri van Heesch
1aa61f958e
Renamed option to WARN_IF_UNDOC_ENUM_VAL
- WARN_IF_ENUM_MEMBER_UNDOCUMENTED is too long.
- Added check to let build fail when too longer options are introduced.
2022-12-26 10:09:22 +01:00
Dimitri van Heesch
58e62e74a6
Merge branch 'master' of https://github.com/Blabla51/doxygen into Blabla51-master 2022-12-26 09:35:37 +01:00
Dimitri van Heesch
8b14bc5cd1
Refactoring: better split output generator and code generator 2022-11-18 20:47:51 +01:00
Johan Bertrand
818db51c7e Added option to have warnings on undocumented enum member 2022-11-10 00:44:58 +01:00
Dimitri van Heesch
a627cf8eb6
Move editbin logic to a separate cmake file 2022-02-10 21:13:44 +01:00
albert-github
bd8e848282 Automatically set right executable properties for windows
In case the `editbin` executable is available automatically set the right properties  of the created executables.
For de bugging purposes it might be useful to have the `doxywizard` not as a "windows" type of executable but as "console" executable, this can be accomplished by means of the setting of `enable_console=ON`.
The `enable_console` only operates on the `doxywizard` executable. Usage like: `cmake -Denable_console=ON ..`
2022-02-07 10:34:59 +01:00
albert-github
b561499ea5 Missing <VERSION> in description of doxyparse
As the word `VERSION>` is an, unknown, HTML tag it is not shown on e.g. github, making it part of a code sections makes it visible (other sections with commands are also shown as code sections).
2021-12-31 15:27:33 +01:00
albert-github
5ca6f9ac61 Correcting labels
In case we have included sources (e.g. due to `INLINE_SOURCES`) and also the `SOURCE_BROWSER` enabled it is possible that we get double labels.
Also the calculation of labels in RTF was not done consistently, sometimes the path was striper and on other moments it wasn;t (especially seen in case CREATE_SUBDIRS
The problem was found using RTF / Docbook on the doxygen internal documentation (not standard) but will happen too in other projects
2021-10-10 18:20:25 +02:00
Dimitri van Heesch
392b7c6086
Use enum for code symbol type instead of passing Definition object 2021-08-17 18:54:37 +02:00
Pieter Pas
0cf5653885 Pass Definition to writeCodeLink
for semantic syntax highlighting
2021-06-29 14:03:33 +02:00
Dimitri van Heesch
a276a29033
Fix compilation issue in doxyparse.cpp 2021-05-01 16:46:00 +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
Dimitri van Heesch
1e77368e15
Refactoring: move qcstring and remove qtools 2021-03-25 22:16:50 +01:00
Dimitri van Heesch
a59cd27893
Refactoring: replace QRegExp by std::regex in doxyparse.cpp 2021-02-20 20:17:52 +01:00
Dimitri van Heesch
3723eb072e
Refactoring: Move xml parser to a separate directory 2021-02-06 18:55:44 +01:00
Dimitri van Heesch
cc0baded76
Refactoring: modernize MemberList 2021-01-22 21:45:19 +01:00
Dimitri van Heesch
7f79d52ff6
Refactoring: remove unused Doxygen::entryDBFileName and Doxygen::objDBFileName 2021-01-01 11:20:17 +01:00
Dimitri van Heesch
7af8870a02
Merge pull request #8263 from albert-github/feature/bug_addon_version
Usage of version and help in addons
2020-12-21 15:00:28 +01:00
Dimitri van Heesch
963caeef1c
Refactoring: replace ClassSDict by ClassLinkedMap/ClassLinkedRefMap 2020-12-19 20:27:37 +01:00
albert-github
b320b14cdf Usage of version and help in addons
More consequent and consistent usage of help and version in addons.
2020-12-19 18:42:18 +01:00
albert-github
5ebf938be4 Correction of spelling errors
Correction of spelling errors (as found by Fossies).
2020-12-03 10:39:02 +01:00
Dimitri van Heesch
eef7b2864d
Merge pull request #8219 from analizo/fix-doxyparse-yaml-output-syntax
quotes added surrounding inheritance tokens on doxyparse output
2020-12-02 20:57:14 +01:00
Joenio Marques da Costa
77b4c3bc7c quotes added surrounding inheritance tokens on doxyparse output
closes analizo/analizo#173
2020-12-01 22:13:58 +01:00
Joenio Marques da Costa
b56bfda718 add .md extension on Doxyparse README doc
closes analizo/analizo#169
2020-12-01 20:45:32 +01:00
Joenio Marques da Costa
abab1ca407 better description of Doxyparse on README doc
closes analizo/analizo#169
2020-12-01 20:44:26 +01:00
Dimitri van Heesch
1611bc8f24
Fix compile issue for doxyparse.cpp
This regression was introduced after removing support for isVisited/setVisited
2020-11-21 16:46:33 +01:00
Dimitri van Heesch
d03e8d9411
Refactoring: modernize TooltipManager class and source reference lists
- Tooltips are now collected per file instead of globally
- Source reference lists now use STL containers
2020-10-20 13:51:24 +02:00
albert-github
854a46d0f3 Compilation warnings in doxyparse
In doxyparse.cpp we got some compilation warnings (Windows 64-bit compiler) like:
```
doxyparse.cpp(299): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
```
these have been eliminated.
2020-10-13 12:17:14 +02:00
Dimitri van Heesch
86904d5b97
Refactoring: Modernize BaseClassList 2020-10-12 20:13:32 +02:00
Dimitri van Heesch
502e03dad2
Fix for broken LaTeX output.
Fixes error:
"\begin{DoxyCodeInclude} on input line 93 ended by \end{DoxyCode}"
while generating the LaTeX version of the manual
2020-09-27 21:08:41 +02:00
Dimitri van Heesch
cfdabb54c5
Refactoring: prepare output generators for multi-threaded use 2020-09-27 20:26:20 +02:00
Anonymous Maarten
e7311a036e Allow building doxygen as a subproject 2020-09-16 19:36:33 +02:00
Dimitri van Heesch
3b6ac9e24f
Make a switch to choose between dynamic library to clang-cpp or static linking against clangTooling 2020-07-20 21:05:08 +02:00
Joakim Tjernlund
3803bec48a Fix #7883 2020-07-19 13:14:25 +02:00