For “normal” symbols in a file we try to avoid listing them next to the header that makes them available in the file. However, for identifiers used in a #if or #ifdef directive, it could make sense to list them. Especially for config/bitcoin-config.h.
Example:
From #26924 (comment)