diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-03-15 15:14:58 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-03-15 15:14:58 (GMT) |
commit | c1e25238950492e7f8a5c996e3d3ad41b9b023b0 (patch) | |
tree | 62d8b6469643fd0d4fc30950e85b3990bf51eda1 /src/fortranscanner.h | |
parent | 31a72d0ad15a4185dc123b522039ef3fa8a68b43 (diff) | |
parent | 2dec1060623165057628ee678eb3580351922408 (diff) | |
download | Doxygen-c1e25238950492e7f8a5c996e3d3ad41b9b023b0.zip Doxygen-c1e25238950492e7f8a5c996e3d3ad41b9b023b0.tar.gz Doxygen-c1e25238950492e7f8a5c996e3d3ad41b9b023b0.tar.bz2 |
Merge branch 'feature/bug_625601' of https://github.com/albert-github/doxygen into albert-github-feature/bug_625601
Diffstat (limited to 'src/fortranscanner.h')
-rw-r--r-- | src/fortranscanner.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/fortranscanner.h b/src/fortranscanner.h index a504abc..ec0d312 100644 --- a/src/fortranscanner.h +++ b/src/fortranscanner.h @@ -19,6 +19,7 @@ #define SCANNER_FORTRAN_H #include "parserintf.h" +#include "util.h" /** \brief Fortran language parser using state-based lexical scanning. * @@ -27,9 +28,10 @@ class FortranLanguageScanner : public ParserInterface { public: - virtual ~FortranLanguageScanner() {} + FortranLanguageScanner(void) { codeType = FORTRAN_UNKNOWN;} + virtual ~FortranLanguageScanner(void) {} void startTranslationUnit(const char *) {} - void finishTranslationUnit() {} + void finishTranslationUnit(void) {} void parseInput(const char *fileName, const char *fileBuf, Entry *root, @@ -51,8 +53,22 @@ class FortranLanguageScanner : public ParserInterface Definition *searchCtx=0, bool collectXRefs=TRUE ); - void resetCodeParserState(); + void resetCodeParserState(void); void parsePrototype(const char *text); + + FortranKind codeType; +}; + +class FortranLanguageScannerFree : public FortranLanguageScanner +{ + public: + FortranLanguageScannerFree(void) { codeType = FORTRAN_FREE; } +}; + +class FortranLanguageScannerFixed : public FortranLanguageScanner +{ + public: + FortranLanguageScannerFixed(void) { codeType = FORTRAN_FIXED; } }; #endif |