/ queries / cpp / destructures.scm
destructures.scm
 1  ;; ═════════════════════════════════════════════════════════════════════════
 2  ;; C++ Destructure Queries
 3  ;; ═════════════════════════════════════════════════════════════════════════
 4  ;; C++ has structured bindings (C++17) but they're typically not used for
 5  ;; env var access. This file is intentionally minimal.
 6  
 7  ;; ───────────────────────────────────────────────────────────────────────────
 8  ;; auto [a, b] = pair; (structured binding - C++17)
 9  ;; ───────────────────────────────────────────────────────────────────────────
10  (declaration
11    declarator: (structured_binding_declarator
12      (identifier) @destructure_key)) @destructure