My Project
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
clangparser.h
Go to the documentation of this file.
1
#ifndef CLANGPARSER_H
2
#define CLANGPARSER_H
3
4
#include <qcstring.h>
5
#include <qstrlist.h>
6
7
class
CodeOutputInterface
;
8
class
FileDef
;
9
11
class
ClangParser
12
{
13
public
:
15
static
ClangParser
*
instance
();
16
25
void
start
(
const
char
*fileName,QStrList &filesInTranslationUnit);
26
31
void
switchToFile
(
const
char
*fileName);
32
36
void
finish
();
37
41
QCString
lookup
(uint line,
const
char
*symbol);
42
47
void
writeSources
(
CodeOutputInterface
&ol,
FileDef
*fd);
48
49
private
:
50
void
linkIdentifier
(
CodeOutputInterface
&ol,
FileDef
*fd,
51
uint &line,uint &column,
52
const
char
*text,
int
tokenIndex);
53
void
linkMacro
(
CodeOutputInterface
&ol,
FileDef
*fd,
54
uint &line,uint &column,
55
const
char
*text);
56
void
linkInclude
(
CodeOutputInterface
&ol,
FileDef
*fd,
57
uint &line,uint &column,
58
const
char
*text);
59
void
determineInputFilesInSameTu
(QStrList &filesInTranslationUnit);
60
class
Private
;
61
Private
*
p
;
62
ClangParser
();
63
virtual
~ClangParser
();
64
static
ClangParser
*
s_instance
;
65
};
66
67
#endif