From 2b02b7a7dc0dd585119a8716f1ce262cbe3327f8 Mon Sep 17 00:00:00 2001 From: safishamsi Date: Thu, 20 Aug 2026 15:42:36 +0100 Subject: [PATCH] docs(cpp): note nested enums stay out of scope of the nested-type fix (#2876) The recovery covers class/struct only; record that nested enums are a known, intentional gap so the next reader does not assume they are handled. --- graphify/extractors/engine.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/graphify/extractors/engine.py b/graphify/extractors/engine.py index 3bf3da12..ab6ed0c9 100644 --- a/graphify/extractors/engine.py +++ b/graphify/extractors/engine.py @@ -3992,6 +3992,11 @@ def _extract_generic( # it a `contains` edge from the enclosing type. The declarator loop # below still runs, since `class Inner { } inst;` declares a member # alongside the type. + # Only class/struct nested types are recovered here: `enum_specifier` + # is deliberately not in C++'s `class_types`, so a nested `enum` and + # its enumerators are still not emitted. That is outside #2876's scope + # (which is about nested class/struct and C++/CLI) and is left as a + # known gap rather than widened here. is_nested_type = ( type_node is not None and type_node.type in config.class_types