forked from qt-creator/qt-creator
Run and debug under cursor simply used the literal under the cursor to find matching test cases or functions. This obviously finds more than the test under cursor. This patch limits this behavior by taking current file and line number into account as well. If the action gets triggered on a test definition then the found tests are limited to this position. If the literal under cursor does not belong to the definition of the test (declaration, string, comment) the original behavior gets triggered. Fixes: QTCREATORBUG-21093 Change-Id: I051d25c1d18e819caf2950b5c62d51e6d70d1b22 Reviewed-by: pawelrutka <prutka13@gmail.com> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
14 KiB
14 KiB