File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
roottest/root/meta/naming Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1
1
#include < stdio.h>
2
2
#include < TClassEdit.h>
3
+ #include < TClass.h>
4
+ #include < cstdint>
3
5
4
6
// See also roottest/meta/naming/execCheckNaming.C
5
7
12
14
13
15
namespace A1 { namespace B2 { namespace C3 { typedef int what; } } }
14
16
namespace NS { typedef int IntNS_t; }
17
+ namespace SG { typedef std::uint32_t sgkey_t ; }
18
+ namespace RT {
19
+ namespace EX {
20
+ struct ClusterSize {
21
+ using ValueType = std::uint64_t ;
22
+ ValueType fValue ;
23
+ };
24
+ using ClusterSize_t = ClusterSize;
25
+ }
26
+ }
27
+
28
+ struct PackedParameters {
29
+ SG::sgkey_t m_sgkey;
30
+ };
15
31
16
32
class Object
17
33
{
@@ -207,5 +223,9 @@ int execResolveTypedef()
207
223
testing (" ::int" ,TClassEdit::ResolveTypedef (" ::Int_t" ));
208
224
// Add an example like pair<...::type_t,int>
209
225
226
+ testing (" unsigned int" , TClassEdit::ResolveTypedef (" SG::sgkey_t" ));
227
+ testing (" unsigned int" , TClass::GetClass (" PackedParameters" )->GetDataMember (" m_sgkey" )->GetTrueTypeName ());
228
+ testing (" SG::sgkey_t" , TClass::GetClass (" PackedParameters" )->GetDataMember (" m_sgkey" )->GetFullTypeName ());
229
+ testing (" RT::EX::ClusterSize" , TClassEdit::ResolveTypedef (" RT::EX::ClusterSize_t" ));
210
230
return 0 ;
211
231
}
Original file line number Diff line number Diff line change @@ -84,4 +84,8 @@ Test 80 The result is correct: ::int
84
84
Test 81 The result is correct: ::Unknown
85
85
Test 82 The result is correct: ::SomeTypedefName_tSF
86
86
Test 83 The result is correct: ::int
87
+ Test 84 The result is correct: unsigned int
88
+ Test 85 The result is correct: unsigned int
89
+ Test 86 The result is correct: SG::sgkey_t
90
+ Test 87 The result is correct: RT::EX::ClusterSize
87
91
(int) 0
You can’t perform that action at this time.
0 commit comments