annotate clang/test/Index/record-parsing-invocation.c @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents 1d019706d866
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: rm -rf %t
anatofuz
parents:
diff changeset
2 // RUN: mkdir %t
anatofuz
parents:
diff changeset
3 // RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -test-load-source all %s
anatofuz
parents:
diff changeset
4 // RUN: cat %t/libclang-* | FileCheck %s
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 // RUN: rm -rf %t
anatofuz
parents:
diff changeset
7 // RUN: mkdir %t
anatofuz
parents:
diff changeset
8 // RUN: env LIBCLANG_DISABLE_CRASH_RECOVERY=1 CINDEXTEST_INVOCATION_EMISSION_PATH=%t not --crash c-index-test -test-load-source all %s
anatofuz
parents:
diff changeset
9 // RUN: cat %t/libclang-* | FileCheck %s
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 // Verify that the file is removed for successful operation:
anatofuz
parents:
diff changeset
12 // RUN: rm -rf %t
anatofuz
parents:
diff changeset
13 // RUN: mkdir %t
anatofuz
parents:
diff changeset
14 // RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t c-index-test -test-load-source all %s -DAVOID_CRASH
anatofuz
parents:
diff changeset
15 // RUN: ls %t | count 0
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 // Make sure we record the unsaved file hash.
anatofuz
parents:
diff changeset
18 // RUN: rm -rf %t
anatofuz
parents:
diff changeset
19 // RUN: mkdir %t
anatofuz
parents:
diff changeset
20 // RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -test-load-source all "-remap-file=%s,%S/Inputs/record-parsing-invocation-remap.c" %s
anatofuz
parents:
diff changeset
21 // RUN: cat %t/libclang-* | FileCheck --check-prefix=CHECK-UNSAVED %s
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 #ifndef AVOID_CRASH
anatofuz
parents:
diff changeset
24 # pragma clang __debug parser_crash
anatofuz
parents:
diff changeset
25 #endif
anatofuz
parents:
diff changeset
26
anatofuz
parents:
diff changeset
27 // CHECK: {"toolchain":"{{.*}}","libclang.operation":"parse","libclang.opts":1,"args":["clang","-fno-spell-checking","{{.*}}record-parsing-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"]}
anatofuz
parents:
diff changeset
28 // CHECK-UNSAVED: {"toolchain":"{{.*}}","libclang.operation":"parse","libclang.opts":1,"args":["clang","-fno-spell-checking","{{.*}}record-parsing-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"],"unsaved_file_hashes":[{"name":"{{.*}}record-parsing-invocation.c","md5":"aee23773de90e665992b48209351d70e"}]}