[clang] [Parser][BoundsSafety] Print attribute as macro if it's system defined (PR #107619)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 13 07:12:40 PDT 2024
================
@@ -0,0 +1,22 @@
+// RUN: %clang_cc1 -I%S/Inputs -fsyntax-only -triple x86_64-linux-gnu %s 2>&1 | FileCheck %s
+
+#include <macro_defined_type.h>
+
+// The diagnostic message is hard-coded as 'noderef' so using a system macro doesn't change the behavior
----------------
AaronBallman wrote:
This seems like it's going to be a confusing user experience because sometimes the user will see `noderef` and other times they may see `_SYS_NODEREF`. Maybe we should make a second pass an update hard-coded names (perhaps as a follow-up)?
https://github.com/llvm/llvm-project/pull/107619
More information about the cfe-commits
mailing list