Doxygen
|
C-like language parser using state-based lexical scanning. More...
#include <src/scanner.h>
Classes | |
struct | Private |
Public Member Functions | |
COutlineParser () | |
COutlineParser (const COutlineParser &)=delete | |
COutlineParser & | operator= (COutlineParser &)=delete |
COutlineParser (COutlineParser &&)=delete | |
COutlineParser & | operator= (COutlineParser &&)=delete |
~COutlineParser () override | |
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. | |
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. | |
void | parsePrototype (const QCString &text) override |
Callback function called by the comment block scanner. | |
Public Member Functions inherited from OutlineParserInterface |
Private Attributes | |
std::unique_ptr< Private > | p |
C-like language parser using state-based lexical scanning.
This is the language parser for doxygen. It is somewhat fuzzy and supports C++ and various languages that are closely related to C++, such as C, C#, Objective-C, Java, PHP, and IDL.
COutlineParser::COutlineParser | ( | ) |
Definition at line 8334 of file scanner.l.
References COutlineParser(), Debug::isFlagSet(), Debug::Lex_scanner, and p.
Referenced by COutlineParser(), COutlineParser(), COutlineParser(), operator=(), and operator=().
|
delete |
References COutlineParser().
|
delete |
References COutlineParser().
|
override |
|
overridevirtual |
Returns TRUE if the language identified by extension needs the C preprocessor to be run before feed the result to the input parser.
Implements OutlineParserInterface.
Definition at line 8362 of file scanner.l.
References Cpp, getLanguageFromFileName(), Lex, and QCString::lower().
|
delete |
References COutlineParser().
|
delete |
References COutlineParser().
|
overridevirtual |
Parses a single input file with the goal to build an Entry tree.
[in] | fileName | The full name of the file. |
[in] | fileBuf | The contents of the file (zero terminated). |
[in,out] | 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. |
Implements OutlineParserInterface.
Definition at line 8347 of file scanner.l.
References AUTO_TRACE, Debug::Lex_scanner, p, parseMain(), and qPrint().
|
overridevirtual |
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.
Implements OutlineParserInterface.
Definition at line 8372 of file scanner.l.
References p, and parsePrototype().
Referenced by parsePrototype().
|
private |
Definition at line 46 of file scanner.h.
Referenced by COutlineParser(), parseInput(), parsePrototype(), and ~COutlineParser().