summaryrefslogtreecommitdiff
path: root/queries/cpp/99-imports.scm
blob: 2efa21c0c7d42b835eec468df0a90a8b7126fcee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; import foo_module;
(import_declaration
  name: (module_name
    (identifier) @import.name)) @import.decl

; #include "foo.hpp"
(preproc_include
  path: (string_literal
    (string_content) @import.name)) @import.decl

; #include <foo>
(preproc_include
  path: (system_lib_string) @import.name) @import.decl