[PATCH] D126559: [MSVC] Fix pragma alloc_text failing for C files
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 21 06:53:03 PDT 2022
hans added a comment.
> 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()`.
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