[clang] [llvm] [clang] Add "debug_transparent" attribute (PR #109490)

Augusto Noronha via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 25 16:50:21 PDT 2024


================
@@ -109,6 +110,21 @@ static bool IsArtificial(VarDecl const *VD) {
                               cast<Decl>(VD->getDeclContext())->isImplicit());
 }
 
+static bool usesDebugTransparent(const Decl *D, const CodeGenModule &CGM) {
+  if (!D)
+    return false;
+
+  if (auto *attr = D->getAttr<DebugTransparentAttr>()) {
----------------
augusto2112 wrote:

I need the `attr` variable to access its location when reporting that it's missing.

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


More information about the cfe-commits mailing list