From 17c5b6160d013d118296663e133cf8884c74a939 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 9 Mar 2014 19:45:05 +0100 Subject: Bug 643618 - Fortran: variable with name "type" confuses Doxygen Most problems were solved in version 1.8.5 but the underscore character (_) had not been incorporated, this is done with this patch. --- src/fortranscanner.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fortranscanner.l b/src/fortranscanner.l index 623f587..aa59bf0 100644 --- a/src/fortranscanner.l +++ b/src/fortranscanner.l @@ -567,7 +567,7 @@ SCOPENAME ({ID}{BS}"::"{BS})* /*------- type definition -------------------------------------------------------------------------------*/ -^{BS}type/[^a-z0-9] { +^{BS}type/[^a-z0-9_] { if(YY_START == Start) { addModule(NULL); -- cgit v0.12 From 224fa96dd9c9245bfdf68ee6f92160b7aa05f8d1 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 10 Mar 2014 19:19:01 +0100 Subject: Alterative way to get rules information from flex This patch describes an alternative way to get rules / debug information from flex files --- doc/arch.doc | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/doc/arch.doc b/doc/arch.doc index c464a3e..fc80659 100644 --- a/doc/arch.doc +++ b/doc/arch.doc @@ -190,13 +190,13 @@ could extract information from the XML output. Possible tools could be: Since doxygen uses a lot of \c flex code it is important to understand how \c flex works (for this one should read the man page) and to understand what it is doing when \c flex is parsing some input. -Fortunately, when flex is used with the -d option it outputs what rules +Fortunately, when flex is used with the `-d` option it outputs what rules matched. This makes it quite easy to follow what is going on for a particular input fragment. To make it easier to toggle debug information for a given flex file I -wrote the following perl script, which automatically adds or removes -d -from the correct line in the Makefile: +wrote the following perl script, which automatically adds or removes `-d` +from the correct line in the \c Makefile: \verbatim #!/usr/bin/perl @@ -236,6 +236,19 @@ $now = time; utime $now, $now, $file \endverbatim +Another way to get rules matching / debugging information from the flex code is in the following way: +\verbatim +touch src/.l +make LEX="flex -d" +\endverbatim +to remove the rules / debug information again: +\verbatim +touch src/.l +make +\endverbatim + +Note that by running doxygen with `-d lex` you get information about which flex +codefile is used. \htmlonly Return to the index. -- cgit v0.12