Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
lexscanner.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
*
4
*
5
* Copyright (C) 1997-2021 by Dimitri van Heesch.
6
*
7
* Permission to use, copy, modify, and distribute this software and its
8
* documentation under the terms of the GNU General Public License is hereby
9
* granted. No representations are made about the suitability of this software
10
* for any purpose. It is provided "as is" without express or implied warranty.
11
* See the GNU General Public License for more details.
12
*
13
* Documents produced by Doxygen are derivative works derived from the
14
* input used in their production; they are not affected by this license.
15
*
16
*/
17
18
#ifndef SCANNER_LEX_H
19
#define SCANNER_LEX_H
20
21
#include "
parserintf.h
"
22
23
/** \brief Lex language parser using state-based lexical scanning.
24
*
25
* This is the Lex language parser for doxygen.
26
*/
27
class
LexOutlineParser
:
public
OutlineParserInterface
28
{
29
public
:
30
LexOutlineParser
();
31
~LexOutlineParser
()
override
;
32
NON_COPYABLE
(
LexOutlineParser
)
33
void
parseInput
(
const
QCString
&fileName,
34
const
char
*fileBuf,
35
const
std::shared_ptr<Entry> &root,
36
ClangTUParser
*clangParser)
override
;
37
bool
needsPreprocessing
(
const
QCString
&
/* extension */
)
const override
{
return
TRUE
; }
38
void
parsePrototype
(
const
QCString
&
/* text */
)
override
{}
39
40
private
:
41
struct
Private;
42
std::unique_ptr<Private>
p
;
43
};
44
#endif
ClangTUParser
Clang parser object for a single translation unit, which consists of a source file and the directly o...
Definition
clangparser.h:25
LexOutlineParser::LexOutlineParser
LexOutlineParser()
Definition
lexscanner.l:1001
LexOutlineParser::~LexOutlineParser
~LexOutlineParser() override
Definition
lexscanner.l:1009
LexOutlineParser::p
std::unique_ptr< Private > p
Definition
lexscanner.h:42
LexOutlineParser::needsPreprocessing
bool needsPreprocessing(const QCString &) const override
Returns TRUE if the language identified by extension needs the C preprocessor to be run before feed t...
Definition
lexscanner.h:37
LexOutlineParser::parsePrototype
void parsePrototype(const QCString &) override
Callback function called by the comment block scanner.
Definition
lexscanner.h:38
OutlineParserInterface
Abstract interface for outline parsers.
Definition
parserintf.h:42
QCString
This is an alternative implementation of QCString.
Definition
qcstring.h:101
NON_COPYABLE
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition
construct.h:37
parseInput
void parseInput()
Definition
doxygen.cpp:12474
parserintf.h
TRUE
#define TRUE
Definition
qcstring.h:37
src
lexscanner.h
Generated by
1.17.0