forked from qt-creator/qt-creator
preprocessor: make Preprocessor::preprocess private
Change-Id: Ic81e3ebec1b42ae0698a340ee7e1c711225c1162 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -82,10 +82,6 @@ public:
|
||||
QByteArray operator()(const QString &filename, const QString &source);
|
||||
QByteArray operator()(const QString &filename, const QByteArray &source, bool noLines = false, bool markGeneratedTokens = true);
|
||||
|
||||
void preprocess(const QString &filename,
|
||||
const QByteArray &source,
|
||||
QByteArray *result, bool noLines, bool markGeneratedTokens, bool inCondition);
|
||||
|
||||
bool expandMacros() const;
|
||||
void setExpandMacros(bool expandMacros);
|
||||
|
||||
@@ -93,6 +89,10 @@ public:
|
||||
void setKeepComments(bool keepComments);
|
||||
|
||||
private:
|
||||
void preprocess(const QString &filename,
|
||||
const QByteArray &source,
|
||||
QByteArray *result, bool noLines, bool markGeneratedTokens, bool inCondition);
|
||||
|
||||
enum { MAX_LEVEL = 512 };
|
||||
|
||||
struct State {
|
||||
|
||||
@@ -204,8 +204,7 @@ public:
|
||||
{
|
||||
QByteArray src = loadSource(fileName);
|
||||
QVERIFY(!src.isEmpty());
|
||||
|
||||
m_pp.preprocess(fileName, src, m_output, nolines, true, false);
|
||||
*m_output = m_pp(fileName, src, nolines, true);
|
||||
}
|
||||
|
||||
QList<Block> skippedBlocks() const
|
||||
|
||||
Reference in New Issue
Block a user