summaryrefslogtreecommitdiffstats
path: root/src/markdown.h
Commit message (Collapse)AuthorAgeFilesLines
* Confusing debug output for markdownalbert-github2021-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When having debug output one expects to have an overview what goes into the markdown processor and comes out of it. For markdown this happens but there can be a small step in front of it (page handling) and than the input is confusing as some processing already took place. When having a file aa.md: ``` This is a .md file ``` we get with `doxygen -d markdown`: ``` ======== Markdown ========= ---- input ------- @page md_aa aa\ilinebr This is a .md file ---- output ----- @page md_aa aa\ilinebr This is a .md file ========= ``` whilst it would be less confusing when we have: ``` ======== Markdown ========= ---- input ------- This is a .md file ---- output ----- @page md_aa aa\ilinebr This is a .md file ========= ```
* Refactoring: remove implicit conversion from QCString to const char *Dimitri van Heesch2021-04-221-4/+4
| | | | | | | | | | | | | | | | | 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()'
* Refactoring: make qcstring.h a local includeDimitri van Heesch2021-03-261-1/+1
|
* 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.
* issue #7923 source line numbers in warnings output by parser are off by 1albert-github2020-07-271-1/+1
| | | | Explicit counting of the removed newlines at the beginning of a documenation block (markdown.cpp) so this number can be added to get a better line number in case of warnings.
* Refactor: Modernize clang parser and make it run with multiple threadsDimitri van Heesch2020-07-161-4/+1
|
* Refactor: modernize markdown and make it thread-safeDimitri van Heesch2020-06-161-16/+67
|
* Make commentscan.l reentrantDimitri van Heesch2019-12-301-1/+17
|
* Changed std::unique_ptr<Entry> to std::shared_ptr<Entry> at avoid use after ↵Dimitri van Heesch2019-12-081-1/+1
| | | | free issues
* Split language parser into "outline parser" and "code parser"Dimitri van Heesch2019-12-031-20/+2
|
* Fixed use of uninitialized pointer in preprocessorDimitri van Heesch2019-11-091-1/+1
|
* Use smartpointers to manage the lifetime of Entry objectsDimitri van Heesch2019-10-071-1/+1
|
* Improved const correctness and added support for inline namespacesDimitri van Heesch2019-04-211-2/+2
|
* Bump copyright yearDimitri van Heesch2015-02-261-1/+1
|
* In case of sections with the same name they are not reported.albert-github2014-03-021-1/+1
| | | | | In this patch it is checked if a section label has been used before and if so a warning is given with file name and line number (when possible) where the section label was used the first time. Note in section.h the item level was not initialized in the past in case of a copy constructor.
* Updated copyrightDimitri van Heesch2014-02-111-1/+1
|
* Allow @ref to unlabeled markdown page by name, i.e. @ref mypage.mdDimitri van Heesch2013-10-131-0/+1
|
* Bug 707641 - `FILTER_SOURCE_FILES=YES` required to build CALL_GRAPHSSergio Oller2013-09-281-1/+2
| | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=707641 Add references if the file is filtered, as the parser does not know whether we are insideBody or not.
* Bug 701314 - URLs are not created on C# classes in some casesDimitri van Heesch2013-06-151-0/+1
|
* Release-1.8.3.1-20130512Dimitri van Heesch2013-05-121-1/+5
|
* Release-1.8.3.1Dimitri van Heesch2013-01-201-1/+1
|
* Release-1.8.2Dimitri van Heesch2012-08-111-1/+2
|
* Release-1.7.6.1-20120220Dimitri van Heesch2012-02-201-1/+1
|
* Release-1.7.6.1-20120122Dimitri van Heesch2012-01-221-1/+3
|
* Release-1.7.6.1-20120110Dimitri van Heesch2012-01-101-0/+52