Try and empty folding range like
ktexteditor/src/utils/kateconfig.cpp:634
Where...
KateRendererConfig::~KateRendererConfig()
{
}
...cause the hassle
Each part of this patch solve the issue of its own, but I'm unsure which way to go.
I think it shouldn't be a folding range offered in such a case, will look at it later.