Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/clang
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2022-10-06 19:11:51 +0300
committerBen Langmuir <blangmuir@apple.com>2022-10-06 20:09:22 +0300
commit8d9a3a6b9bd10f294d0e5adb0972a1ed8845e4aa (patch)
tree32f5e14668978bd03dcb5e54d10fa9a5f2119d7f /clang
parentc5e1ddb6fddef6f0d0ffc9acc9b0a2f3534b303f (diff)
[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 5ea78c4113f8 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
Diffstat (limited to 'clang')
-rw-r--r--clang/test/Driver/Inputs/header0.h1
-rw-r--r--clang/test/Driver/Inputs/header1.h1
-rw-r--r--clang/test/Driver/Inputs/header2.h1
-rw-r--r--clang/test/Driver/Inputs/header3.h1
-rw-r--r--clang/test/Driver/Inputs/header4.h1
5 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Driver/Inputs/header0.h b/clang/test/Driver/Inputs/header0.h
index e69de29bb2d1..8de9e9058b96 100644
--- a/clang/test/Driver/Inputs/header0.h
+++ b/clang/test/Driver/Inputs/header0.h
@@ -0,0 +1 @@
+// header0.h
diff --git a/clang/test/Driver/Inputs/header1.h b/clang/test/Driver/Inputs/header1.h
index e69de29bb2d1..586f24a26b2e 100644
--- a/clang/test/Driver/Inputs/header1.h
+++ b/clang/test/Driver/Inputs/header1.h
@@ -0,0 +1 @@
+// header1.h
diff --git a/clang/test/Driver/Inputs/header2.h b/clang/test/Driver/Inputs/header2.h
index 243468d879c7..e1c05acfa651 100644
--- a/clang/test/Driver/Inputs/header2.h
+++ b/clang/test/Driver/Inputs/header2.h
@@ -1 +1,2 @@
+// header2.h
#include "header1.h"
diff --git a/clang/test/Driver/Inputs/header3.h b/clang/test/Driver/Inputs/header3.h
index e69de29bb2d1..c71a93945aa0 100644
--- a/clang/test/Driver/Inputs/header3.h
+++ b/clang/test/Driver/Inputs/header3.h
@@ -0,0 +1 @@
+// header3.h
diff --git a/clang/test/Driver/Inputs/header4.h b/clang/test/Driver/Inputs/header4.h
index e69de29bb2d1..236f5267cfa8 100644
--- a/clang/test/Driver/Inputs/header4.h
+++ b/clang/test/Driver/Inputs/header4.h
@@ -0,0 +1 @@
+// header4.h