Add guard-blocks for clang-format.
clang-format doesn't deal with the macros in SettingsData so well. This is a follow-up to c4829929 so that the formatting stays correct.