Modernize detection of special attributes in clang.