To support using Control Flow Guard with mingw-w64, Clang needs to
accept __declspec(guard(nocf)) also for the GNU target. Since mingw
has #define __declspec(a) __attribute__((a)) as built-in, the simplest
solution is to accept __attribute((guard(nocf))) to be compatible with
MSVC and Clang's msvc target.
As a side effect, this also adds [[clang::guard(nocf)]] for C++.
I don't see any evidence that this is supported by GCC: https://godbolt.org/z/bEPv4E7ab
I think this should be using Clang instead of GCC so that it works as both [[clang::guard(nocf)]] and __attribute__((guard(nocf))).