1 /****************************************************************************
3 ** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
4 ** Copyright 2005 Harald Fernengel <harry@kdevelop.org>
6 ** This file is part of $PRODUCT$.
10 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13 ****************************************************************************/
15 #ifndef PREPROCESSOR_H
16 #define PREPROCESSOR_H
18 #include <QtCore/qglobal.h>
19 #include <QtCore/qstring.h>
20 #include <QtCore/qstringlist.h>
23 class PreprocessorPrivate
;
31 void processFile(const QString
&fileName
);
32 void processString(const QByteArray
&str
);
34 void addIncludePaths(const QStringList
&includePaths
);
36 QByteArray
result() const;
38 QStringList
macroNames() const;
43 QStringList parameters
;
46 #ifdef PP_WITH_MACRO_POSITION
50 QList
<MacroItem
> macros() const;
53 Q_DISABLE_COPY(Preprocessor
)
54 PreprocessorPrivate
*d
;