diff options
author | Marco Bubke <marco.bubke@qt.io> | 2018-02-20 12:43:05 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2018-03-22 13:26:24 +0000 |
commit | 53454b0f79fcfebab909d071e931557114ace558 (patch) | |
tree | 29294d846f6d93130324cb36d0f365b67d69bf21 /tests/unit/unittest/mocksqlitedatabase.h | |
parent | 70f5e0e2643a7678e9d2b0aa57063b986acdfcaf (diff) |
Clang: Use PCHs for indexing
As generating the AST is quite expensive it would be very useful to cache
the not changed include. So we generate PCHs for include outside of a
project part. With this change this PCHs are used by the indexer.
For that they are save to the symbol database by the PCH manager and when
fetched by the symbol indexer.
Change-Id: I7a5b07cfb32d72d50dc52d2b108cd41727a7bfc7
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'tests/unit/unittest/mocksqlitedatabase.h')
-rw-r--r-- | tests/unit/unittest/mocksqlitedatabase.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/unittest/mocksqlitedatabase.h b/tests/unit/unittest/mocksqlitedatabase.h index 271fd77ae0..36fb370e70 100644 --- a/tests/unit/unittest/mocksqlitedatabase.h +++ b/tests/unit/unittest/mocksqlitedatabase.h @@ -27,7 +27,9 @@ #include "googletest.h" +#include "mocksqlitereadstatement.h" #include "mocksqlitetransactionbackend.h" +#include "mocksqlitewritestatement.h" #include <sqlitetable.h> #include <sqlitetransaction.h> @@ -37,6 +39,9 @@ class MockSqliteDatabase : public MockSqliteTransactionBackend { public: + using ReadStatement = MockSqliteReadStatement; + using WriteStatement = MockSqliteWriteStatement; + MOCK_METHOD1(execute, void (Utils::SmallStringView sqlStatement)); |