-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 18.0.0
-
None
i came across an odd glitch in objective-c code, e.g. qt6-dev/qtmultimedia/src/plugins/multimedia/darwin/avfaudiodecoder.mm
there is a dispatch_async with a lambda function:
dispatch_async(m_decodingQueue, [=, this]() {
if (!weakContext.expired() && CMSampleBufferDataIsReady(sampleBuffer)) {
auto audioBuffer = handleNextSampleBuffer(format, sampleBuffer);
if (audioBuffer.isValid())
invokeWithDecodingContext(weakContext, [=, this]() {
handleNewAudioBuffer(audioBuffer);
});
}
});
when having the text cursor inside the lambda, the `dispatch_async` symbol is highlighted as "current symbol", and "follow symbol under cursor" jumps to the definition of `async_dispatch`.
observation:
- the behaviour is identical, no matter where in the lambda the text cursor is (lambda body, capture, arguments)
- i'm only seeing this with dispatch_async. not when passing lambda functions as argument to other functions, so i wonder if it might be related to dispatch_block_t