This is the same kind of bug than D18238.
Fix crashes caused by deferencing null pointer when declarations parsing may be delayed.
The body of the declarations may be null.
The crashes were observed with a Windows build of clang-tidy and the following command-line.
command-line switches: -fms-compatibility-version=19 -fms-compatibility
Are the double -- necessary?