summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
Commit message (Collapse)AuthorAgeFilesLines
* Fixes spacingDimitri van Heesch2020-12-021-31/+31
|
* Merge branch 'feature/bug_789318' of ↵Dimitri van Heesch2020-12-021-23/+38
|\ | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_789318
| * bug 789318 c# expression-bodied property is not rendered correctlyalbert-github2020-09-011-23/+38
| | | | | | | | | | | | | | | | | | | | Create possibility to see the CS construct `=>` not as an initializer (based on just the `=`) but as getter. This problem solves besides this issue: - #6278 c# expression-bodied property is not rendered correctly (Origin: bugzilla #789318) also the issues: - #6064 Lambda for read-only property in C# 6 (Origin: bugzilla #771283) - #7550 C# Expression-Bodied Properties reveals underline implementation - #7914 Doxygen Treats C# Inline-Bodied Properties as Member Variables
* | Forgot to remove some dead codeDimitri van Heesch2020-09-111-14/+0
| |
* | Split into separate rulesDimitri van Heesch2020-09-111-5164/+5183
| | | | | | | | Also replaced tabs by spaces and removed trailing whitespace
* | issue #8017 C++: mishandling of brackets used in trailing return typesalbert-github2020-09-081-0/+16
|/ | | | Handle `{` and `;` inside, nested, round brackets not as end of return type
* Merge pull request #7981 from albert-github/feature/bug_647654Dimitri van Heesch2020-08-301-4/+11
|\ | | | | bug_647654 Special command \fn fails when first argument of PHP function is call-by-reference
| * bug_647654 Special command \fn fails when first argument of PHP function is ↵albert-github2020-08-281-4/+11
| | | | | | | | | | | | | | | | | | | | | | call-by-reference The handling of `(&$var` for php was not included at all places. It was handled with the rules (in scanner.l): ``` <FindMembers>"("/{BN}*"::"*{BN}*({TSCOPE}{BN}*"::")*{TSCOPE}{BN}*")"{BN}*"(" | /* typedef void (A<int>::func_t)(args...) */$ <FindMembers>("("({BN}*"::"*{BN}*{TSCOPE}{BN}*"::")*({BN}*[*&\^]{BN}*)+)+ { /* typedef void (A::*ptr_t)(args...) or int (*fun c(int))[], the ^ is for Obj-C blocks */$ ```
* | issue #7979: C++ enums being defined in multiple files after b265433 ↵Dimitri van Heesch2020-08-281-8/+8
|/ | | | (multi-thread input processing)
* Fixed issue that could cause wrong line numbersDimitri van Heesch2020-08-061-1/+4
|
* More minor tweaksDimitri van Heesch2020-07-281-3/+1
|
* issue #7923 source line numbers in warnings output by parser are off by 1albert-github2020-07-271-1/+3
| | | | 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-43/+18
|
* Fixed anothing compilation issue when use_libclang was not enabledDimitri van Heesch2020-06-291-16/+12
|
* Refactor: make preprocessor run in parallelDimitri van Heesch2020-06-281-14/+17
| | | | | And at the same time make sure it gives the same results as when processed using a single thread.
* Refactor: modernize markdown and make it thread-safeDimitri van Heesch2020-06-161-4/+8
|
* Merge pull request #7742 from albert-github/feature/issue_7734Dimitri van Heesch2020-05-091-16/+20
|\ | | | | issue #7734 Incorrect parsing of Q_PROPERTY
| * issue #7734 Incorrect parsing of Q_PROPERTYalbert-github2020-05-011-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The parsing of the type / name was not done correctly as the name `{ID}` is also part of the `{TSCOPE}` and hence the name was seen as a type. The name is the last part before an attribute is present. Missing other parts: - parsing of `*` - not parsing of a number of (not supported attributes) The definition of `Q_PROPERTY` is: ``` Q_PROPERTY(type name (READ getFunction [WRITE setFunction] | MEMBER memberName [(READ getFunction | WRITE setFunction)]) [RESET resetFunction] [NOTIFY notifySignal] [REVISION int] [DESIGNABLE bool] [SCRIPTABLE bool] [STORED bool] [USER bool] [CONSTANT] [FINAL]) ``` Note: in the implementation we do not enforce the order of the attributes.
* | issue #7747 Three-way comparison operatoralbert-github2020-05-041-1/+1
| | | | | | | | Implementation of the C++2x three-way / spaceship operator.
* | Input buffer overflow in php input code (#7745)albert-github2020-05-021-4/+4
|/ | | | | | | | When having a very long initialization line in php code we get the message: ``` input buffer overflow, can't enlarge buffer because scanner uses REJECT ``` In this case the, easy, solution is to split, in the lexer, the input based on the commas.
* Refactoring: replace Doxygen::namespaceAliasDict by Doxygen::namespaceAliasMapDimitri van Heesch2020-04-291-12/+4
|
* Refactor: improve encapsulation for ArgumentListDimitri van Heesch2020-04-251-19/+15
|
* Performance improvements after profilingDimitri van Heesch2020-04-241-4/+4
| | | | | 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.
* issue #7635: Incorrect location for enum in XML fileDimitri van Heesch2020-03-141-6/+54
|
* Enabled stricter compiler warnings and fixed all new warningsDimitri van Heesch2020-03-081-5/+10
|
* Incorrect handling of typedef in combination with constalbert-github2020-02-251-3/+10
| | | | | | | | | | | | | | | | | | | | | I issue #7060 and example was given with ``` typedef const char m_msgEvtName; ``` we see that - 1.8.15, listed under Typedefs: ` typedef const char m_msgEvtName` - 1.8.16 and up, listed under Variables: `const typedef char m_msgEvtName` so mentioned: - wrong "header" - const at the wrong place This is a regression on: C# consts incorrectly placed under instance variables (Origin: bugzilla #535853) (issue #2976) and the pull request #7048 The fix should only be used for C#
* issue #6319: C++ function returning std::function with reference argument is ↵Dimitri van Heesch2020-02-171-15/+16
| | | | not recognized as a function (Origin: bugzilla #792830)
* Fix compiler warnings on Windows (Visual Studio)Dimitri van Heesch2020-02-121-0/+3
|
* issue #7508: TYPEDEF_HIDES_STRUCT stopped working properlyDimitri van Heesch2020-01-281-5/+3
|
* Move DocGroup inside CommentScanner instead of using a globalDimitri van Heesch2020-01-261-8/+8
|
* Cleanup unused/unwanted parser dependencies on code generatorDimitri van Heesch2020-01-261-1/+0
|
* Merge pull request #7497 from albert-github/feature/bug_consistency_onlyDimitri van Heesch2020-01-111-4/+4
|\ | | | | Consistency `\*only` and `\end*only` commands
| * Consistency `\*only` and `\end*only` commandsalbert-github2020-01-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all possibilities in respect of `\*only` and `\end*only` commands were present which could lead to messages like: ``` .../aa.h:4: warning: reached end of comment while inside a \rtfonly block; check for missing \endrtfonly tag! ../.aa.h:4: warning: rtfonly section ended without end marker .../aa.h:4: warning: rtfonly section ended without end marker ``` in case of a problem like: ``` /** \file * \rtfonly * RTF /* Nested */ * \endrtfonly */ ```
* | issue #7472: Serious regression: /**< comments cause functions to be ↵Dimitri van Heesch2020-01-091-5/+3
|/ | | | silently ignored
* Make commentscan.l reentrantDimitri van Heesch2019-12-301-3/+5
|
* Merge branch 'master' into feature/bug_fenced_codeDimitri van Heesch2019-12-261-3498/+3428
|\
| * issue #7446: C#: parameter named `extends` is broken in the documentationDimitri van Heesch2019-12-201-4/+4
| |
| * Incorrect warning "yyextra->inside" instead of "inside"albert-github2019-12-181-2/+2
| | | | | | | | | | | | | | | | | | | | We get warnings like: ``` warning: reached end of file while yyextra->inside a 'code' block! warning: Ignoring \brief command yyextra->inside argument documentation ``` this is due to the fact that the scanner has been made reentrant (inside becomes yyextra->inside and this slipped into the warning strings as well)
| * issue #7412: HTML: Opening a reference link in a new tab does not scroll to ↵Dimitri van Heesch2019-12-101-2/+5
| | | | | | | | the content
| * Merge branch 'master' into feature/bug_coverity_unintDimitri van Heesch2019-12-081-85/+58
| |\
| | * Changed std::unique_ptr<Entry> to std::shared_ptr<Entry> at avoid use after ↵Dimitri van Heesch2019-12-081-45/+46
| | | | | | | | | | | | free issues
| | * Added missing debug flags for scanner that were made reentrantDimitri van Heesch2019-12-051-0/+3
| | |
| | * Split language parser into "outline parser" and "code parser"Dimitri van Heesch2019-12-031-40/+9
| | |
| * | Coverity uninitializedalbert-github2019-12-021-1/+1
| |/ | | | | | | Fixing a number of uninitialized variables based on the coverity output of November 30, 2019
| * Made scanner.l reentrantDimitri van Heesch2019-12-011-3329/+3371
| |
| * Fixed line count misaligned introduced with JAVADOC_BANNERDimitri van Heesch2019-11-241-36/+38
| |
| * Cleanup scanner.l code and namingDimitri van Heesch2019-11-241-2756/+2723
| |
| * Made code.l scanner reentrantDimitri van Heesch2019-11-211-2/+5
| |
| * Remove bogus flex codeDimitri van Heesch2019-11-181-7/+0
| |
| * Fix line count after multiline close groupRoel Standaert2019-11-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix for issue #7393 When closing a group on multiple lines, like: /*! @} */ The line count of subsequent lines is wrong (it's one line less than it should be).