diff options
author | Marco Bubke <marco.bubke@qt.io> | 2018-04-09 13:30:30 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2018-04-12 13:12:24 +0000 |
commit | 4b0bcbdcb6b28e806de4ba31fa5fecd06fd9188e (patch) | |
tree | 14acb63657252b111007330cc3568ee063f3cb8e /src/plugins/clangrefactoring/querysqlitestatementfactory.h | |
parent | 18de1e3fcf4bc2715636c8f69b29e6177bcd552b (diff) | |
download | qt-creator-4b0bcbdcb6b28e806de4ba31fa5fecd06fd9188e.tar.gz |
Clang: Locator filter for the symbol database
There are no symbol queries for the locator filters. The signature
generation is still not implemented but for simple cases it should work.
Change-Id: Ic6b04fbe1e7e057892f194ac139615c47d6ec33f
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/clangrefactoring/querysqlitestatementfactory.h')
-rw-r--r-- | src/plugins/clangrefactoring/querysqlitestatementfactory.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/clangrefactoring/querysqlitestatementfactory.h b/src/plugins/clangrefactoring/querysqlitestatementfactory.h index 231287e84c..21a1f022ec 100644 --- a/src/plugins/clangrefactoring/querysqlitestatementfactory.h +++ b/src/plugins/clangrefactoring/querysqlitestatementfactory.h @@ -49,6 +49,18 @@ public: "FROM locations NATURAL JOIN sources NATURAL JOIN directories " "WHERE symbolId = (SELECT symbolId FROM locations WHERE sourceId=? AND line=? AND column=?)", database}; + ReadStatement selectSymbolsForKindAndStartsWith{ + "SELECT symbolId, symbolName, signature FROM symbols WHERE symbolKind = ? AND symbolName LIKE ?", + database}; + ReadStatement selectSymbolsForKindAndStartsWith2{ + "SELECT symbolId, symbolName, signature FROM symbols WHERE symbolKind IN (?,?) AND symbolName LIKE ?", + database}; + ReadStatement selectSymbolsForKindAndStartsWith3{ + "SELECT symbolId, symbolName, signature FROM symbols WHERE symbolKind IN (?,?,?) AND symbolName LIKE ?", + database}; + ReadStatement selectLocationOfSymbol{ + "SELECT (SELECT directoryId FROM sources WHERE sourceId = l.sourceId), sourceId, line, column FROM locations AS l WHERE symbolId = ? AND locationKind = ?", + database}; }; } // namespace ClangRefactoring |