diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-11-25 11:12:30 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-12-03 13:26:29 +0000 |
commit | 8ad9c0111ccfbac9a06513fa5c9baa6dc4e48970 (patch) | |
tree | fdbdfea2c821f4b3d43a4a99f7a3ff293232420f /src/plugins/cpptools/cpprefactoringengine.cpp | |
parent | a83c33999ad32fd12492cca89efeae619cc76ba2 (diff) | |
download | qt-creator-8ad9c0111ccfbac9a06513fa5c9baa6dc4e48970.tar.gz |
clangbackend: Another workaround for libclang cursor weirdness
Sometimes, clang_getCursor() erroneously returns an invalid cursor, in
which case we may be able to retrieve the real one via
clang_annotateTokens(). This is basically the reverse of the issue we
recently had, where we had to call clang_getCursor() to get information
missing from clang_annotateTokens().
Fixes: QTCREATORBUG-21194
Change-Id: Ie8c4767bca03bd1b27e3ef1f906378fc1d436b90
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpprefactoringengine.cpp')
0 files changed, 0 insertions, 0 deletions