Commit graph

840 commits

Author SHA1 Message Date
Dimitri van Heesch
3a40ec2df7
Refactoring: make QCString::length() return size_t type 2023-12-26 09:49:59 +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
0e92a0c1b0
Allow optional width= and height= specifiers for PROJECT_LOGO 2023-12-18 20:56:40 +01:00
Dimitri van Heesch
7fc4bce2bf
issue #10473 doxygen hangs forever after "Building directory list..." 2023-12-15 21:24:23 +01:00
Dimitri van Heesch
f1cb5def27
issue #10449 \include{doc} ignores EXAMPLE_PATH 2023-12-03 15:36:45 +01:00
Dimitri van Heesch
36735cd707
issue #10449 \include{doc} ignores EXAMPLE_PATH
Relaxed the requirement that, when EXAMPLE_PATH is not set, only
an absolute path is resolved. If a relative path from where doxygen is
run exists, this is now also accepted. Works for \include and
\include{doc} equally.
2023-12-03 15:25:41 +01:00
Dimitri van Heesch
627ee6dcb3
issue #10449 \include{doc} ignores EXAMPLE_PATH 2023-12-03 13:55:57 +01:00
Dimitri van Heesch
332323e611
Added const to a couple for references 2023-11-25 13:42:18 +01:00
Dimitri van Heesch
52811731a3
issue #10395 Doxygen link generation does not find concepts unless complete path is specified 2023-11-11 14:38:43 +01:00
Dimitri van Heesch
9b5d3a8bbe
Fixed shadowing warning on older compilers 2023-11-09 20:29:45 +01:00
Dimitri van Heesch
7868f44d4f
Fix potential crash introduced by 83739289f7 2023-11-09 20:25:40 +01:00
Dimitri van Heesch
83739289f7
issue #10349 Autolinks to functions point to the struct with the same name 2023-11-05 13:26:28 +01:00
Dimitri van Heesch
847e2f02e7
Added option HTML_PROJECT_COOKIE
Doxygen stores a couple of settings persistently in the browser (via e.g. cookies).
By default these settings apply to all HTML pages generated by doxygen across all projects.
The HTML_PROJECT_COOKIE tag can be used to store the settings under a project specific
key, such that the user preferences will be stored separately.
2023-11-01 22:12:47 +01:00
Dimitri van Heesch
2f3a72e836
Javascript persistency improvements
- Use session storage for Chromium based browsers when using session cookies for Firefox.
- Store per project cookies (based on PROJECT_NAME + PROJECT_NUMBER setting in the config file)
2023-10-31 21:14:40 +01:00
albert-github
907c56ee40 More consistent warning messages
In the jabref-5.11 package we see a few, less consistent warning messages like:
```
.../jabref-5.11/src/main/java/org/jabref/gui/fieldeditors/URLUtil.java:140: warning: reached end of file while inside a 'code' block!
The command that should end the block seems to be missing!
```
i.e. warning distributed over multiple lines

and
```
.../jabref-5.11/docs/code-howtos/openoffice/code-reorganization.md:20: warning: image file name layers-v1.svg is ambiguous.
Possible candidates:
   E:/Fossies/jabref-5.11/docs/code-howtos/openoffice/layers-v1.svg
   E:/Fossies/jabref-5.11/docs/images/layers-v1.svg

```
- empty line at the end
- no single quotes around `layers-v1.svg`
- indentation by 3 instead of 2 spaces
2023-10-23 11:19:13 +02:00
Dimitri van Heesch
d788d9d88a
Regression fix broken link to source code when CREATE_SUBDIRS is enabled 2023-10-15 11:37:41 +02:00
Dimitri van Heesch
67591cb731
Fix link generation done by createHtmlUrl(). 2023-10-07 19:31:34 +02:00
Dimitri van Heesch
66e3e94112
Reduce code duplication 2023-10-07 16:12:00 +02:00
Dimitri van Heesch
afc902a24a
Merge pull request #10345 from albert-github/feature/bug_project_icon
Add project icon to HTML output
2023-10-06 19:44:49 +02:00
Dimitri van Heesch
19012e55ce
Improve snippet handling 2023-10-06 19:20:11 +02:00
albert-github
7b183c64a4 Add project icon to HTML output
Add the possibility for a prject icon to the HTML output, this is typically shown in the tabs of a HTML browser.
2023-10-05 18:30:17 +02:00
Sebastian Javier D'Alessandro Szymanowski
0268ceef25 Add missing C++20 module file extension
Signed-off-by: Sebastian Javier D'Alessandro Szymanowski <sdalessandro@fi.uba.ar>
2023-09-18 22:20:50 -03:00
Dimitri van Heesch
1108dde1ce
Reduce code duplication 2023-09-18 21:25:29 +02:00
Dimitri van Heesch
c253bfefc1
Merge branch 'feature/bug_python_virtual_2' of https://github.com/albert-github/doxygen into albert-github-feature/bug_python_virtual_2 2023-09-18 20:55:49 +02:00
Dimitri van Heesch
13ca294191
Refactoring: Wrap Entry::section in type safe class EntryType 2023-09-17 22:44:55 +02:00
albert-github
23bf5de384 Warning about internal doxygen inconsistency for python packages (2)
In the Ansible package (through Fossies) we get warnings like:
```
.../lib/ansible/module_utils/facts/virtual/base.py:27: warning: Internal inconsistency: scope for class ansible::module_utils::facts::virtual ::base::Virtual not found!
```
Due to the naming of python the classes in doxygen it is possible that those names will contain reserved names as the path is used in the identification of the class (here virtual).

When `::` is directly in front or after of the word it is a class name and no space should be appended.

A first attempt to get was made by means of #10290 though this had problems with the `operator` keyword as noted in #10304 and had to be reverted.
2023-09-16 17:56:38 +02:00
Dimitri van Heesch
242a9a69a4
Merge branch 'master' into feature/issue_10304 2023-09-15 20:49:58 +02:00
albert-github
fd97948879 Correcting count for volatile when checking redundant white space
Correcting count for volatile
2023-09-14 11:16:20 +02:00
albert-github
bbb1bb0a41 issue #10304 Cannot copydoc operator*
Reverting #10290 (didn't work and had side effects)
2023-09-14 11:01:30 +02:00
albert-github
d60107a8c8 Warning about internal doxygen inconsistency for python packages
In the Ansible package (through Fossies) we get warnings like:
```
lib/ansible/module_utils/facts/virtual/base.py:27: warning: Internal inconsistency: scope for class ansible::module_utils::facts::virtual ::base::Virtual not found!
```
Due to the naming of python the classes in doxygen it is possible that those names will contain reserved names as the path is used in the identification of the class (here `virtual`).
When a `:` is in front of the word it is a class name and no space should be appended.
2023-09-06 16:34:06 +02:00
Dimitri van Heesch
437b484144
Merge pull request #10279 from albert-github/feature/bug_shadow_var
Removing shadowed variables
2023-09-01 20:49:41 +02:00
albert-github
3ecd37d4f4 Removing shadowed variables
Removing shadowed variables as reported by CGAL and GitHub Actions :
```
/home/runner/work/doxygen/doxygen/src/util.cpp: In lambda function:
/home/runner/work/doxygen/doxygen/src/util.cpp:4576:98: warning: declaration of ‘name’ shadows a previous local [-Wshadow]
 4576 |           static constexpr auto hasRecursion = [](const QCString &name,const QCString &subst) -> bool
      |                                                                                                  ^~~~
/home/runner/work/doxygen/doxygen/src/util.cpp:4528:15: note: shadowed declaration is here
 4528 |   std::string name = nm.str();
      |               ^~~~
/home/runner/work/doxygen/doxygen/src/util.cpp:4578:17: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
 4578 |             int i;
      |                 ^
/home/runner/work/doxygen/doxygen/src/util.cpp:4536:12: note: shadowed declaration is here
 4536 |     size_t i = match.position();
      |            ^
/home/runner/work/doxygen/doxygen/src/util.cpp:4579:17: warning: declaration of ‘p’ shadows a previous local [-Wshadow]
 4579 |             int p=0;
      |                 ^
/home/runner/work/doxygen/doxygen/src/util.cpp:4531:10: note: shadowed declaration is here
 4531 |   size_t p=0;
      |          ^
```
2023-09-01 10:12:10 +02:00
albert-github
f38f733125 Spelling correction
Spelling correction
2023-08-31 11:13:19 +02:00
Dimitri van Heesch
09f9ff7b98
Prevent recursive lockup when instantiating complex recursive templates
Problematic file can be found in the open source project folly, file: folly/functional/traits.h
2023-08-30 21:30:46 +02:00
albert-github
c052af0acb Remove Windows compilation warnings
Removing warnings on Windows of the form:
```
warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
```
(see also the GitHub actions)
2023-08-21 11:40:54 +02:00
Dimitri van Heesch
6d80fc7e5d
Add support for C++20 modules 2023-08-16 16:52:56 +02:00
albert-github
d757ec38a6 Adding a separator to ALIASES
In some cases it is very inconvenient to have a comma as argument separator in an alias (e.g. when using function definitions or templates) as all internal commas have to be escaped.
By introducing a separator (like e.g. `;`) this can be made more convenient, easier to maintain and more understandable.

Also placed software for alias handling in a separate file.
2023-07-12 14:31:02 +02:00
Dimitri van Heesch
906571f37a
issue #3476 The encoding of the layout file is not taken into account
Origin: bugzilla #591431
2023-07-02 16:32:26 +02:00
Dimitri van Heesch
4ddbaa97b6
Merge branch 'feature/bug_warning_endline_2' of https://github.com/albert-github/doxygen into albert-github-feature/bug_warning_endline_2 2023-06-20 20:53:03 +02:00
Dimitri van Heesch
9a8b3dad55
issue #7580 No autolink for template functions 2023-06-18 20:15:42 +02:00
Dimitri van Heesch
92c4ee827c
Refactoring: move input and result parameters of getDefs into structs 2023-06-18 18:36:40 +02:00
albert-github
c45c79c7e5 Detection of missing / superfluous \n in warnings
A number of warning messages have a double '\n' due to the fact that the message itself contains a '\n' and the warning routine automatically adds a '\n'.
Some messages are lacking a `\n` at the end which should be present.
In #6924 an automatic correction was attempted but a better solution would be that there is a compile time check that detects the missing / superfluous '\n'.
It is hardly possible to find all automatically as one can always trick a bit by means of something like `err("text %s",str) ` where `str` ends with a `\n`.

Some special constructs were necessary to overcome problems with macro substitution
- tagreader.cpp now using `p_warn` for internal / private warn function
- template.h special constructs, disabling `warn` macro with checks (checks done visibly) and directly calling function.
- trace.h, uses spdlog that has an own `warn` function that is temporary disabled.
- vhdlparser.jj has a function `term`, based on the name `term` in the VHDL standard which has nothing to do wit the doxygen `term` function and is renamed.
2023-06-18 11:22:56 +02:00
Dimitri van Heesch
45ab8a5bd1
Fixed potential data race 2023-06-17 14:47:01 +02:00
albert-github
448cfb8eca Check for remaining markers in the used header and footer for HTML and LaTeX
Check for remaining markers in the used header and footer for HTML and LaTeX.
In case there are none  solved parts in the header / footer this might lead to unexpected results and errors.
2023-05-23 14:57:34 +02:00
Dimitri van Heesch
07abd68f15
Merge branch 'feature/issue_7386' of https://github.com/albert-github/doxygen into albert-github-feature/issue_7386 2023-05-17 20:01:23 +02:00
Dimitri van Heesch
b6fe4f7f7f
Optimize findFileDef locking 2023-05-08 22:42:32 +02:00
Dimitri van Heesch
320fcd9186
Merge pull request #10036 from sternmull/master
Fix for #10035, rename correct file to .bak when using "doxygen -u <some-path>"
2023-05-07 12:40:21 +02:00
Tilman Blumhagen
cbae9ff072 Rename correct file to .bak when using "doxygen -u <some-path>" (issue #10035)
Renaming to .bak was always done inside the current directory because only
the name of the file was considered instead of the full path.
2023-05-07 10:53:05 +02:00
albert-github
093e2a058f issue #10010 SHOW_HEADERFILE doesn't work well for headers with no file extension
Implemented that when a file has no extension and the mapping for files without extension is set to C++ such a file is seen as header file (thanks @jwakely )
2023-04-29 13:41:39 +02:00
albert-github
ad316eaaf2 Warnings in LaTeX output
Based on the doxygen examples another "math shift" warnings was found regarding `$\ast$`.
Creating a larger example revealed some more potential problems:
- math shift for `$\ast$`. $\vert$`, `$\sim$` and `$^\wedge$`
- problems with `~` and `^` in normal text
- some, potential, filename problems
2023-04-22 14:52:06 +02:00