QDoc: Replace Qt-specific infinite loop idiom
The `forever` macro is a Qt-specific alias that doesn't exist in
standard C++. Its use in shared utility code reduces readability
for contributors familiar with C++ but not Qt's macro vocabulary.
The standard idiom is self-explanatory and doesn't require it.
This is the only Qt-specific keyword macro used in the QDoc
codebase. Upstream LLVM changes introduce a transitive inclusion
of headers containing a bare `emit` method, which collides with
Qt's `emit` macro. Replacing `forever` clears the path toward
disabling all Qt keyword macros in QDoc, the correct fix for
a tool that doesn't use signals and slots.
Amends a7f422d98ecbf775a8963a5057a68d48bb5ac59f.
Task-number: QTBUG-144119
Change-Id: I6ef7c3f90a2769cf3215413a92b516031641c219
Reviewed-by: Topi Reinio <topi.reinio@qt.io>