The FortranOutlineParser
Class Reference
Fortran language parser using state-based lexical scanning. More...
Declaration
Included Headers
Base class
class | OutlineParserInterface |
Abstract interface for outline parsers. More... | |
Derived Classes
class | FortranOutlineParserFixed |
class | FortranOutlineParserFree |
Public Constructors Index
FortranOutlineParser (FortranFormat format=FortranFormat::Unknown) | |
Public Destructor Index
~FortranOutlineParser () override | |
Public Member Functions Index
void | parseInput (const QCString &fileName, const char *fileBuf, const std::shared_ptr< Entry > &root, ClangTUParser *clangParser) override |
Parses a single input file with the goal to build an Entry tree. More... | |
bool | needsPreprocessing (const QCString &extension) const override |
Returns TRUE if the language identified by extension needs the C preprocessor to be run before feed the result to the input parser. More... | |
void | parsePrototype (const QCString &text) override |
Callback function called by the comment block scanner. More... | |
Private Member Attributes Index
std::unique_ptr< Private > | p |
Description
Fortran language parser using state-based lexical scanning.
This is the Fortran language parser for doxygen.
Definition at line 27 of file fortranscanner.h.
Public Constructors
FortranOutlineParser()
|
Declaration at line 30 of file fortranscanner.h, definition at line 3343 of file fortranscanner.l.
Reference p.
Referenced by FortranOutlineParserFixed::FortranOutlineParserFixed and FortranOutlineParserFree::FortranOutlineParserFree.
Public Destructor
~FortranOutlineParser()
|
Declaration at line 31 of file fortranscanner.h, definition at line 3348 of file fortranscanner.l.
Reference p.
Public Member Functions
needsPreprocessing()
| virtual |
Returns TRUE if the language identified by extension needs the C preprocessor to be run before feed the result to the input parser.
- See Also
Declaration at line 37 of file fortranscanner.h, definition at line 3366 of file fortranscanner.l.
Reference QCString::lower.
parseInput()
| virtual |
Parses a single input file with the goal to build an Entry tree.
- Parameters
-
[in] fileName The full name of the file.
[in] fileBuf The contents of the file (zero terminated).
[inout] root The root of the tree of Entry *nodes representing the information extracted from the file.
[in] clangParser The clang translation unit parser object or nullptr if disabled.
Declaration at line 33 of file fortranscanner.h, definition at line 3353 of file fortranscanner.l.
References Debug::Lex_fortranscanner, p, parseMain and qPrint.
parsePrototype()
| virtual |
Callback function called by the comment block scanner.
It provides a string text containing the prototype of a function or variable. The parser should parse this and store the information in the Entry node that corresponds with the node for which the comment block parser was invoked.
Declaration at line 38 of file fortranscanner.h, definition at line 3371 of file fortranscanner.l.
References FALSE, p, popBuffer, pushBuffer and TRUE.
Private Member Attributes
p
|
Definition at line 42 of file fortranscanner.h.
Referenced by FortranOutlineParser, parseInput, parsePrototype and ~FortranOutlineParser.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.