annotate clang/test/Index/keep-going.cpp @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 #include "missing1.h"
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 template<class T>
anatofuz
parents:
diff changeset
4 class A { T a; };
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 class B : public A<int> { };
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 #include "missing2.h"
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 class C : public A<float> { };
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 // Not found includes shouldn't affect subsequent correct includes.
anatofuz
parents:
diff changeset
13 #include "foo.h"
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_KEEP_GOING=1 c-index-test -test-print-type -I%S/Inputs %s -std=c++03 2> %t.stderr.txt | FileCheck %s
anatofuz
parents:
diff changeset
16 // RUN: FileCheck -check-prefix CHECK-DIAG %s < %t.stderr.txt
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 // Verify that even without CINDEXTEST_EDITING we don't stop processing after a fatal error.
anatofuz
parents:
diff changeset
19 // RUN: env CINDEXTEST_KEEP_GOING=1 c-index-test -test-print-type -I%S/Inputs %s -std=c++03 2> %t.stderr.txt | FileCheck -check-prefix CHECK-KEEP-GOING-ONLY %s
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 // CHECK: inclusion directive=missing1.h ((null)) [type=] [typekind=Invalid] [isPOD=0]
anatofuz
parents:
diff changeset
22 // CHECK: inclusion directive=missing2.h ((null)) [type=] [typekind=Invalid] [isPOD=0]
anatofuz
parents:
diff changeset
23 // CHECK: inclusion directive=foo.h ({{.*[/\\]}}test{{[/\\]}}Index{{[/\\]}}Inputs{{[/\\]}}foo.h) [type=] [typekind=Invalid] [isPOD=0]
anatofuz
parents:
diff changeset
24 // CHECK: ClassTemplate=A:4:7 (Definition) [type=] [typekind=Invalid] [isPOD=0]
anatofuz
parents:
diff changeset
25 // CHECK: TemplateTypeParameter=T:3:16 (Definition) [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
anatofuz
parents:
diff changeset
26 // CHECK: FieldDecl=a:4:13 (Definition) [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
anatofuz
parents:
diff changeset
27 // CHECK: TypeRef=T:3:16 [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
anatofuz
parents:
diff changeset
28 // CHECK: ClassDecl=B:6:7 (Definition) [type=B] [typekind=Record] [isPOD=0]
anatofuz
parents:
diff changeset
29 // CHECK: C++ base class specifier=A<int>:4:7 [access=public isVirtual=false] [type=A<int>] [typekind=Unexposed] [templateargs/1= [type=int] [typekind=Int]] [canonicaltype=A<int>] [canonicaltypekind=Record] [canonicaltemplateargs/1= [type=int] [typekind=Int]] [isPOD=0] [nbFields=1]
anatofuz
parents:
diff changeset
30 // CHECK: TemplateRef=A:4:7 [type=] [typekind=Invalid] [isPOD=0]
anatofuz
parents:
diff changeset
31 // CHECK: ClassDecl=C:10:7 (Definition) [type=C] [typekind=Record] [isPOD=0]
anatofuz
parents:
diff changeset
32 // CHECK: C++ base class specifier=A<float>:4:7 [access=public isVirtual=false] [type=A<float>] [typekind=Unexposed] [templateargs/1= [type=float] [typekind=Float]] [canonicaltype=A<float>] [canonicaltypekind=Record] [canonicaltemplateargs/1= [type=float] [typekind=Float]] [isPOD=0] [nbFields=1]
anatofuz
parents:
diff changeset
33 // CHECK: TemplateRef=A:4:7 [type=] [typekind=Invalid] [isPOD=0]
anatofuz
parents:
diff changeset
34
anatofuz
parents:
diff changeset
35 // CHECK-KEEP-GOING-ONLY: VarDecl=global_var:1:12 [type=int] [typekind=Int] [isPOD=1]
anatofuz
parents:
diff changeset
36
anatofuz
parents:
diff changeset
37 // CHECK-DIAG: keep-going.cpp:1:10: error: 'missing1.h' file not found
anatofuz
parents:
diff changeset
38 // CHECK-DIAG: keep-going.cpp:8:10: error: 'missing2.h' file not found