[clang] [clang] Instantiate attributes on LabelDecls (PR #115924)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 15 06:10:57 PST 2024


================
@@ -1,4 +1,64 @@
-// RUN: %clang_cc1 -std=gnu++20 -fsyntax-only -verify %s
+// RUN: split-file %s %t
+// RUN: %clang_cc1 -std=gnu++20 -fsyntax-only -ast-dump -verify %t/good_annotate.cpp | FileCheck %s
----------------
erichkeane wrote:

This looks like it should just be a separate file instead, `attr-annotate-ast.cpp` instead of this split file stuff is much preferred.  Also, the `bad` line has no reason to do `verify`, you aren't actually checking diagnostic lines, just doing an AST dump.

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


More information about the cfe-commits mailing list