summaryrefslogtreecommitdiffstats
path: root/src/util.h
Commit message (Collapse)AuthorAgeFilesLines
* Refactoring: introduce SymbolResolver to group symbol lookup routinesDimitri van Heesch2020-10-281-84/+0
| | | | - Main goal was to avoid use of global state.
* issue #8103: C++ Table of content, namespace list does not contains ↵Dimitri van Heesch2020-10-191-1/+2
| | | | namespace without class
* Performance tweak: Pass BaseClassList by const referenceDimitri van Heesch2020-10-171-1/+1
|
* issue #8091: [C++] Newer doxygen versions add a lot of bogus warnings about ↵Dimitri van Heesch2020-10-141-1/+1
| | | | undocumented entities
* Refactoring: Modernize BaseClassListDimitri van Heesch2020-10-121-2/+2
|
* Refactoring: Remove use of globals/statics in isAccessibleFrom*Dimitri van Heesch2020-10-111-4/+62
| | | | - Also moved AccessStack to util.h and modernized it.
* Merge branch 'albert-github-feature/bug_md_pg_cnt'Dimitri van Heesch2020-10-041-1/+3
|\
| * Reworked changes a bitDimitri van Heesch2020-10-041-1/+3
| | | | | | | | | | | | - topLine is replaced by startLine - changed unputDocnl macro into a more self contained function-like macro
| * Merge branch 'feature/bug_md_pg_cnt' of ↵Dimitri van Heesch2020-10-031-1/+1
| |\ | | | | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_md_pg_cnt
| | * Miscounting of lines in respect to page commandalbert-github2020-09-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All examples together are a bit big so they are all in the attached file together with the warnings before and after this patch. When looking at the output we see that a number of lines are off by 1 ore more due to the insertion of extra lines in the code or due to the fact that there is a reference to the start of the documentation of the page and not the line of the page command. - commentscan.l in case of a rule contaiinge {DOCNL} this can be `=n` or `\ilinebr` in the later case this should not be replaced by `\n` as this results in an increase of the line count later on. in case of a page like command also register the line of the command as "topline". - entry.h, entry.cpp storage space for the "topline" registering the line of the page like commands. - doxygen.cpp setting and using the "topline" - markdown.cpp, markdown.h don't add a `\n` as this increases the line count but use the `\ilinebr` to get correct warnings see to it that when having empty lines at the top of the page and a page is added that the empty lines appear after the page command. - index.cpp using the "topline" instead of the "docLine" to get the correct warning - pagedef.cpp, pagedef.h set and retrieve the "topline" for page like commands. - util.cpp, util.h setting and using the "topline" in `addRelatedPage` use the known file name and line for the warning regarding the section label - cite.cpp, context.cpp, reflist.cpp changed to have good function calls.
* | | Using f() instead f(void) in C++ , consistencyalbert-github2020-10-021-1/+1
|/ / | | | | | | Seen the discussion in the pull request #8069, for consistency change occurrences of f(void) into f().
* | Refactoring: prepare output generators for multi-threaded useDimitri van Heesch2020-09-271-8/+5
|/
* Incorrect duplicate code for Fortran fixed/free recognitionalbert-github2020-09-151-0/+3
| | | | There were 2 routines to recognize whether Fortran code was Fixed of Free format code, though the version in `commentcnv.l` didn't take the settings of `EXTENSION_MAPPING` into account which might lead to incorrect recognition of the format, this has been corrected.
* Moved stripIndentation() to util, make it safe for empty inputDimitri van Heesch2020-08-051-0/+1
|
* Incorrect label in map of dot files in xhtml (#7840)albert-github2020-06-131-0/+1
| | | | | | | When a filename of a file starts with a digit the mapping of the resulting dot files results in message like: ``` Syntax of value for attribute id of map is not valid ``` an id cannot start with a digit, so an "a" is placed in front of it (unconditionally to overcome problems with a double label id i.e filename 087.cpp and a087.cpp).
* Refactor: modernize configuration valuesDimitri van Heesch2020-06-041-1/+2
|
* RefactoringDimitri van Heesch2020-05-151-4/+0
| | | | | | | | | | | - Makes doxycfg library more self contained - renames _doxygen library to doxymain - Modernizes Debug implementation - Moves Doxygen::runningTime into Debug - Moves full version string to libversion - Removed mentioning of file version in messages (when FILE_VERSION_FILTER is used) - Move substitute functions into QCString
* Refactoring: Introduce type names for commonly used container typesDimitri van Heesch2020-05-011-2/+2
|
* Refactoring: migrate MemberNameInfoSDict to MemberNameInfoLinkedMapDimitri van Heesch2020-04-271-1/+0
|
* Fixes missing include and missing html extension logicDimitri van Heesch2020-04-251-0/+1
|
* Performance improvements after profilingDimitri van Heesch2020-04-241-4/+6
| | | | | 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.
* Changed fix as proposedDimitri van Heesch2020-04-091-1/+0
|
* Replaced FileNameDict/FileNameList by FileNameLinkedMapDimitri van Heesch2020-04-061-3/+3
|
* Doxygen version information (#7645)albert-github2020-03-171-0/+1
| | | | | - add doxygen version to rtf, comment, output - remove duplicate code (getFullVersion) - more clear name to get doxygen version (getVersion becomes getrDoxygenVersion). Also to overcomecofusion with the version information for files.
* Enabled stricter compiler warnings and fixed all new warningsDimitri van Heesch2020-03-081-1/+1
|
* Merge pull request #7612 from albert-github/feature/issue_7583Dimitri van Heesch2020-02-271-1/+1
|\ | | | | issue #7583 External Links in Inheritance Diagrams open in the Image Frame.
| * issue #7583 External Links in Inheritance Diagrams open in the Image Frame.albert-github2020-02-241-1/+1
| | | | | | | | When having a function it opens in the current frame and uses the complete frame. Images (e.g. inherited diagrams) are displayed in a small "sub frame" and when displaying the link here it is not readable and furthermore the user doesn't know anything about the "sub frame". In case of an image the link should be displayed in the parent frame of the image.
* | Restructure the way RefLists are handledDimitri van Heesch2020-02-271-4/+7
|/
* Compilation warningsalbert-github2020-02-221-1/+1
| | | | | | | | | | | | | | | Due to ``` Commit: 1a56a39b4a97452a5c7c2d8e9d39ab28ca33dff0 [1a56a39] Commit Date: Friday, February 21, 2020 9:07:13 PM Restructure section handling ``` a number of compilation warnings (Windows) appeared: ``` c:\projects\doxygen\src\section.h(51): warning C4099: 'SectionInfo': type name first seen using 'struct' now seen using 'class' [C:\projects\doxygen\build\src\_doxygen.vcxproj] c:\projects\doxygen\src\section.h(50): note: see declaration of 'SectionInfo' ```
* Minor fixesDimitri van Heesch2019-12-251-3/+1
| | | | | Avoid code duplication by adding function addHtmlExtensionIfMissing() and avoid member shadowing by using 'm_' prefix for member variables
* Merge branch 'feature/bug_335614' of ↵Dimitri van Heesch2019-12-251-0/+4
|\ | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_335614
| * Bug 335614 - HTML link incorrect when using tagfilealbert-github2019-09-301-0/+4
| | | | | | | | | | - See to it that when an extension is already present this extension is used and not a second extension is added - let the tag file know what the original extension was.
* | Replaced QList<ListItemInfo> with std::vector<ListItemInfo>Dimitri van Heesch2019-10-291-2/+2
| |
* | Replaced QList<SectionInfo> by std::vector<SectionInfo>Dimitri van Heesch2019-10-291-1/+0
| |
* | Embed TagInfo struct inside EntryDimitri van Heesch2019-10-281-1/+1
| |
* | Changed ArgumentList to be an STL containerDimitri van Heesch2019-10-271-11/+11
| |
* | Problem with round brackets in PS outputalbert-github2019-10-091-0/+2
|/ | | | | | | | | | | In case we use the doxygen inheritance diagrams in doxygen (i.e. `HAVE_DOT=NO`) for a construct like (based on #7302): ``` template <char C> struct one { }; /// The struct str_040 struct str_040 : one<'('> { }; ``` this will lead to a postscript error (epstopdf) as the `(` (and analogous the `)`) have to be escaped.
* Warning with xrefitem from documentationalbert-github2019-09-131-0/+1
| | | | | | | | | | The example code with the `xrefitem` in the documentation gives a warning: ``` my_errors:1: warning: multiple use of page label 'my_errors', (other occurrence: .../aa.h, line: 4) ``` it is possible (and explicitly stated) to have an `\page` with the same name giving some extra information. The warning regarding the multiple page is removed in case of a xrefitem page.
* Merge pull request #7042 from albert-github/feature/bug_632754Dimitri van Heesch2019-08-071-0/+1
|\ | | | | Bug 632754 - The \copydoc Command Requires The Use of C++ Syntax in C# Code
| * Bug 632754 - The \copydoc Command Requires The Use of C++ Syntax in C# Codealbert-github2019-06-071-0/+1
| | | | | | | | Replace the scope separators to the default scope separators (::) of doxygen.
* | Some fixes and restructuringDimitri van Heesch2019-08-061-0/+1
| | | | | | | | | | | | - moved unescapeCharsInString to util.cpp - restructured flow keyword counting - make flow keyword counting work for python and fortran code as well
* | Improved constness and avoid using non-const members of aliasesDimitri van Heesch2019-07-291-6/+8
| |
* | issue #7033 Syntax highlighting doesn't work when calling \dontinclude from ↵albert-github2019-06-061-0/+1
|/ | | | | | Markdown files Don't use the file name extension of the including file but of the included file. In case of no included filename or no extension, fall back of the file extension of the including file.
* Merge pull request #6913 from albert-github/feature/url_to_md_fileDimitri van Heesch2019-05-121-0/+2
|\ | | | | Markdown file as internet link
| * Markdown file as internet linkalbert-github2019-04-051-0/+2
| | | | | | | | | | | | | | | | See a link in case of a md file only as local link if it doesn't start with a supported protocol. Example found was: ``` [Ansibullbot](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md) ```
* | Add const correctness for argument listsDimitri van Heesch2019-05-051-3/+3
| |
* | Further const correctness changesDimitri van Heesch2019-05-051-1/+1
| |
* | Improved const correctness and added support for inline namespacesDimitri van Heesch2019-04-211-41/+39
|/
* issue #6744 Ampersand in Markdown image URL is not escaped in XML outputalbert-github2019-01-061-1/+1
| | | | Convert name / url based on HTML / XML conventions and don't do double conversions (XML).
* Merge remote-tracking branch 'doxygen/master'Joe George2018-11-021-2/+3
|\