Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
scanner.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
*
4
*
5
* Copyright (C) 1997-2015 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_H
19
#define SCANNER_H
20
21
#include "
parserintf.h
"
22
23
/** \brief C-like language parser using state-based lexical scanning.
24
*
25
* This is the language parser for doxygen. It is somewhat fuzzy and
26
* supports C++ and various languages that are closely related to C++,
27
* such as C, C#, Objective-C, Java, PHP, and IDL.
28
*/
29
class
COutlineParser
:
public
OutlineParserInterface
30
{
31
public
:
32
COutlineParser
();
33
COutlineParser
(
const
COutlineParser
&) =
delete
;
34
COutlineParser
&
operator=
(
COutlineParser
&) =
delete
;
35
COutlineParser
(
COutlineParser
&&) =
delete
;
36
COutlineParser
&
operator=
(
COutlineParser
&&) =
delete
;
37
~COutlineParser
()
override
;
38
void
parseInput
(
const
QCString
&fileName,
39
const
char
*fileBuf,
40
const
std::shared_ptr<Entry> &root,
41
ClangTUParser
*clangParser)
override
;
42
bool
needsPreprocessing
(
const
QCString
&extension)
const override
;
43
void
parsePrototype
(
const
QCString
&text)
override
;
44
private
:
45
struct
Private
;
46
std::unique_ptr<Private>
p
;
47
};
48
49
50
#endif
COutlineParser::COutlineParser
COutlineParser(COutlineParser &&)=delete
COutlineParser::operator=
COutlineParser & operator=(COutlineParser &&)=delete
COutlineParser::operator=
COutlineParser & operator=(COutlineParser &)=delete
COutlineParser::COutlineParser
COutlineParser()
Definition
scanner.l:8780
COutlineParser::parsePrototype
void parsePrototype(const QCString &text) override
Callback function called by the comment block scanner.
Definition
scanner.l:8818
COutlineParser::p
std::unique_ptr< Private > p
Definition
scanner.h:46
COutlineParser::COutlineParser
COutlineParser(const COutlineParser &)=delete
COutlineParser::~COutlineParser
~COutlineParser() override
Definition
scanner.l:8788
COutlineParser::needsPreprocessing
bool needsPreprocessing(const QCString &extension) const override
Returns TRUE if the language identified by extension needs the C preprocessor to be run before feed t...
Definition
scanner.l:8808
ClangTUParser
Clang parser object for a single translation unit, which consists of a source file and the directly o...
Definition
clangparser.h:25
OutlineParserInterface
Abstract interface for outline parsers.
Definition
parserintf.h:42
QCString
This is an alternative implementation of QCString.
Definition
qcstring.h:101
parseInput
void parseInput()
Definition
doxygen.cpp:12474
parserintf.h
COutlineParser::Private
Definition
scanner.l:8775
src
scanner.h
Generated by
1.17.0