QDoc: Handle empty QML code snippets gracefully


When a QML snippet contains no code, passing an empty string to
the QML parser causes unnecessary work and can produce confusing
warnings. This matters because documentation sources sometimes
contain placeholder or conditional snippets that resolve to
empty content.

Returning early for empty input avoids invoking the parser on
content that can't produce meaningful output. A debug message
helps authors trace where the empty snippet originates.

Fixes: QTBUG-90708
Change-Id: I318fc6d072dce9ca6456a4be0cd86b1f2cc11b82
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commitbcd474437be0a1ab157cdc93031b7a43e8de75d9
parent0446f31df6c0062ea88858ca0c1457db31c1b051
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeTue, 24 Mar 2026 09:14:59 +0100