We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6b8624 commit dacf1edCopy full SHA for dacf1ed
2 files changed
sample.cc
test_py_cppmodel.py
@@ -12,12 +12,35 @@
12
"-I/Library/Developer/CommandLineTools/usr/include",
13
]
14
15
+SOURCE = """\
16
+int z = 0;
17
+
18
+struct __attribute__((annotate("A"))) A {
19
+ int a;
20
+ double b;
21
+ char c[8];
22
23
+ __attribute__((annotate("foo"))) int foo(int);
24
+};
25
26
+template <class T>
27
+class B {
28
+ T t;
29
+ T wibble(T);
30
31
32
+double bar(double);
33
34
+int main() {}
35
+"""
36
37
38
class TestCppModel(unittest.TestCase):
39
def setUp(self):
40
tu = TranslationUnit.from_source(
41
"sample.cc",
42
COMPILER_ARGS,
43
+ unsaved_files=[("sample.cc", SOURCE)],
44
)
45
self.model = py_cppmodel.Model(tu)
46
0 commit comments