diff options
Diffstat (limited to 'src/tools/clangbackend/ipcsource/clangtranslationunit.cpp')
-rw-r--r-- | src/tools/clangbackend/ipcsource/clangtranslationunit.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/clangbackend/ipcsource/clangtranslationunit.cpp b/src/tools/clangbackend/ipcsource/clangtranslationunit.cpp index 0bc0509a5ee..a0d2fc932e6 100644 --- a/src/tools/clangbackend/ipcsource/clangtranslationunit.cpp +++ b/src/tools/clangbackend/ipcsource/clangtranslationunit.cpp @@ -28,6 +28,8 @@ #include "clangbackend_global.h" #include "clangreferencescollector.h" #include "clangtranslationunitupdater.h" +#include "clangfollowsymbol.h" +#include "clangfollowsymboljob.h" #include <codecompleter.h> #include <cursor.h> @@ -38,6 +40,7 @@ #include <skippedsourceranges.h> #include <sourcelocation.h> #include <sourcerange.h> +#include <commandlinearguments.h> #include <utils/qtcassert.h> @@ -236,4 +239,13 @@ void TranslationUnit::extractDiagnostics(DiagnosticContainer &firstHeaderErrorDi } } +FollowSymbolResult TranslationUnit::followSymbol(uint line, + uint column, + const QVector<Utf8String> &dependentFiles, + const CommandLineArguments ¤tArgs) const +{ + return FollowSymbol::followSymbol(m_cxIndex, cursorAt(line, column), line, column, + dependentFiles, currentArgs); +} + } // namespace ClangBackEnd |