Commit graph

316 commits

Author SHA1 Message Date
Dimitri van Heesch
76f5a1e2f3
Adding raise option for @include{doc} 2024-03-10 11:28:04 +01:00
Dimitri van Heesch
dba1577cce
issue #10582 Problem matching arguments of functions (parameter matching on function pointers) 2024-01-28 16:23:45 +01:00
Dimitri van Heesch
22dce5a9f6
Fixed invalid escape sequence '\/' warning in runtests.py 2024-01-07 13:14:45 +01:00
Sebastian Huber
3b360dfcf9 Fix @enum command with @ingroup
Since commit bd99649d9d the groups of an
enum documentation entry are used to associate the documentation entry
with a definition.  However, this broke the case were a matching
definition is not yet associated with a group.  Reorder the searches to
fix this issue.

Fix #10151.
2023-11-12 16:04:05 +01:00
Sebastian Huber
16d787ec53 Add test case for #10151 2023-11-12 15:53:18 +01:00
Dimitri van Heesch
3bcabe5d0a
Merge pull request #10286 from pyrophorol/add-bibtex-as-dependency
add bibtex to testing readme as dependency
2023-10-17 20:58:58 +02:00
pyrophorol
eaf9d3ec11 add LaTeX and perl to testing readme as dependencies 2023-09-06 21:37:15 +03:00
albert-github
e1dbdb4ea5 Update of testing README.txt
- adding option `--exclude_id` to the readme
- correcting text of `--id`
- correcting some missing closing brackets (also in the python script).
2023-09-06 10:30:22 +02:00
albert-github
cf8c72a232 Remove obsolete parts from cmake configuration files
Doxygen requires CMake version 3.14
Removing parts that tested against CMake version 3.11 (the `testing/CMakeLists.txt` was actually introduced in CMake version 3.12, so test was not 100% either)
2023-08-30 11:11:53 +02:00
albert-github
f535d0f3e4 Consistency Python_EXECUTABLE in CMake
Some more PYTHON_EXECUTABLE to Python_EXECUTABLE, apparently didn't influence the normal flow build, but is better for consistency.
2023-08-19 10:50:37 +02:00
albert-github
ecd382e5b9 Possibility to exclude tests by number
After review, avoid code duplication
2023-08-18 12:59:02 +02:00
albert-github
f26e938200 Possibility to exclude tests by number
When selecting all or a range of tests it sometimes is useful to disable one or more tests , for this purpose the option `--exclude_id` is introduced.
2023-08-03 14:22:24 +02:00
Dimitri van Heesch
ea305c6f58
Make multi-line macro definitions foldable 2023-08-02 15:14:59 +02:00
albert-github
545a42601f Correcting protection of file
Incorrect protection for file, should be 644 and not 755
2023-07-31 15:56:15 +02:00
albert-github
3123107c9a Yesting with CLANG_ASSISTED_PARSING=YES
Fixing some, easy, problems based on the usage of ` CLANG_ASSISTED_PARSING=YES` with the tests
2023-07-31 12:46:58 +02:00
albert-github
bcc6708e79 Non readable error message in tests
Due to the `split('\n')` we lost the return ant thus got a hard to read error message i.e.:
```
No declaration for attribute data-start of element divNo declaration for attribute data-end of element divNo declaration for attribute data-start of element divNo declaration for attribute data-end of element divNo declaration for attribute data-start of element divNo declaration for attribute data-end of element divNo declaration for attribute data-start of element divNo declaration for attribute data-end of element divDocument test_output_013/html/013__class_8h_source.xhtml does not validate
```
instead of
```
No declaration for attribute data-start of element div
No declaration for attribute data-end of element div
No declaration for attribute data-start of element div
No declaration for attribute data-end of element div
No declaration for attribute data-start of element div
No declaration for attribute data-end of element div
No declaration for attribute data-start of element div
No declaration for attribute data-end of element div
Document test_output_013/html/013__class_8h_source.xhtml does not validate
```
2023-07-18 16:02:31 +02:00
albert-github
50163f86a9 Fix for tests failing XHTML validation
The tests were temporarily fixed for the use of `data-start` and `data-end`. These items have now been added to the dtd
2023-07-17 10:48:10 +02:00
Dimitri van Heesch
0ed044b83a
Fix for tests failing XHTML validation
New HTML_CODE_FOLDING option uses data-* attributes which are not listed in the
XHTML DTD. For now disabled the option for the tests that fail on it.
2023-07-16 16:32:08 +02:00
Zhuo Zhang
1f6d31dffc style: use 2 spaces in testing/CMakeLists.txt 2023-05-25 14:59:27 +08:00
albert-github
2de4263a43 Incorrect links and references testing
In test 31 the references were permanent redirects
In test 37 the references in the msc images were incorrect (copy paste problem)
2023-04-24 17:56:39 +02:00
Dimitri van Heesch
a653287a0d
Merge pull request #9995 from albert-github/feature/bug_warn_latex_font
Remove font warning for test 65 (i.e. Japanes-en)
2023-04-21 20:21:36 +02:00
albert-github
29e051949e Remove font warning for test 65 (i.e. Japanes-en)
Remove the font warning in LaTeX:
```
LaTeX Font Warning: Font shape `C70/min/m/n' undefined
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
```

Solution based on: https://tex.stackexchange.com/a/398856/44119

The removal has to be global, so we need an `LATEX_EXTRA_STYLESHEET`
2023-04-21 14:09:10 +02:00
albert-github
e8f0b1753a Adding some attributes to dtd validation
Adding:
- `allowfullscreen` attribute to `iframe` tag validation (see: https://www.w3schools.com/tags/tag_iframe.asp)
- `placeholder` attribute to `input` tag validation (it is already used in menu.js, see: https://www.w3schools.com/tags/tag_input.asp)

(Both problems were found through CGAL)
2023-04-20 12:00:08 +02:00
albert-github
a18e4c76ed bug 473140 Broken anonymous union data in XML
Remove artificial anonymous identification (at the known places).
2023-04-12 15:04:23 +02:00
Dimitri van Heesch
b13ed7f01a
Merge pull request #9952 from sebhub/use-group-association
Use groups to associate documentation entries
2023-04-01 13:42:55 +02:00
Sebastian Huber
1d9b0fcfa1 Fix define body section/def settings
Set the define body section/def only if it is not already set and
present in the entry.  Move common code block to helper function.
2023-03-24 20:15:38 +01:00
Sebastian Huber
8f04181ff0 Add test case for direct define documentation
The test case provides a reference for the bodyfile, bodyline, and
bodyend location attributes of defines.
2023-03-24 20:15:38 +01:00
Sebastian Huber
55b927f95e Restrict global member search to groups of entry 2023-03-24 20:15:38 +01:00
Sebastian Huber
9b9c9266ab Add test case for variable doc association
This test case shows that the documentation entry for a variable is
added to the first variable found with the same name even if they do not
belong to the same group.

This test case produces the following warnings:

100_a.c:79: warning: Member documentation for i found several times in @ingroup groups!
2023-03-24 20:15:38 +01:00
Sebastian Huber
5926bebfc4 Add test case for typedef doc association
This test case shows that the documentation entry for a typedef is added
to the first typedef found with the same name even if they do not belong
to the same group.

This test case produces the following warnings:

100_a.c:72: warning: Member documentation for T found several times in @ingroup groups!
2023-03-24 20:15:38 +01:00
Sebastian Huber
a32006b0cf Add test case for enum field doc association
This test case shows that the documentation entry for an enum field is
added to the first enum found with the same name even if they do not
belong to the same group.

This test case produces the following warnings:

100_a.c:21: warning: Member documentation for A found several times in @ingroup groups!
more_100_c.c:74: The member will remain in group A, and won't be put into group B
100_a.c:21: warning: Member documentation for B found several times in @ingroup groups!
more_100_c.c:82: The member will remain in group A, and won't be put into group B
2023-03-24 20:15:38 +01:00
Sebastian Huber
12feabdb96 Add docs to static functions if group matches
Associate the documentation of a static function with a static function
of the same name in another file if they belong to the same group.
2023-03-24 20:15:38 +01:00
Sebastian Huber
0d38b549f3 Add test case for function doc association
This test case shows that the documentation entry for a static function
is not added a static function of the same name in another file even if
they belong to the same group.
2023-03-24 20:15:38 +01:00
Sebastian Huber
e56eb6bf15 Add define documentation by groups
Associate the define documentation in a separate file with a define of
the same name in another file if they belong to the same group.
2023-03-24 20:15:38 +01:00
Sebastian Huber
9caa4bcad1 Add test case for define doc association
This test case shows that the define documentation in a separate file is
not added to defines of the same name in another file even if they
belong to the same group.
2023-03-24 20:15:38 +01:00
Sebastian Huber
bd99649d9d Add enum documentation by groups 2023-03-24 20:15:38 +01:00
Sebastian Huber
4c7405643a Add test case for enum doc association
This test case produces warnings:

more_100_c.c:38: warning: Documentation for undefined enum 'E' found.
more_100_c.c:48: warning: Documentation for undefined enum 'E' found.
2023-03-24 20:15:38 +01:00
Sebastian Huber
4573b9fd8e Fix duplicate addtion of files to groups 2023-03-24 20:15:38 +01:00
Sebastian Huber
78f7482397 Add test case for file doc association
This test case shows a bug.  The files are added twice to the group.
2023-03-24 20:15:38 +01:00
Sebastian Huber
99948d0811 Add test for doc entry association with groups 2023-03-24 20:15:38 +01:00
Sebastian Huber
4c5075553f Ignore C11 _Static_assert() 2023-03-24 17:54:26 +01:00
Sebastian Huber
9a650c1323 Add test case for static assertions
This test case produces the following warnings:

101_static_assert.c:17: warning: Member _Static_assert(2==2) (function) of file 101_static_assert.c is not documented.
101_static_assert.c:18: warning: Member _Static_assert(3==3, "m3") (function) of file 101_static_assert.c is not documented.
2023-03-24 17:51:00 +01:00
Sebastian Huber
dcfc61cc81 Fix enum field association for global enums
Make sure that the enum and associated enum fields originate from the
same file.
2023-03-20 10:27:13 +01:00
Sebastian Huber
ce0b3aaffe testing: Add test case for enum fields
This test case shows that the association of enum fields to enums with
the same name but in different translation units is wrong.
2023-03-20 10:23:44 +01:00
Sebastian Huber
4d2cb1bee4 runtests.py: Support tests with addtional inputs 2023-03-20 10:23:35 +01:00
albert-github
be9057db13 Double identifiers due to mapping to same id of file names
File was a leftover and should have beenoved
2023-02-18 10:00:03 +01:00
albert-github
6d22c7a3ed Double identifiers due to mapping to same id of file names
During the translation of filenames etc. to e.g. the `@page` command a number of characters are mapped to the same id by means of an underscore resulting in warnings like:
```
additional_doc/MyMarkdownFile.md:1: warning: multiple use of page label 'md_additional_doc_MyMarkdownFile' with different titles, (other occurrence: .../additional+doc/MyMarkdownFile.md, line: 1)
```
(here it is for the directory names `additional_doc` and `additional*doc`, by using a more sophisticated translation this can be prevented
2023-02-17 14:44:46 +01:00
Dimitri van Heesch
f251688294
Merge branch 'Fortran_type_bound_procedures' of https://github.com/melven/doxygen into melven-Fortran_type_bound_procedures 2023-01-18 20:06:30 +01:00
Dimitri van Heesch
442e76d04f
Added unit test with unicode characters in the name 2023-01-02 21:07:15 +01:00
albert-github
3624ad8fae HTML <details> tag without <summary> tag
When we gave a `<details>` tag without a `<summary>` tag, we see that
- the triangle in front does not match the triangle which is used when doxygen styles the summary
- the default text is in the language that is used by the browser, not by doxygen

In case doxygen sees that there is no `<summary>` tag present doxygen will add the summary tag and use the text according to the doxygen `OUTPUT_LANGUAGE`.
The texts have been taken from  the Firefox language packs at https://releases.mozilla.org/pub/firefox/releases/106.0/win64/xpi/, in case there is no text available the text is created with the aid of Google translate.
2022-11-07 15:51:28 +01:00