================
@@ -25,6 +25,17 @@ namespace {
 
 AST_MATCHER(EnumDecl, hasEnumerators) { return !Node.enumerators().empty(); }
 
+AST_MATCHER(EnumDecl, isExternC) {
+  return Node.getLexicalDeclContext()->isExternCContext();
----------------
vbvictor wrote:

Can we use regular `getDeclContext()`? I suppose we need to be semantically in 
`extern C` or I'm missing something?

https://github.com/llvm/llvm-project/pull/178233
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to