forked from GPUOpen-Drivers/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged master:8f1651ccead into amd-gfx:7fbfb2b069f
Local branch amd-gfx 7fbfb2b Merged master:e951a489962 into amd-gfx:e67cd8b6bf1 Remote branch master 8f1651c [ARM,MVE] Add missing tests for vqdmlash intrinsics.
- Loading branch information
Showing
7 changed files
with
236 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
clang-tools-extra/test/clang-apply-replacements/Inputs/identical-in-TU/file1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
MainSourceFile: identical_in_TU.cpp | ||
Diagnostics: | ||
- DiagnosticName: test-identical-insertion | ||
DiagnosticMessage: | ||
Message: Fix | ||
FilePath: $(path)/identical_in_TU.cpp | ||
FileOffset: 12 | ||
Replacements: | ||
- FilePath: $(path)/identical_in_TU.cpp | ||
Offset: 12 | ||
Length: 0 | ||
ReplacementText: '0' | ||
- FilePath: $(path)/identical_in_TU.cpp | ||
Offset: 12 | ||
Length: 0 | ||
ReplacementText: '0' | ||
... | ||
|
19 changes: 19 additions & 0 deletions
19
clang-tools-extra/test/clang-apply-replacements/Inputs/identical-in-TU/file2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
MainSourceFile: identical-in-TU.cpp | ||
Diagnostics: | ||
- DiagnosticName: test-identical-insertion | ||
DiagnosticMessage: | ||
Message: Fix | ||
FilePath: $(path)/identical-in-TU.cpp | ||
FileOffset: 12 | ||
Replacements: | ||
- FilePath: $(path)/identical-in-TU.cpp | ||
Offset: 12 | ||
Length: 0 | ||
ReplacementText: '0' | ||
- FilePath: $(path)/identical-in-TU.cpp | ||
Offset: 12 | ||
Length: 0 | ||
ReplacementText: '0' | ||
... | ||
|
2 changes: 2 additions & 0 deletions
2
clang-tools-extra/test/clang-apply-replacements/Inputs/identical-in-TU/identical-in-TU.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class MyType {}; | ||
// CHECK: class MyType00 {}; |
11 changes: 11 additions & 0 deletions
11
clang-tools-extra/test/clang-apply-replacements/identical-in-TU.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// RUN: mkdir -p %T/Inputs/identical-in-TU | ||
|
||
// RUN: grep -Ev "// *[A-Z-]+:" %S/Inputs/identical-in-TU/identical-in-TU.cpp > %T/Inputs/identical-in-TU/identical-in-TU.cpp | ||
// RUN: sed "s#\$(path)#%/T/Inputs/identical-in-TU#" %S/Inputs/identical-in-TU/file1.yaml > %T/Inputs/identical-in-TU/file1.yaml | ||
// RUN: sed "s#\$(path)#%/T/Inputs/identical-in-TU#" %S/Inputs/identical-in-TU/file2.yaml > %T/Inputs/identical-in-TU/file2.yaml | ||
// RUN: clang-apply-replacements %T/Inputs/identical-in-TU | ||
// RUN: FileCheck -input-file=%T/Inputs/identical-in-TU/identical-in-TU.cpp %S/Inputs/identical-in-TU/identical-in-TU.cpp | ||
|
||
// Similar to identical test but each yaml file contains the same fix twice. | ||
// This check ensures that only the duplicated replacements in a single yaml | ||
// file are applied twice. Addresses PR45150. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters