2013-11-12 10:04:53 +08:00
|
|
|
// RUN: pp-trace -ignore FileChanged %s -undef -target x86_64 -std=c++11 | FileCheck --strict-whitespace %s
|
|
|
|
|
|
|
|
#if 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 1
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 1
|
|
|
|
#elif 1
|
|
|
|
#endif
|
|
|
|
#if 1
|
|
|
|
#elif 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
#elif 1
|
|
|
|
#endif
|
|
|
|
#if 0
|
|
|
|
#elif 0
|
|
|
|
#endif
|
|
|
|
#if 1
|
|
|
|
#elif 1
|
|
|
|
#endif
|
|
|
|
#if 1
|
|
|
|
#elif 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
#elif 1
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
#if 0
|
|
|
|
#elif 0
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
#if 1
|
|
|
|
#elif 1
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
#if 1
|
|
|
|
#elif 0
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define MACRO 1
|
|
|
|
#ifdef MACRO
|
|
|
|
#endif
|
|
|
|
#ifdef NO_MACRO
|
|
|
|
#endif
|
|
|
|
#ifndef MACRO
|
|
|
|
#endif
|
|
|
|
#ifndef NO_MACRO
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// CHECK: ---
|
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
2016-10-01 07:47:58 +08:00
|
|
|
// CHECK: MacroNameTok: __STDC__
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
2016-10-01 07:47:58 +08:00
|
|
|
// CHECK: MacroNameTok: __STDC_HOSTED__
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
2016-10-01 07:47:58 +08:00
|
|
|
// CHECK: MacroNameTok: __cplusplus
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
2016-10-01 07:47:58 +08:00
|
|
|
// CHECK: MacroNameTok: __STDC_UTF_16__
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
2016-10-01 07:47:58 +08:00
|
|
|
// CHECK: MacroNameTok: __STDC_UTF_32__
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
2016-10-01 07:47:58 +08:00
|
|
|
// CHECK: - Callback: If
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:3:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:3:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:4:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_True
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:4:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:3:2"
|
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:6:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:6:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:7:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_False
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:7:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:6:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:6:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:7:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:9:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:9:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:10:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_True
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Else
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:10:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:9:2"
|
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:11:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:9:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:10:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:11:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:13:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:13:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:14:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_False
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Else
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:14:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:13:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:13:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:14:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:15:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:13:2"
|
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:17:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:17:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:18:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_True
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Elif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:18:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:18:6", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:19:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_NotEvaluated
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:17:2"
|
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:19:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:17:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:18:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:19:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:20:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:20:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:21:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_True
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Elif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:21:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:21:6", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:22:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_NotEvaluated
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:20:2"
|
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:22:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:20:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:21:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:22:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:24:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:24:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:25:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_False
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Elif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:25:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:25:6", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:26:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_True
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:24:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:24:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:25:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:26:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:24:2"
|
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:27:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:27:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:28:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_False
|
2013-12-05 04:19:30 +08:00
|
|
|
// CHECK-NEXT: - Callback: Elif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:28:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:28:6", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:29:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_False
|
2013-12-05 04:19:30 +08:00
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:27:2"
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:29:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:27:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:27:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:29:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:30:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:30:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:31:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_True
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Elif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:31:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:31:6", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:32:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_NotEvaluated
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:30:2"
|
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:32:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:30:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:31:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:32:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:33:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:33:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:34:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_True
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Elif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:34:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:34:6", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:35:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_NotEvaluated
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:33:2"
|
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:35:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:33:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:34:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:35:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:37:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:37:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:38:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_False
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Elif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:38:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:38:6", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:39:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_True
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:37:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:37:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:38:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Else
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:39:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:37:2"
|
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:40:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:37:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:39:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:40:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:41:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:41:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:42:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_False
|
2013-12-05 04:19:30 +08:00
|
|
|
// CHECK-NEXT: - Callback: Elif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:42:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:42:6", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:43:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_False
|
2013-12-05 04:19:30 +08:00
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:41:2"
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Else
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:43:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:41:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:41:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:43:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:44:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:41:2"
|
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:45:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:45:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:46:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_True
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Elif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:46:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:46:6", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:47:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_NotEvaluated
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:45:2"
|
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:48:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:45:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:46:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:48:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: If
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:49:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:49:4", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:50:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_True
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Elif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:50:2"
|
|
|
|
// CHECK-NEXT: ConditionRange: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:50:6", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:51:1"]
|
2013-12-07 16:41:15 +08:00
|
|
|
// CHECK-NEXT: ConditionValue: CVK_NotEvaluated
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:49:2"
|
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:52:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:49:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:50:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:52:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
|
|
|
// CHECK-NEXT: MacroNameTok: MACRO
|
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
|
|
|
// CHECK-NEXT: - Callback: Ifdef
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:55:2"
|
|
|
|
// CHECK-NEXT: MacroNameTok: MACRO
|
2015-05-04 11:15:55 +08:00
|
|
|
// CHECK-NEXT: MacroDefinition: [(local)]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:56:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:55:2"
|
|
|
|
// CHECK-NEXT: - Callback: Ifdef
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:57:2"
|
|
|
|
// CHECK-NEXT: MacroNameTok: NO_MACRO
|
2015-05-04 11:15:55 +08:00
|
|
|
// CHECK-NEXT: MacroDefinition: []
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:58:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:57:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:57:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:58:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Ifndef
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:59:2"
|
|
|
|
// CHECK-NEXT: MacroNameTok: MACRO
|
2015-05-04 11:15:55 +08:00
|
|
|
// CHECK-NEXT: MacroDefinition: [(local)]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:60:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:59:2"
|
|
|
|
// CHECK-NEXT: - Callback: SourceRangeSkipped
|
2017-09-12 04:47:45 +08:00
|
|
|
// CHECK-NEXT: Range: ["{{.*}}{{[/\\]}}pp-trace-conditional.cpp:59:1", "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:60:2"]
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Ifndef
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:61:2"
|
|
|
|
// CHECK-NEXT: MacroNameTok: NO_MACRO
|
2015-05-04 11:15:55 +08:00
|
|
|
// CHECK-NEXT: MacroDefinition: []
|
2013-11-12 10:04:53 +08:00
|
|
|
// CHECK-NEXT: - Callback: Endif
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:62:2"
|
|
|
|
// CHECK-NEXT: IfLoc: "{{.*}}{{[/\\]}}pp-trace-conditional.cpp:61:2"
|
|
|
|
// CHECK-NEXT: - Callback: EndOfMainFile
|
|
|
|
// CHECK-NEXT: ...
|