Clang Project

clang_source_code/test/Index/skipped-ranges.c
1#define cool
2
3#if defined(cool)
4
5#if defined(really_cool)
6#endif // really_cool
7
8#elif defined(hot)
9// hot
10
11
12#endif // trailing comment
13
14#ifndef cool
15#ifndef uncool
16
17int probably_hot = 1;
18
19#endif // uncool
20#endif // cool
21
22// RUN: env CINDEXTEST_SHOW_SKIPPED_RANGES=1 c-index-test -test-annotate-tokens=%s:1:1:16:1 %s | FileCheck %s
23// CHECK: Skipping: [5:1 - 6:7]
24// CHECK: Skipping: [8:1 - 12:7]
25// CHECK: Skipping: [14:1 - 20:7]
26