[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 5ea78c4113 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
This commit is contained in:
Ben Langmuir 2022-10-06 09:11:51 -07:00
parent c5e1ddb6fd
commit 8d9a3a6b9b
5 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
// header0.h

View File

@ -0,0 +1 @@
// header1.h

View File

@ -1 +1,2 @@
// header2.h
#include "header1.h"

View File

@ -0,0 +1 @@
// header3.h

View File

@ -0,0 +1 @@
// header4.h