Commit graph

126 commits

Author SHA1 Message Date
albert-github
2447842733 Refactoring: Fixing warnings like: Use the "nullptr" literal (2)
Fixing sonar cloud warnings like: Use the "nullptr" literal
2024-02-19 20:33:16 +01:00
Dimitri van Heesch
aa744b4ccc
Restructured the code a bit
- Keeps "value" and "override" bool together override + apply functions
- Packs booleans together using bitfields to reduce memory footprint
- Fixes issue with applying the correct default value when no overrules are given
- Reduce code duplication
2024-02-11 14:23:34 +01:00
albert-github
63e322550c issue #10636 weird behavior with \hideinheritancegraph
Adding the ExplicitSet test for other "show" / "hide? constructs
2024-02-09 17:40:56 +01:00
albert-github
41426a4de0 issue #10636 weird behavior with \hideinheritancegraph
After review
2024-02-09 12:43:38 +01:00
albert-github
53f2225e93 issue #10636 weird behavior with \hideinheritancegraph
Implemented an explicit / implicit switch so the last explicit setting of `\inheritancegraph / `\hideinheritancegraph` will be used.

NOTE: this is just an implementation for the inheritancegraph and when acceptable it should be extended to other "show" / "hide" constructs.
2024-02-08 11:57:39 +01:00
albert-github
0d4551b78a Make SrcLangExt an enum class
Make `SrcLangExt` an `enum class` so no no numbers can be used..
2024-01-14 16:30:55 +01:00
Dimitri van Heesch
97618c3a50
Refactoring: QCString::resize
Make QCString behavior more similar to std::string
- Replace resize(0) by clear()
- Replace resize(n+1) by resize(n)
- Replace truncate(n) by resize(n)
2023-12-25 14:32:24 +01:00
Dimitri van Heesch
13ca294191
Refactoring: Wrap Entry::section in type safe class EntryType 2023-09-17 22:44:55 +02:00
albert-github
990cbf240c More flexible inline sources regarding show / hide
For different graphs graphs it is possible to steer the creation process on a 1 to 1 base (commands like \callgraph and \hidecallgraph).

Introducing for the inline sources:
```
    \showinlinesource and \hideinlinesource
```
2023-09-12 16:02:29 +02:00
Dimitri van Heesch
5aef3acd1e
Refactoring: Move class/member specifier bits into own class
Also split off VHDL specifiers as they behave as a enum.
2023-08-27 19:38:40 +02:00
albert-github
6c14e55dbe More flexible inheritance graphs regarding show / hide
For call / caller / include / included by graphs it is possible to steer the graph creation process on a 1 to 1 base (commands like \callgraph and \hidecallgraph).

Introducing for the directory graphs:
```
    \inheritancegraph and \hideinheritacegraph
```
2023-08-25 13:08:25 +02:00
Dimitri van Heesch
2fc3b83c7b
Merge branch 'master' into feature/bug_collab_graph 2023-08-24 19:09:31 +02:00
Dimitri van Heesch
104bcd8845
Merge pull request #10254 from albert-github/feature/bug_group_graphs
More flexible group dependency graphs regarding show / hide
2023-08-24 19:06:30 +02:00
albert-github
60039099e4 More flexible collaboration graphs regarding show / hide
For call / caller / include / included by graphs it is possible to steer the graph creation process on a 1 to 1 base (commands like \callgraph and \hidecallgraph).

Introducing for the directory graphs:
```
    \collaborationgraph and \hidecollaborationgraph
```
2023-08-24 12:25:29 +02:00
Dimitri van Heesch
d86687df76
issue #10253 Newer version using a lot of RAM compared to older version 2023-08-23 19:53:21 +02:00
albert-github
e5e0d795f8 More flexible group dependency graphs regarding show / hide
For call / caller / include / included by graphs it is possible to steer the graph creation process on a 1 to 1 base (commands like \callgraph and \hidecallgraph).

Introducing for the group dependency graphs:
```
    \groupgraph and \hidegroupgraph
```
2023-08-23 11:52:04 +02:00
albert-github
9f51089244 More flexible directory graphs regarding show / hide
For call / caller / include / included by graphs it is possible to steer the graph creation process on a 1 to 1 base (commands like \callgraph and \hidecallgraph).

Introducing for the directory graphs:
```
    \directorygraph and \hidedirectorygraph
```
2023-08-20 18:00:14 +02:00
Dimitri van Heesch
1c8273de56
Merge branch 'master' into feature/bug_incl_graph 2023-08-18 11:41:09 +02:00
Dimitri van Heesch
6d80fc7e5d
Add support for C++20 modules 2023-08-16 16:52:56 +02:00
albert-github
ad81bcf887 More flexible include graphs regarding show / hide
For the `INCLUDE_GRAPH` and the `INCLUDED_BY_GRAPH` it is possible to get a warning like:
```
warning: Included by graph for 'includes.h' not generated, too many nodes (268), threshold is 250. Consider increasing DOT_GRAPH_MAX_NODES.
```

This warning is quite disruptive especially in case `WARN_AS_ERROR` is set. The only way to prevent the warning and its consequences is to increase the `DOT_GRAPH_MAX_NODES` meaning there there might be some very large graphs (also at other places) or the set `INCLUDED_BY_GRAPH=NO` meaning, potential, loosing quite a few useful graphs.
For call / caller graphs it is possible to steer the graph creation process on a 1 to 1 base (commands like `\callgraph` and `\hidecallgraph`).

Introducing for the include graphs:
- `\includegraph` and `\hideincludegraph`
- `\includedbygraph` and `\hideincludedbygraph`

Note: we needed  to set in the `layout_defailt.xml`:
```
    <includegraph visible="yes"/>
    <includedbygraph visible="yes"/>
```
as otherwise `\includegraph`and `\includedbygraph` won't work.
2023-08-12 11:46:29 +02:00
Biswapriyo Nath
ffb4bcb962 Fix variable name collision with clang mingw
This changes the variable name from 'stat' to 'isStatic'.
Otherwise the 'stat' name come into conflict with 'stat'
macro in mingw-w64 headers. This fixes the following error:

commentscan.l:3074:21: error: no member named '_stat64' in 'Entry'
  yyextra->current->stat = TRUE;
  ~~~~~~~~~~~~~~~~  ^

The 'stat' macro is defined in sys/stat.h file in mingw-w64
like this '#define stat _stat64'
2023-02-09 18:12:12 +05:30
Dimitri van Heesch
be08def964
Refactoring: make a couple of global enums scoped 2023-01-01 23:31:03 +01:00
albert-github
b0b601f410 issue #9702 How can I add custom tags that would be similar to "inline" and "static" to some functions?
Adding the new command `\qualifier` that gives the possibility to define "labels" with functions., variables etc.
2022-12-19 19:03:30 +01: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
a9e4a9e5b5
C++20 concepts: added support for parsing requires-clauses 2021-04-08 21:19:25 +02:00
Dimitri van Heesch
97415f7b45
Regression: source code was not longer visible in HTML/LaTeX/docbook output 2021-03-31 18:38:50 +02:00
Dimitri van Heesch
c48639744a
Refactoring: Add TextStream buffer to improve output writing performance
- direct use of std::stringstream and std::ostream gave a 30%
  drop in performance.
2021-03-28 14:25:48 +02:00
Dimitri van Heesch
221ad88f04
Fix for Linux build (missing #include <atomic>) 2021-03-26 21:13:57 +01:00
Dimitri van Heesch
5d0281a264
Refactoring: replace QGString by std::ostringstream 2021-03-23 19:44:37 +01:00
Dimitri van Heesch
fa1897b188
Refactoring: replace QFile/FTextStream with fstream/stringstream 2021-03-18 21:57:40 +01:00
Dimitri van Heesch
d0f24b762e
Multi-threaded parsing: added locks around global data 2020-06-17 20:49:11 +02:00
Dimitri van Heesch
b265433382
Added experimental multi-thread input processing support.
This is disabled by default. It can be enabled by setting MULTITHREADED_INPUT to 1
in doxygen.h. Still has many data races, so don't use for anything other than development!
2020-05-31 19:58:24 +02:00
Dimitri van Heesch
9e2b6a2dac
Performance improvements after profiling
In some cases performance dropped when upgrading from version 1.8.16 to 1.8.17 or 1.8.18.
With these changes the performance should be back to normal again.
2020-04-24 09:03:09 +02:00
Dimitri van Heesch
7296e6bf11
issue #7635: Incorrect location for enum in XML file 2020-03-14 14:47:56 +01:00
Dimitri van Heesch
aca13723a9
Restructure the way RefLists are handled 2020-02-27 22:39:20 +01:00
Dimitri van Heesch
eace8c9e3c
issue #7472: Serious regression: /**< comments cause functions to be silently ignored 2020-01-09 20:12:05 +01:00
Dimitri van Heesch
6d4835dbe0
Changed std::unique_ptr<Entry> to std::shared_ptr<Entry> at avoid use after free issues 2019-12-08 11:18:56 +01:00
Dimitri van Heesch
38f1441dc3
Replaced QList<ListItemInfo> with std::vector<ListItemInfo> 2019-10-29 22:54:24 +01:00
Dimitri van Heesch
4b745debae
Replaced QList<SectionInfo> by std::vector<SectionInfo> 2019-10-29 22:54:21 +01:00
Dimitri van Heesch
d38df57916
Replaced QList<Grouping> with std::vector<Grouping> 2019-10-29 22:54:21 +01:00
Dimitri van Heesch
94e8899c80
Replaced QList<BaseInfo> with std::vector<BaseInfo> 2019-10-29 22:54:17 +01:00
Dimitri van Heesch
d5a41b029f
Embed TagInfo struct inside Entry 2019-10-28 20:18:10 +01:00
Dimitri van Heesch
c38a6fe88c
Changed ArgumentList to be an STL container 2019-10-27 12:55:16 +01:00
Dimitri van Heesch
79f6a43c5f
Fix lifetime issue for Entry objects. 2019-10-13 23:53:12 +02:00
Dimitri van Heesch
ae0a5ec2a1
Use smartpointers to manage the lifetime of Entry objects 2019-10-07 21:01:10 +02:00
Dimitri van Heesch
af363c50c6
Remove persistent storage of Entry objects 2019-02-17 12:39:58 +01:00
Dimitri van Heesch
b6662b61dd Fixed some more small memory leaks 2018-12-26 11:49:42 +01:00
Joe George
e81a74499e
Merge remote-tracking branch 'doxygen/master' 2018-11-05 11:58:13 -05:00
Mark Spruiell
3a97099d5e
Added *.ice files as a recognized file type.
Added a Slice-optimized output mode.
2018-10-22 15:21:42 -04:00
albert-github
0697535ad3 Add commands to handle referenced by relation and references relation
Analogous to call graph and caller graph this patch provides an implementation for the referenced by relation and references relation.
Providing the commands:
- referencedbyrelation
- hidereferencedbyrelation
- referencesrelation
- hidereferencesrelation

Motivation is that some lists can get extremely large and also there is now more symmetry between the textual and graphical out.
2018-10-17 19:10:24 +02:00