[clang] Extract function for generated part of clang::hasAttribute (NFC)
authorAnders Waldenborg <anders@0x63.nu>
Thu, 2 Feb 2023 21:10:20 +0000 (22:10 +0100)
committerAnders Waldenborg <anders@0x63.nu>
Mon, 13 Mar 2023 15:47:51 +0000 (16:47 +0100)
commit8629343a8b6c26f15f02de2fdd8db440eba71937
tree2429e0f1212abc78941c529e462792ae98af8312
parent446f78092ffa75274866ec40411a1c0dbec2f13d
[clang] Extract function for generated part of clang::hasAttribute (NFC)

This makes it easier to add additional handling when the
tablegen-generated code does not find a match.

No functional change intended.

Differential Revision: https://reviews.llvm.org/D144404
clang/lib/Basic/Attributes.cpp