summaryrefslogtreecommitdiffstats
path: root/qmake/library/qmakeparser.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-10-25 10:55:00 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-25 16:22:00 +0200
commitf45d6414ad6ef1d75f049a61411cd954bcae29c3 (patch)
treeebde425c3c7b2dab39227f49d5ea460d9088fc14 /qmake/library/qmakeparser.h
parent79a389c34618880fab7a0b4f397ed3b0f0c0c675 (diff)
Fix qmake's pro file cache to interact correctly with write_file
When writing a file with write_file() we have to inform the pro file parser cache to discard the file if it's existant in the cache, to ensure that calling include() after write_file() always works. Change-Id: I7d09269a57de55ca30b0e11dd40770de9f919f64 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'qmake/library/qmakeparser.h')
-rw-r--r--qmake/library/qmakeparser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qmake/library/qmakeparser.h b/qmake/library/qmakeparser.h
index 0b22a91004..0bab5eea3b 100644
--- a/qmake/library/qmakeparser.h
+++ b/qmake/library/qmakeparser.h
@@ -94,6 +94,8 @@ public:
ProFile *parsedProBlock(const QString &contents, const QString &name, int line = 0,
SubGrammar grammar = FullGrammar);
+ void discardFileFromCache(const QString &fileName);
+
private:
enum ScopeNesting {
NestNone = 0,