summaryrefslogtreecommitdiffstats
path: root/src/util.h
Commit message (Collapse)AuthorAgeFilesLines
* bug_674442 CREATE_FOLDERS should not create unused foldersalbert-github2021-06-121-0/+1
| | | | | | Also known as issue #4672 The folders are still created but in case the folders are empty after the doxygen run the directories are removed.
* Fixed missing comma and improved constnessDimitri van Heesch2021-05-021-1/+1
|
* Merge branch 'master' into feature/bug_code_langDimitri van Heesch2021-05-021-129/+95
|\
| * Cleanup util.h by moving some functions to other filesDimitri van Heesch2021-05-011-37/+2
| |
| * Fixed typo, use QCString, and some minor reformatingDimitri van Heesch2021-04-291-2/+3
| |
| * issue #8522 Javadoc: type attribute of ordered lists not preserved (in xml)albert-github2021-04-291-0/+2
| | | | | | | | | | The problem was a bit deeper, it was also valid for other output formats. Implemented the `type` and `start` attribute for all relevant output types.
| * Refactoring: remove implicit conversion from QCString to const char *Dimitri van Heesch2021-04-221-80/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()'
| * issue #2732: Adding support for C++ concepts (Origin: bugzilla #499352)Dimitri van Heesch2021-04-081-0/+8
| |
| * issue #8485 The browser based search doesn't handle underscores correctlyalbert-github2021-04-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem is that that "_" is seen as an Id character and not is escaped for JS search. This is a regression on: ``` Commit: a4ecbee86766b35d25d41d1a178806e1688485df [a4ecbee] Date: Monday, March 22, 2021 8:02:06 PM issue #8375: Lowercase search does not find non-ASCII uppercase pages and vice versa ``` and ``` Commit: 3a365ab230cab40910366eee5352534719541598 [3a365ab] Date: Wednesday, March 24, 2021 8:34:50 PM issue #8375 Lowercase search does not find non-ASCII uppercase pages and vice versa (part 2) ```
| * Refactoring: Add TextStream buffer to improve output writing performanceDimitri van Heesch2021-03-281-4/+3
| | | | | | | | | | - direct use of std::stringstream and std::ostream gave a 30% drop in performance.
| * Refactoring: move qcstring and remove qtoolsDimitri van Heesch2021-03-251-0/+1
| |
| * issue #8375: Lowercase search does not find non-ASCII uppercase pages and ↵Dimitri van Heesch2021-03-221-16/+1
| | | | | | | | vice versa
| * Refactoring: replace QFile/FTextStream with fstream/stringstreamDimitri van Heesch2021-03-181-9/+6
| |
| * Refactoring: Replaced QDir with DirDimitri van Heesch2021-03-181-3/+2
| | | | | | | | | | - Dir is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17.
| * Refactoring: Replaced QFileInfo with FileInfoDimitri van Heesch2021-03-181-0/+2
| | | | | | | | | | - FileInfo is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17.
| * Refactoring: some cleanup and removed text direction logicDimitri van Heesch2021-03-041-1/+1
| |
| * Refactoring: replaced std::regex with own much faster implementationDimitri van Heesch2021-03-021-3/+3
| |
| * Disable qregex.h and fix some warnings and issuesDimitri van Heesch2021-02-201-1/+1
| |
| * Refactoring: replace QRegExp by std::regex in vhdldocgen.cppDimitri van Heesch2021-02-201-1/+2
| |
| * Refactoring: replace QRegExp by std::regex in vhdlcode.lDimitri van Heesch2021-02-201-0/+5
| |
| * Refactoring: reduce code duplication by using writeMarkerList functionDimitri van Heesch2021-02-201-0/+3
| |
| * Refactoring: replace QRegExp by std::regex in util.cppDimitri van Heesch2021-02-201-8/+8
| |
| * Refactoring: replace QList<MemberDef> by std::vector in util.cppDimitri van Heesch2021-01-221-1/+0
| |
| * Refactoring: replace StringDict by StringMapDimitri van Heesch2021-01-221-1/+1
| |
| * Refactoring: remove unused sortdict.hDimitri van Heesch2021-01-221-1/+0
| |
| * Refactoring: remove some dead/commented out codeDimitri van Heesch2021-01-221-2/+0
| |
* | Use language name to get code coloringalbert-github2021-01-171-1/+2
|/ | | | | | | | | | | In a `\code` or `~~~` or ` ``` ` environment we can define the language of a code block by specifying an extension. In markdown we see quite often the language name as code block name (especially for `python`) One can specify it by means of an `EXTENSION_MAPPING` but this is quite unnatural as it it not an extension. - see to it that the extension (and thus `EXTENSION_MAPPING`) still has precedence - in case not a known extension, try the language names. Note: with docbook the explicit name usage was missing.
* bug 668003 Default LaTeX header misses $-placeholdersalbert-github2021-01-051-2/+3
| | | | Create, analogous to HTML, also for LaTeX default header and footer files.
* Refactoring: remove unused ClassListDimitri van Heesch2021-01-021-1/+0
|
* Refactoring: replace ExampleSDict by ExampleListDimitri van Heesch2021-01-011-1/+1
|
* Refactoring: change MemberGroupSDict to MemberGroupListDimitri van Heesch2020-12-301-2/+1
|
* Refactoring: modernise member indicesDimitri van Heesch2020-12-301-26/+0
|
* Refactoring: modernize class indexDimitri van Heesch2020-12-211-0/+9
|
* Refactoring: replace ClassSDict by ClassLinkedMap/ClassLinkedRefMapDimitri van Heesch2020-12-191-1/+0
|
* Refactoring: move addDocCrossReference to memberdef.cpp/.hDimitri van Heesch2020-11-281-2/+0
|
* Refactoring: make setAnchors() a member of MemberListDimitri van Heesch2020-11-281-2/+0
|
* Refactoring: remove isVisited/setVisited from indexDimitri van Heesch2020-11-151-2/+0
|
* Refactoring: replacing dynamic_cast by static_cast to improve performanceDimitri van Heesch2020-11-131-2/+2
|
* Refactoring: Introduce immutable and mutable interfacesDimitri van Heesch2020-11-091-3/+11
| | | | | | 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.
* 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().