summaryrefslogtreecommitdiffstats
path: root/src/linguist/shared/qmakeevaluator.h
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2018-07-16 14:44:53 +0200
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-09-14 13:51:14 +0000
commit5989ab6e8482862c3888eeab4d5bc806b81e1db8 (patch)
tree3fdee170c0244ecc6c80fd7353eb3bccbf818816 /src/linguist/shared/qmakeevaluator.h
parent265154df14ae0b89cad2e6fe140b8e2c9324a2bc (diff)
qmake: break out testFunc_cache() from evaluateBuiltinConditional()
It's 160ish lines and adequately isolated. Still, it *might* be contributing to compilers being slow (unlikely though that seems) so seemed worth tidying up anyway. Task-number: QTQAINFRA-2117 Change-Id: I9e55e677552c273fdf3480ccefc229fd6fd2b66a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> (cherry picked from qtbase/01eab308a3d6dbfc9739cc822fea064180350e18) Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/linguist/shared/qmakeevaluator.h')
-rw-r--r--src/linguist/shared/qmakeevaluator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/linguist/shared/qmakeevaluator.h b/src/linguist/shared/qmakeevaluator.h
index c9e84dfbb..92a24a569 100644
--- a/src/linguist/shared/qmakeevaluator.h
+++ b/src/linguist/shared/qmakeevaluator.h
@@ -250,6 +250,11 @@ public:
#endif
QByteArray getCommandOutput(const QString &args, int *exitCode) const;
+private:
+ // Implementation detail of evaluateBuiltinConditional():
+ VisitReturn testFunc_cache(const ProStringList &args);
+
+public:
QMakeEvaluator *m_caller;
#ifdef PROEVALUATOR_CUMULATIVE
bool m_cumulative;