[clang] [Clang] include attribute scope in diagnostics (PR #144619)

Oleksandr T. via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 27 05:58:22 PDT 2025


================
@@ -292,6 +297,45 @@ inline bool doesKeywordAttributeTakeArgs(tok::TokenKind Kind) {
   }
 }
 
+inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
+                                             const AttributeCommonInfo &CI) {
+  DB.AddTaggedVal(reinterpret_cast<uint64_t>(&CI),
+                  DiagnosticsEngine::ak_attr_info);
+  return DB;
----------------
a-tarasyuk wrote:

I've updated to make it cleaner

https://github.com/llvm/llvm-project/pull/144619


More information about the cfe-commits mailing list