This patch fixes formatting inside `Functions` section of `declare`
by making it consistent with the way how `define` is written.
Small additional refactoring to `Functions` section is also added.
Fixes [[ https://github.com/llvm/llvm-project/issues/39844 | #39844 ]]