Commit graph

74 commits

Author SHA1 Message Date
Dimitri van Heesch
6fd3797e98
Refactoring: replace ugly use of malloc by std::string 2024-03-05 20:34:22 +01:00
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
albert-github
0b3382f4ea Refactoring: Fixing warnings like: Use the "nullptr" literal (2)
Correcting error when compiling with clang
2024-02-19 20:51:55 +01:00
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
797f94f92b
Merge branch 'feature/bug_srclangext_enum_class' of https://github.com/albert-github/doxygen into albert-github-feature/bug_srclangext_enum_class 2024-01-16 20:02:47 +01:00
Dimitri van Heesch
f4e3751432
Refactoring: using std::string_view for the internal Markdown processing functions 2024-01-14 20:24:06 +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
albert-github
9c1320d227 issue #10546 crash when clang enable
Regression due to:
```
Commit: 6b70d803fe [6b70d80]
Date: Tuesday, December 26, 2023 12:50:05 PM
Fixing warnings like: `Use the "nullptr" literal`

Fixing sonar cloud warnings like: `Use the "nullptr" literal`
```
2024-01-09 10:49:15 +01:00
albert-github
6b70d803fe Fixing warnings like: Use the "nullptr" literal
Fixing sonar cloud warnings like: `Use the "nullptr" literal`
2023-12-26 12:50:05 +01:00
Dimitri van Heesch
19012e55ce
Improve snippet handling 2023-10-06 19:20:11 +02:00
albert-github
f8ad9be839 Remove unused variable
Remove unused variable
2023-07-31 19:00:23 +02:00
Dimitri van Heesch
04804e17cb
Refactoring: improve argv/argc handling for libclang API 2023-04-23 15:23:50 +02:00
Dimitri van Heesch
25d6a9d0ef
Refactoring: move detab() to util.cpp so it can be shared 2023-02-05 14:16:28 +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
albert-github
ed6b713b7e Merge branch 'master' into feature/bug_windows_warn_4100
# Conflicts:
#	src/doxygen.cpp
#	src/tooltip.cpp
2023-01-19 13:45:56 +01:00
Dimitri van Heesch
6ce8be1ae8
Refactoring: replace types uchar/uint/ulong/int64/uint64 by stdint types 2023-01-17 21:08:36 +01:00
Dimitri van Heesch
cdbf2e1fa0
Refactoring: remove toMemberDefMutable for const input 2022-12-31 15:08:03 +01:00
Dimitri van Heesch
c9354aa1c2
Fix compilation issue for clang parser option 2022-11-19 09:46:53 +01:00
albert-github
3462fa98b9 Warning during compilation on Windows systems
This is based on the warning type: 4100 'identifier': unreferenced formal parameter
2022-09-11 18:14:00 +02:00
Dimitri van Heesch
5979b8fa3e
Refactoring: replace left(n)/right(n) by startsWith/endsWith 2022-07-03 16:57:56 +02:00
albert-github
a07ca8b68a Replace static Config_Get... by just Config_get...
In the past the `Config...` functions did a string lookup and the `static` usage was for speed optimization purposes but nowadays this is not necessary anymore as the "lookup" is done through direct lookup in a `struct`. The `static` is counterproductive as this gives extra thread safe locks.
2022-03-03 11:55:16 +01:00
albert-github
f017884146 Line numbers not shown in gray in source code
In case we use the CLANG_ASSISTED parser the line numbers are not shown in (darker) gray for the lines that can be referenced.
(found due to evaluating some fixes for #9073 / #8784)
2022-02-16 14:17:11 +01:00
Dimitri van Heesch
4148d52026
Merge branch 'master' of github.com:doxygen/doxygen 2022-02-15 21:43:05 +01:00
Dimitri van Heesch
84dd40b014
Source code was missing line anchors in the HTML output when using libclang 2022-02-15 21:39:42 +01:00
Dimitri Papadopoulos
7ae7c75e85
Fix repeated words 2022-02-13 15:17:19 +01:00
Dimitri van Heesch
a4688ad168
Refactoring: replace old style casts (part 3) 2022-01-06 22:29:13 +01:00
Dimitri van Heesch
1bed57b942
Added missing symbols needed to enable SANITIZE_UNDEFINED
And fixed one issue found by the sanitizer (comparing enum value against
value outside of the enums range).
2021-12-25 21:46:46 +01:00
Dimitri van Heesch
024426c9f1
Changed naming and moved global variable into local scope
In writeLineNumber replaced includeCodeFragment by writeLineAnchor
and reversed the logic. This makes it clearer what the parameter does
in the context of writing a line of code.
2021-10-17 13:03:10 +02: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
7d92c9c6c4
Enable parallel processing of the "Generating file sources..." step.
- Enabled when NUM_PROC_THREADS is not set to 1
- TooltipManager is now instantiated per file/thread to allow parallel
  processing.
2021-06-17 21:02:39 +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
a4ecbee867
issue #8375: Lowercase search does not find non-ASCII uppercase pages and vice versa 2021-03-22 20:02:06 +01:00
Dimitri van Heesch
bb89b8136f
Refactoring: some cleanup and removed text direction logic 2021-03-04 21:14:49 +01:00
Dimitri van Heesch
554c5e196f
Refactoring: remove unused sortdict.h 2021-01-22 21:45:17 +01:00
Dimitri van Heesch
19713dcc51
issue #8304: compilation failure 2021-01-04 16:27:53 +01:00
Dimitri van Heesch
bde178069e
Fixed compilation issue when use_libclang was disabled 2021-01-01 12:30:27 +01:00
Dimitri van Heesch
3fa5accc93
Renamed CLANG_INCLUDE_INPUT_PATHS to CLANG_ADD_INC_PATHS
The name is too long making the generated config file look ugly.
2021-01-01 11:52:27 +01:00
Dimitri van Heesch
3867926d71
Refactoring: modernise Doxygen::clangUsrMap 2021-01-01 11:47:41 +01:00
Bryce Adelstein Lelbach aka wash
ff3f889eb1 Add a CLANG_INCLUDE_INPUT_PATHS option which can be used to control whether
the directory of every input file is added as an include when using Clang
assisted parsing.
2020-12-30 19:19:40 -08:00
Dimitri van Heesch
eb402b3e09
Avoid unused variable 'g_docCrossReferenceMutex' warning
When building without libclang support
2020-12-20 11:22:17 +01:00
Dimitri van Heesch
a1e4f6d4f9
Fix compiler error by making clangparser use TooltipManager::instance() 2020-11-29 13:26:35 +01:00
Dimitri van Heesch
65e57b55cf
Refactoring: move addDocCrossReference to memberdef.cpp/.h 2020-11-28 17:08:28 +01:00
Dimitri van Heesch
a292601d5d
Issue #8206: Incorrect XHTML results
Changes:
- Change TooltipManager back into a singleton
- Give the OutputList object a unique output id
- Increment the id at each startFile() atomically
- Pass the id to the HTML code generator
- Store tooltips per output id.
- Keep track of tooltips that are already written for a given id
- for output formats other than HTML the output id is 0 and tooltips are
  not collected and written
2020-11-27 21:42:43 +01:00
Dimitri van Heesch
784313b824
Refactoring: replacing dynamic_cast by static_cast to improve performance 2020-11-13 20:43:43 +01:00
Dimitri van Heesch
075229e586
Refactoring: Introduce immutable and mutable interfaces
Split Definition/ClassDef/NamespaceDef/MemberDef into a immutable and mutable part
Aliases are immutable, other symbols are stored using an immutable
interface but can be made mutable explicitly by dynamic casting.
2020-11-09 19:47:45 +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
Dimitri van Heesch
02b8dea108
issue #8066: Doxygen crashes in ClangTUParser 2020-09-30 21:30:35 +02:00