Re: [Doxygen-users] Preprocessing + different subroutine headers (FORTRAN)
Brought to you by:
dimitri
From: Albert <alb...@gm...> - 2014-07-02 13:46:43
|
Fabian, F90 is already supported, as extension and will automatically do the preprocessing. The preprocessing of Fortran file is governed by the routine: bool FortranLanguageScanner::needsPreprocessing(const QCString &extension) { return extension!=extension.lower(); // use preprocessor only for upper case extensions } in fortranscanner.l Your question regarding to do always preprocessing : Normal convention in the Fortran world is that lowercase extension is not preprocessed and uppercase extension is preprocessed. So I don't think it would be wise to do this. Albert On Wed, Jul 2, 2014 at 3:35 PM, Fabian Nick <fab...@sc...> wrote: > Albert, > > forget my last message. > > However it would be nice if I could build a version where *.f90 is > preprocessed as well... Any chance to do so?! > > > Fabian > > > * From: Albert (alb...@gm...) > * To: Fabian Nick (fab...@sc...) > * Sent: 02.07.2014 at 15:01 +0200 > * Subject: Re: [Doxygen-users] Preprocessing + different subroutine > headers (FORTRAN) > >> Hi Fabian, >> >> >> I see you use the extension f90, to enable preprocessing for Fortran you >> have to use F90 as extension. >> >> Albert >> >> >> On Wed, Jul 2, 2014 at 2:36 PM, Fabian Nick >> <fab...@sc... <mailto:fab...@sc...>> >> >> wrote: >> >> Hi all, >> >> I'm using doxygen 1.8.7 and I set ENABLE_PREPROCESSING = yes. >> However, when I parse a file with the following content >> >> #ifndef FOO >> subroutine bar(arg1, arg2) >> #else >> subroutine bar(arg1) >> #endif >> end subroutine bar >> >> I get a state 4 error: >> Error in file ...doxybug.f90 line: 7, state: 4 >> >> I see why doxygen might be struggling here; is there any way to work >> aroung this? The meaning of the source code cannot be changed >> though... >> >> By the way: bar(arg1, arg2) in the else-section doesn't work either. >> >> >> Cheers, >> Fabian >> >> ------------------------------------------------------------ >> ------------------ >> Open source business process management suite built on Java and >> Eclipse >> Turn processes into business applications with Bonita BPM Community >> Edition >> Quickly connect people, data, and systems into organized workflows >> Winner of BOSSIE, CODIE, OW2 and Gartner awards >> http://p.sf.net/sfu/Bonitasoft >> _______________________________________________ >> Doxygen-users mailing list >> Dox...@li... >> <mailto:Dox...@li...> >> https://lists.sourceforge.net/lists/listinfo/doxygen-users >> >> >> |