2013-10-31 20:23:32 +08:00
|
|
|
// RUN: pp-trace %s -undef -target x86_64 -std=c++11 | FileCheck --strict-whitespace %s
|
|
|
|
|
2013-11-01 05:29:44 +08:00
|
|
|
#include "Inputs/Level1A.h"
|
|
|
|
#include "Inputs/Level1B.h"
|
2013-10-31 20:23:32 +08:00
|
|
|
|
|
|
|
// CHECK: ---
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-include.cpp:1:1"
|
|
|
|
// CHECK-NEXT: Reason: EnterFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
|
|
|
// CHECK-NEXT: PrevFID: (invalid)
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
|
|
|
// CHECK-NEXT: Loc: "<built-in>:1:1"
|
|
|
|
// CHECK-NEXT: Reason: EnterFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
|
|
|
// CHECK-NEXT: PrevFID: (invalid)
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
|
|
|
// CHECK-NEXT: Loc: "<built-in>:1:1"
|
|
|
|
// CHECK-NEXT: Reason: RenameFile
|
|
|
|
// CHECK-NEXT: FileType: C_System
|
|
|
|
// CHECK-NEXT: PrevFID: (invalid)
|
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
2016-10-01 07:47:58 +08:00
|
|
|
// CHECK: MacroNameTok: __STDC__
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
2016-10-01 07:47:58 +08:00
|
|
|
// CHECK: MacroNameTok: __STDC_HOSTED__
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
2016-10-01 07:47:58 +08:00
|
|
|
// CHECK: MacroNameTok: __cplusplus
|
2013-10-31 20:23:32 +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-10-31 20:23:32 +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-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
2016-10-01 07:47:58 +08:00
|
|
|
// CHECK: - Callback: FileChanged
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: Loc: "<command line>:1:1"
|
|
|
|
// CHECK-NEXT: Reason: EnterFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
|
|
|
// CHECK-NEXT: PrevFID: (invalid)
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
|
|
|
// CHECK-NEXT: Loc: "<built-in>:1:1"
|
|
|
|
// CHECK-NEXT: Reason: ExitFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
|
|
|
// CHECK-NEXT: PrevFID: (invalid)
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-include.cpp:1:1"
|
|
|
|
// CHECK-NEXT: Reason: ExitFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
|
|
|
// CHECK-NEXT: PrevFID: (getFileEntryForID failed)
|
|
|
|
// CHECK-NEXT: - Callback: InclusionDirective
|
|
|
|
// CHECK-NEXT: IncludeTok: include
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: FileName: "Inputs/Level1A.h"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: IsAngled: false
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: FilenameRange: "Inputs/Level1A.h"
|
|
|
|
// CHECK-NEXT: File: "{{.*}}{{[/\\]}}Inputs/Level1A.h"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: SearchPath: "{{.*}}{{[/\\]}}pp-trace"
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: RelativePath: "Inputs/Level1A.h"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: Imported: (null)
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}Inputs/Level1A.h:1:1"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: Reason: EnterFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
|
|
|
// CHECK-NEXT: PrevFID: (invalid)
|
|
|
|
// CHECK-NEXT: - Callback: InclusionDirective
|
|
|
|
// CHECK-NEXT: IncludeTok: include
|
|
|
|
// CHECK-NEXT: FileName: "Level2A.h"
|
|
|
|
// CHECK-NEXT: IsAngled: false
|
|
|
|
// CHECK-NEXT: FilenameRange: "Level2A.h"
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: File: "{{.*}}{{[/\\]}}Inputs/Level2A.h"
|
|
|
|
// CHECK-NEXT: SearchPath: "{{.*}}{{[/\\]}}Inputs"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: RelativePath: "Level2A.h"
|
|
|
|
// CHECK-NEXT: Imported: (null)
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}Inputs/Level2A.h:1:1"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: Reason: EnterFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
|
|
|
// CHECK-NEXT: PrevFID: (invalid)
|
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
|
|
|
// CHECK-NEXT: MacroNameTok: MACRO_2A
|
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}Inputs/Level1A.h:2:1"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: Reason: ExitFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: PrevFID: "{{.*}}{{[/\\]}}Inputs/Level2A.h"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
|
|
|
// CHECK-NEXT: MacroNameTok: MACRO_1A
|
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-include.cpp:4:1"
|
|
|
|
// CHECK-NEXT: Reason: ExitFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: PrevFID: "{{.*}}{{[/\\]}}Inputs/Level1A.h"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: - Callback: InclusionDirective
|
|
|
|
// CHECK-NEXT: IncludeTok: include
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: FileName: "Inputs/Level1B.h"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: IsAngled: false
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: FilenameRange: "Inputs/Level1B.h"
|
|
|
|
// CHECK-NEXT: File: "{{.*}}{{[/\\]}}Inputs/Level1B.h"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: SearchPath: "{{.*}}{{[/\\]}}pp-trace"
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: RelativePath: "Inputs/Level1B.h"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: Imported: (null)
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}Inputs/Level1B.h:1:1"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: Reason: EnterFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
|
|
|
// CHECK-NEXT: PrevFID: (invalid)
|
2013-11-13 03:50:49 +08:00
|
|
|
// CHECK-NEXT: - Callback: InclusionDirective
|
|
|
|
// CHECK-NEXT: IncludeTok: include
|
|
|
|
// CHECK-NEXT: FileName: "Level2B.h"
|
|
|
|
// CHECK-NEXT: IsAngled: false
|
|
|
|
// CHECK-NEXT: FilenameRange: "Level2B.h"
|
|
|
|
// CHECK-NEXT: File: "{{.*}}{{[/\\]}}Inputs/Level2B.h"
|
|
|
|
// CHECK-NEXT: SearchPath: "{{.*}}{{[/\\]}}Inputs"
|
|
|
|
// CHECK-NEXT: RelativePath: "Level2B.h"
|
|
|
|
// CHECK-NEXT: Imported: (null)
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}Inputs/Level2B.h:1:1"
|
|
|
|
// CHECK-NEXT: Reason: EnterFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
|
|
|
// CHECK-NEXT: PrevFID: (invalid)
|
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
|
|
|
// CHECK-NEXT: MacroNameTok: MACRO_2B
|
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}Inputs/Level1B.h:2:1"
|
|
|
|
// CHECK-NEXT: Reason: ExitFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
|
|
|
// CHECK-NEXT: PrevFID: "{{.*}}{{[/\\]}}Inputs/Level2B.h"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: - Callback: MacroDefined
|
|
|
|
// CHECK-NEXT: MacroNameTok: MACRO_1B
|
|
|
|
// CHECK-NEXT: MacroDirective: MD_Define
|
|
|
|
// CHECK-NEXT: - Callback: FileChanged
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-include.cpp:5:1"
|
|
|
|
// CHECK-NEXT: Reason: ExitFile
|
|
|
|
// CHECK-NEXT: FileType: C_User
|
2013-11-01 05:29:44 +08:00
|
|
|
// CHECK-NEXT: PrevFID: "{{.*}}{{[/\\]}}Inputs/Level1B.h"
|
2013-10-31 20:23:32 +08:00
|
|
|
// CHECK-NEXT: - Callback: EndOfMainFile
|
|
|
|
// CHECK-NEXT: ...
|