Commit graph

56 commits

Author SHA1 Message Date
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
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
Dimitri van Heesch
c4ed324b4a
Minor tweaks to clangparser.cpp 2020-08-15 15:33:33 +02:00
Dimitri van Heesch
a501c61d64
Compilation fix for clangparser.cpp when -Duse_libclang=NO 2020-08-05 15:38:50 +02:00
Dimitri van Heesch
5a2e70a9cd
New option allowing processing using multiple threads
Introduces new option NUM_PROC_THREADS.
It specifies the number threads doxygen is allowed to use during
processing. When set to 0 doxygen will based this on the number of cores
available in the system. You can set it explicitly to a value larger than 0
to get more control over the balance between CPU load and processing speed.

At this moment only the input processing can be done using multiple threads.
I plan to extend this with more parallel processing in the future.

Since this is still an experimental feature the default is set to 1,
which efficively disables parallel processing. Please report any issues you
encounter that appear when changing the default.

Note that generating dot graphs in parallel is still controlled separately
by the DOT_NUM_THREADS setting.
2020-08-05 13:20:36 +02:00
Dimitri van Heesch
38e6d479a2
Added missing stub code when use_libclang is disabled 2020-07-16 20:06:07 +02:00
Dimitri van Heesch
50fdb591d4
Refactor: Modernize clang parser and make it run with multiple threads 2020-07-16 08:27:29 +02:00
Dimitri van Heesch
0df1623c93
Refactor: modernize configuration values 2020-06-04 22:06:08 +02:00
Dimitri van Heesch
e0e5f733ca
Refactoring: migrate type of Doxygen::inputPaths to std::set 2020-04-29 21:02:37 +02:00
Dimitri van Heesch
bc83eb68e2
Fixed shadowing issue in getFortranDefs and other shadowing cases 2020-04-09 20:59:23 +02:00
Dimitri van Heesch
369e821fc6
Replaced MemberNameSDict by MemberNameLinkedMap based on LinkedMap 2020-04-08 22:10:56 +02:00
Dimitri van Heesch
4bc2355373
Replaced FileNameDict/FileNameList by FileNameLinkedMap 2020-04-06 19:19:07 +02:00
albert-github
e6c910b148 Spelling corrections for src directory
Spelling corrections as found by codespell and in #561.

Some reported problems were already fixed, others are fixed here, with some exceptions (a,o.):
- "referenceby" in defgen.cpp as this is in the output and I cannot oversee the consequences (looks like none, but ...)
- "HANGEUL_CHARSET" left as is as in some MS documentation is written: 'HANGUL_CHARSET: Also spelled "Hangeul". Specifies the Hangul Korean character set.' (https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-wmf/0d0b32ac-a836-4bd2-a112-b6000a1b4fc9).
2019-11-05 13:56:27 +01:00
albert-github
ffcae8fe6e issue #6946 Compilation error (clangparser.cpp)
corrected clangparser conform other source code in respect to casting.
Corrected doxyapp and doxyparse make scripts for usage with clang parser.
2019-04-27 19:36:37 +02:00
albert-github
e596bf3f21 Double id for tooltips in XHTML Possible.
The tooltips (XHTML) should not be displayed per code fragment but for the entire (output) file as otherwise tooltips might be added multiple times resulting in double IDs.
2019-01-18 10:59:56 +01:00
Dimitri van Heesch
a13f5a7065 Fix type and length of clang compilation database option 2018-12-27 19:09:43 +01:00
albert-github
99f948c038 Fixing coverity messages
Note: especially latexdocvisitor (dead code that should not be dead code).
2018-09-13 18:01:21 +02:00
albert-github
b0f638cb3a Enable possibility of CLANG for Cygwin
- During compilation there were some problems with strdup (POSIX), replaced by qstrdup
- During compiling / linking there were some problems with killpg which was recognized, added standard definition.
2018-06-30 16:37:22 +02:00
Isaac Hier
9606604a18 Include header for CompilationDatabase 2018-05-23 04:12:14 -04:00
Doug Johnston
818aefcecf make use of clang compilation database
See: https://clang.llvm.org/docs/JSONCompilationDatabase.html
2017-04-06 10:25:56 -07:00