[clang] [APINotes] Apply APINotes to non-global decls in a LinkageSpecDecl (PR #176792)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 19 10:11:38 PST 2026


https://github.com/compnerd commented:

Do we need to consider something like:

```c++
namespace {
extern "C++" {
struct S {
  extern "C" static void f();
};
}
}
```

`::S::f` is actually exported as `f` in the global namespace here I believe.

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


More information about the cfe-commits mailing list