Skip to content

Commit 8d9a3a6

Browse files
committed
[clang][test] Make headers unique to avoid linking issues
Make the empty headers used by cl-pch-showincludes.cpp unique so that filesystems that link these files together by contents will not see different behaviour in this test, which is not testing linked files specifically. This was uncovered by 5ea78c4 which made us stop mutating the name of the presumed loc for the file in ContentCache, but that just surfaced an underlying issue that the filename of multiple includes of linked files are not separately tracked. Differential Revision: https://reviews.llvm.org/D135373
1 parent c5e1ddb commit 8d9a3a6

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

clang/test/Driver/Inputs/header0.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// header0.h

clang/test/Driver/Inputs/header1.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// header1.h

clang/test/Driver/Inputs/header2.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
// header2.h
12
#include "header1.h"

clang/test/Driver/Inputs/header3.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// header3.h

clang/test/Driver/Inputs/header4.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// header4.h

0 commit comments

Comments
 (0)