Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang][IFS] Adding support for new clang interface stubs decl types.
NamespaceAliasDecl UnresolvedUsingTypenameDecl CXXDeductionGuideDecl ConstructorUsingShadowDecl Differential Revision: https://reviews.llvm.org/D70728
- Loading branch information
Showing
5 changed files
with
52 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// RUN: %clang_cc1 -o - -emit-interface-stubs %s | FileCheck %s | ||
|
||
// CHECK: --- !experimental-ifs-v1 | ||
// CHECK-NEXT: IfsVersion: 1.0 | ||
// CHECK-NEXT: Triple: | ||
// CHECK-NEXT: ObjectFileFormat: ELF | ||
// CHECK-NEXT: Symbols: | ||
// CHECK-NEXT: ... | ||
|
||
// ConstructorUsingShadowDecl | ||
struct Base { Base(int); }; | ||
struct Derived : public Base { using Base::Base; }; |
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,12 @@ | ||
// RUN: %clang_cc1 -o - -emit-interface-stubs -std=c++17 %s | FileCheck %s | ||
|
||
// CHECK: --- !experimental-ifs-v1 | ||
// CHECK-NEXT: IfsVersion: 1.0 | ||
// CHECK-NEXT: Triple: | ||
// CHECK-NEXT: ObjectFileFormat: ELF | ||
// CHECK-NEXT: Symbols: | ||
// CHECK-NEXT: ... | ||
|
||
// CXXDeductionGuideDecl | ||
template<typename T> struct A { A(); A(T); }; | ||
A() -> A<int>; |
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,12 @@ | ||
// RUN: %clang_cc1 -o - -emit-interface-stubs %s | FileCheck %s | ||
|
||
// CHECK: --- !experimental-ifs-v1 | ||
// CHECK-NEXT: IfsVersion: 1.0 | ||
// CHECK-NEXT: Triple: | ||
// CHECK-NEXT: ObjectFileFormat: ELF | ||
// CHECK-NEXT: Symbols: | ||
// CHECK-NEXT: ... | ||
|
||
// NamespaceAliasDecl | ||
namespace NS { } | ||
namespace B = NS; |
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,12 @@ | ||
// RUN: %clang_cc1 -o - -emit-interface-stubs %s | FileCheck %s | ||
|
||
// CHECK: --- !experimental-ifs-v1 | ||
// CHECK-NEXT: IfsVersion: 1.0 | ||
// CHECK-NEXT: Triple: | ||
// CHECK-NEXT: ObjectFileFormat: ELF | ||
// CHECK-NEXT: Symbols: | ||
// CHECK-NEXT: ... | ||
|
||
// UnresolvedUsingTypenameDecl | ||
template<typename T> class C1 { using ReprType = unsigned; }; | ||
template<typename T> class C2 : public C1<T> { using typename C1<T>::Repr; }; |