[Doxygen-develop] FILTER_PATTERNS is working with additional " at the end
Brought to you by:
dimitri
From: <Eck...@t-...> - 2013-05-10 10:52:50
|
Hello Developers. After some additional tests and referring the archive again I'm sure that the configuration of FILTER_PATTERNS is not working or its usage is not documented completely. Even if I use FILTER_PATTERNS = *.m=./folder/subfolder/m2cpp.pl the c-comment files will be analysed but not the matlab-files. Doxygen gives me the warning that the perl-script "./folder/subfolder/m2cpp.pl can not be opened. Note, the double-quote " is part of the doxygen warning message and there is no double-quote at the end of the message. Once a realized that, I tried to insert in the wizard-input as filter-pattern *.m=./folder/subfolder/m2cpp.pl" (note the double-quote at the end) This results in the DOXYFILE the line: FILTER_PATTERNS = "*.m=./folder/subfolder/m2cpp.pl\"" And last but not least it works now. Since I don't use the filter as INPUT_FILTER all c-like files will be analysed like expected, while all m-files will be preprocessed with the filter. Again an additional double-quote with backslash is needed at the end of the filter-definition: FILTER_PATTERNS = "pattern=filter\"" in the doxygen-wizard the input is : pattern=filter" Please decide if this is the wanted behaviour (then it may be useful to extend the documentation) or if this is a bug in the part to call the perl-script. If you think this is a problem of the used perl-script I have added, please help me with some information and I will discuss this in the associated forum of matlab. I use doxygen 1.8.3.1 on Windows XP SP3 Best regards, Eckard Klotz. > Hello Everybody. > > For my nassi-shneiderman generator for doxygen > (https://sourceforge.net/projects/moritz/) I'm working on an interface > for the programming-language matlab.For a first demo-release I created > some example-sources which I want to use together with my already > existing c-based description of the general function of Moritz to > create with doxygen a documentation. This means I have some txt-files > with c-comment blocks (where I have defined *.txt as FILE_PATERNS). > This c-comment-blocks contain doxygen group- and page-definitions > which are traditionally used from me as description of the language > independent parts of the documentation. In addition I have some files > which contain comment-blocks in the programming-language for what I > want to add examples. For python this works very good, since doxygen > is already able to understand python-files as well as c-files. But > since doxygen does not know matlab, I have to use a perl-filter for > those files. The perl-filter itself works well as long as I only use > my matlab-files. But I'm not able to configure doxygen to use this > filter for matlab-files only and to use its own build-in c-parser for > all other files. > > If I use > INPUT_FILTER = "perl ./folder/subfolder/m2cpp.pl" > all matlab-files will be parsed correctly but the files with the > c-comments will be ignored. > > If I use > FILTER_PATTERNS = "*.m=perl ./folder/subfolder/m2cpp.pl" > doxygen tells me that the perl-script can not be opened. The c-comment > files will be analysed but not the matlab-files. > > I had the idea to use > INPUT_FILTER = "perl ./folder/subfolder/m2cpp.pl" > together with > FILTER_PATTERNS = "*.txt=????? to use the perl-fileter as > default-filter and to deactivate it for the txt-files which contain > the c-comment blocks. But I don't know what to use instead for the > question-marks to ensure that no filter will be used but the > doxygen-parser directly. > > Is someone able to help me? > > With many thanks, > Eckard Klotz. > > |