summaryrefslogtreecommitdiffstats
path: root/src/vhdlcode.l
Commit message (Collapse)AuthorAgeFilesLines
* Fix issues caused by QCString::rawData and QCString::operator[]Dimitri van Heesch2021-04-261-4/+3
| | | | | - methods were marked const but still returned a non-const reference, cause wrongly optimized code for some platforms/compilers
* Refactoring: remove implicit conversion from QCString to const char *Dimitri van Heesch2021-04-221-84/+86
| | | | | | | | | | | | | | | | | 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: move qcstring and remove qtoolsDimitri van Heesch2021-03-251-17/+15
|
* Refactoring: replace QFile/FTextStream with fstream/stringstreamDimitri van Heesch2021-03-181-1/+0
|
* Refactoring: replaced std::regex with own much faster implementationDimitri van Heesch2021-03-021-3/+3
|
* Some performance tweaks + remove setting of global localeDimitri van Heesch2021-02-221-2/+2
|
* Refactoring: replace QRegExp by std::regex in vhdldocgen.cppDimitri van Heesch2021-02-201-10/+13
|
* Refactoring: replace QRegExp by std::regex in vhdlcode.lDimitri van Heesch2021-02-201-15/+20
|
* Refactoring: modernize MemberListDimitri van Heesch2021-01-221-8/+7
|
* Various fixes based on coverity scan resultsDimitri van Heesch2021-01-051-1/+1
|
* Refactoring: replace MemberSDict by MemberLinkedRefMapDimitri van Heesch2021-01-041-1/+1
|
* Refactoring: replace QDict by std::set for classifying keywords in vhdldocgenDimitri van Heesch2020-11-291-2/+2
|
* Issue #8206: Incorrect XHTML resultsDimitri van Heesch2020-11-271-3/+2
| | | | | | | | | | | | 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
* Refactoring: replacing dynamic_cast by static_cast to improve performanceDimitri van Heesch2020-11-131-1/+1
|
* Remove warnings from lexersalbert-github2020-10-201-3/+3
| | | | | | | | Remove warnings (Windows 64 bit compilation) like: ``` warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data ``` from the different lexers by making use of more consistent data types.
* Refactoring: modernize TooltipManager class and source reference listsDimitri van Heesch2020-10-201-1/+6
| | | | | - Tooltips are now collected per file instead of globally - Source reference lists now use STL containers
* Refactoring: making vhdlcode.l reentrantDimitri van Heesch2020-09-131-1147/+1151
| | | | | Also fixed a few VHDL related memory leaks and one newly introduced Fortran memory leak.
* issue #7995 Doxygen doesn't handle very simple example in the .md filealbert-github2020-09-021-0/+3
| | | | Besides "keep utf8 characters together..." as done for the C-type parser in code.l (commit d3d9dd8540ec159de080859c8f34a2581c4147f0) this also has to be done for the Fortran, SQL and VHDL code lexers. The code lexers for python and xml already didn't give errors as they already handled these cases for the example.
* Enabled stricter compiler warnings and fixed all new warningsDimitri van Heesch2020-03-081-1/+8
|
* Fix compiler warnings on Windows (Visual Studio)Dimitri van Heesch2020-02-121-0/+3
|
* Split language parser into "outline parser" and "code parser"Dimitri van Heesch2019-12-031-6/+16
|
* Remove bogus flex codeDimitri van Heesch2019-11-181-8/+0
|
* Changed ArgumentList to be an STL containerDimitri van Heesch2019-10-271-10/+5
|
* Consistent way to show scanner statealbert-github2019-09-051-2/+2
| | | | | Create a consistent way to display the state mnemonics of the different scanners (analogous to the fortranscanner.l) Use an automatic procedure to generate the routine with the translation of the states to a string.
* Correction warning messagealbert-github2019-06-011-1/+1
| | | | Consistency
* Add const correctness for argument listsDimitri van Heesch2019-05-051-2/+2
|
* Improved const correctness and added support for inline namespacesDimitri van Heesch2019-04-211-4/+4
|
* Refactored Definition and derived classes such that they are abstract interfacesDimitri van Heesch2019-02-281-2/+2
|
* Merge pull request #6776 from albert-github/feature/bug_xhtml_tooltipDimitri van Heesch2019-02-091-5/+0
|\ | | | | Double id for tooltips in XHTML possible.
| * Double id for tooltips in XHTML Possible.albert-github2019-01-181-5/+0
| | | | | | | | 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.
* | Inline VHDL codealbert-github2019-01-301-5/+1
|/ | | | | | Based on the example of #6805 - First line of inline documentation didn't have a line number - The line numbers in inline documentation were off by one
* Wrong counting of lines during VHDL code outputalbert-github2018-12-051-1/+1
| | | | | | The code coloring of the output stops at an early stage, resulting in incorrect HTML / LaTeX / ... output, due to a double counting of the lines in case of `STRIP_CODE_COMMENTS=NO`. Problem is visible when looking at the documentation of the VHDL documentation block in the manual for VHDL code in e.g. HTML and LaTex (Note problem occurs in the 1.8.15 master, not in the 1.8.14 version).
* Correction of some coloring of code comments in VHDL, adding data type ↵albert-github2018-08-241-34/+35
| | | | 'positive'
* Bug 691689 - Line numbers for examplesDimitri van Heesch2018-08-191-16/+15
|
* Added some VHDL code coloringalbert-github2018-03-311-17/+51
| | | | | | | - add coloring of "of" - improvement for architecture - adding coloring for names after an end statement removed obsolete g_CurrScope
* Misc. typosluzpaz2017-12-231-4/+4
| | | | | Super trivial typos Some are in qtools/ which I know is a 3rd party dependency but as we know is now obsolete upstream. I reckon it wouldn't be much of an issue to merge neverthless Tacked on several more commits
* flex: use %option instead of command line options.Adrian Negreanu2016-09-211-0/+3
|
* Bug 771199 - Web-page bug: Comment blocks in VHDLDimitri van Heesch2016-09-111-2/+1
|
* Bug 770660 - Code snippet always shows line numbers from 1albert-github2016-09-031-7/+9
| | | | | | | | | This patch makes the handling of the \snippet and other commands consistent between the different languages (no line numbers anymore with python) and also introduces analogous to \includelineno the command \snippetlineno. Some non relevant changes: - *code.l Calculation of the end line was incorrect, in case of a snippet the end line was the number of lines of the snippet and not reltive to the start line. - *code.l made consistent over the different laguages, enabling exBlock and inlineFragment - testing/indexpage.xml in test 14 the \snippet command was used with python and giving line numbers, linenumbers are now gone (consistency)
* Changed configuration mechanism to directly access options in order to ↵Dimitri van Heesch2016-01-171-3/+3
| | | | improve performance
* Support flex-2.6.0Dimitri van Heesch2015-11-221-1/+1
|
* Support flex-2.6.0Heiko Becker2015-11-221-1/+1
| | | | | | The version checks only considered YY_FLEX_SUBMINOR_VERSION and did not take YY_FLEX_MINOR_VERSION into account, which made them fail with flex-2.6.0.
* drop #include <unistd.h>Adrian Negreanu2015-05-151-2/+2
| | | | Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* Bump copyright yearDimitri van Heesch2015-02-261-1/+1
|
* Merge pull request #272 from albert-github/feature/bug_unusedDimitri van Heesch2015-01-031-6/+0
|\ | | | | Remove unused local and static global variables
| * Remove unused local and static global variablesalbert-github2014-12-271-6/+0
| | | | | | | | Remove unused local and static global variables. Variables have been identified by Understand (version 758) from Scitools.
* | Fixed a couple of cases where sharing string data could lead to corruptionDimitri van Heesch2015-01-021-2/+2
|/ | | | | Also made dangerous string access more visible by introducing rawData(). This replaces data() which will now return a constant string.
* New VHDL parser implementationDimitri van Heesch2014-08-021-0/+2
|
* Updated copyrightDimitri van Heesch2014-02-111-1/+1
|
* Reduced and improved functionality of QListDimitri van Heesch2013-12-301-4/+4
| | | | | | | | | - operations on current index and node (next(), prev(), last(), first()) have been removed. - access to internal nodes has been removed. - old QList has been renamed to QInternalList for use inside qtools only. - added type safe compare, new, and delete operations (compareValues(), newValue(), deleteValue()). - add compareValues also to QDict for consistency. - changed doxygen's implementation to comply with the new QList and QDict interface.