diff options
Diffstat (limited to 'src/jomlib/preprocessor.h')
-rw-r--r-- | src/jomlib/preprocessor.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/jomlib/preprocessor.h b/src/jomlib/preprocessor.h index 02a7d69..b268c72 100644 --- a/src/jomlib/preprocessor.h +++ b/src/jomlib/preprocessor.h @@ -26,6 +26,8 @@ #ifndef PREPROCESSOR_H #define PREPROCESSOR_H +#include "makefilelinereader.h" + #include <QRegExp> #include <QStack> #include <QStringList> @@ -57,7 +59,13 @@ public: private: bool internalOpenFile(QString fileName); - void basicReadLine(QString& line); + MakefileLine basicReadLine(); + typedef void (*JoinFunc)(MakefileLine &, const MakefileLine &); + static void joinLines(MakefileLine &line, const MakefileLine &next); + static void joinPreprocessingDirectiveLines(MakefileLine &line, const MakefileLine &next); + void completeLineImpl(MakefileLine &line, JoinFunc joinFunc); + void completeLine(MakefileLine &line); + void completePreprocessingDirectiveLine(MakefileLine &line); bool parseMacro(const QString& line); bool parsePreprocessingDirective(const QString& line); QString findIncludeFile(const QString &filePathToInclude); |