[PATCH] D145769: [clang] Extract ParsedAttrInfo::hasSpelling method (NFC)

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 10 06:17:35 PST 2023


tbaeder added inline comments.


================
Comment at: clang/include/clang/Basic/ParsedAttrInfo.h:92
+  /// Check if this attribute has specified spelling.
+  bool hasSpelling(AttributeCommonInfo::Syntax Syntax, StringRef Name) {
+    return llvm::any_of(Spellings, [&] (const Spelling &S) {
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145769/new/

https://reviews.llvm.org/D145769



More information about the cfe-commits mailing list