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.
Manually merged master:ada1e2ffa117 into amd-gfx:4baa63b509c7
Local branch amd-gfx 4baa63b Merged master:8e712807e484 into amd-gfx:3bd64024f646 Remote branch master ada1e2f [lldb/examples] Add missing declaration in heap.py
- Loading branch information
Showing
47 changed files
with
1,651 additions
and
442 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// RUN: %clang_cc1 -ast-dump %s | FileCheck %s | ||
|
||
typedef int T1 __attribute__((__swift_newtype__(struct))); | ||
typedef int T2 __attribute__((__swift_newtype__(enum))); | ||
|
||
typedef int T3 __attribute__((__swift_wrapper__(struct))); | ||
typedef int T4 __attribute__((__swift_wrapper__(enum))); | ||
|
||
typedef int T5; | ||
typedef int T5 __attribute__((__swift_wrapper__(struct))); | ||
typedef int T5; | ||
// CHECK-LABEL: TypedefDecl {{.+}} T5 'int' | ||
// CHECK-NEXT: BuiltinType {{.+}} 'int' | ||
// CHECK-NEXT: TypedefDecl {{.+}} T5 'int' | ||
// CHECK-NEXT: BuiltinType {{.+}} 'int' | ||
// CHECK-NEXT: SwiftNewTypeAttr {{.+}} NK_Struct | ||
// CHECK-NEXT: TypedefDecl {{.+}} T5 'int' | ||
// CHECK-NEXT: BuiltinType {{.+}} 'int' | ||
// CHECK-NEXT: SwiftNewTypeAttr {{.+}} NK_Struct |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// RUN: %clang_cc1 -fsyntax-only -verify %s | ||
|
||
typedef int Bad1 __attribute__((swift_newtype(invalid))); | ||
// expected-warning@-1 {{'swift_newtype' attribute argument not supported: 'invalid'}} | ||
typedef int Bad2 __attribute__((swift_newtype())); | ||
// expected-error@-1 {{argument required after attribute}} | ||
typedef int Bad3 __attribute__((swift_newtype(invalid, ignored))); | ||
// expected-error@-1 {{expected ')'}} | ||
// expected-note@-2 {{to match this '('}} | ||
// expected-warning@-3 {{'swift_newtype' attribute argument not supported: 'invalid'}} | ||
|
||
struct __attribute__((__swift_newtype__(struct))) Bad4 {}; | ||
// expected-error@-1 {{'__swift_newtype__' attribute only applies to typedefs}} |
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
Oops, something went wrong.