[PATCH] D126559: [MSVC] Fix pragma alloc_text failing for C files

Stephen Long via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 21 07:18:08 PDT 2022


steplong added a comment.

In D126559#3598950 <https://reviews.llvm.org/D126559#3598950>, @hans wrote:

>> Oh I see, that makes sense. We aren't accepting https://godbolt.org/z/9Yej9vhYd. Do you know of a way to get the `NamedDecl` with `extern "C"` instead of the second declaration?
>
> I'm not sure I understand the question, but it seems the current code is checking `isExternCContext()`. I think instead you want to check `FunctionDecl::isExternC()`.

Oh, that answers my question. I'll give that a try. Thanks!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126559/new/

https://reviews.llvm.org/D126559



More information about the cfe-commits mailing list