-
Notifications
You must be signed in to change notification settings - Fork 2
/
goodname.cfg
105 lines (88 loc) · 2.74 KB
/
goodname.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
SUBSTRULES = {
R0001 :
{
ptn : "std::(?: __[0-9]|__ndk[0-9]|__cxx\\d+ )::",
rpl : "std::"
},
// MFC/ATL strings
// kudos to vient https://gist.github.com/vient/39a705002edaa0ecb9d9463ca4a83874
R9000 : { ptn : "CStringT<char,\\s*StrTraitMFC(_DLL)?<char,\\s*(ATL::)?ChTraits(CRT|OS)<char>>>", rpl : "CStringA" },
R9001 : { ptn : "CStringT<wchar_t,\\s*StrTraitMFC(_DLL)?<wchar_t,\\s*(ATL::)?ChTraits(CRT|OS)<wchar_t>>>", rpl : "CStringW" },
R9002 : { ptn : "CStringT<char,\\s*StrTraitATL(_DLL)?<char,\\s*(ATL::)?ChTraits(CRT|OS)<char>>>", rpl : "CAtlStringA" },
R9003 : { ptn : "CStringT<wchar_t,\\s*StrTraitATL(_DLL)?<wchar_t,\\s*(ATL::)?ChTraits(CRT|OS)<wchar_t>>>", rpl : "CAtlStringW" },
R9010 :
{
ptn : "std::unique_ptr<(?<T> (?&T1) ),std::default_delete<(?&T)>_>",
rpl : "std::unique_ptr<$T>"
},
R9011 :
{
ptn : "std::_MakeUniq<(?<T> (?&T1) )>::__single_object",
rpl : "std::unique_ptr<$T>"
},
R9012 :
{
ptn : "std::__uniq_ptr_impl<(?<T> (?&T1) ),std::default_delete<(?&T)>_>",
rpl : "std::__uniq_ptr_impl<$T>"
},
R9013 :
{
ptn : "std::__shared_count<\\(__gnu_cxx::_Lock_policy\\)2>",
rpl : "std::__shared_count"
},
R9014 :
{
ptn : "std::_Sp_counted_base<\\(__gnu_cxx::_Lock_policy\\)2>",
rpl : "std::_Sp_counted_base"
},
R9015 :
{
ptn : "std::__shared_ptr<(?<T> (?&T1) ),\\(__gnu_cxx::_Lock_policy\\)2>",
rpl : "std::__shared_ptr<$T>"
},
R9016 :
{
ptn : "std::__shared_ptr<(?<T> (?&T1) )>::element_type",
rpl : "$T"
},
R9017 :
{
ptn : "std::__shared_count::__shared_count<(?<T> (?&T1) ),std::default_delete<(?&T)>>",
rpl : "std::__shared_count::__shared_count<$T>"
},
R9018 :
{
ptn : "std::_Sp_counted_deleter<(?<T> (?&T1) )\\ \\*,std::default_delete<(?&T)>,std::allocator<void>,\\(__gnu_cxx::_Lock_policy\\)2>",
rpl : "std::_Sp_counted_deleter<$T>"
},
R9019 :
{
ptn : "std::_Sp_counted_deleter<(?<T> (?&T1) )_,std::default_delete<(?&T)_>,std::allocator<void>,\\(__gnu_cxx::_Lock_policy\\)2>",
rpl : "std::_Sp_counted_deleter<$T>"
},
R9020 :
{
ptn : "std::_Sp_counted_ptr_inplace<(?<T> (?&T1) ),std::allocator<(?&T)>,\\(__gnu_cxx::_Lock_policy\\)2>",
rpl : "std::_Sp_counted_ptr_inplace<$T>"
},
R9100 :
{
ptn : "std::filesystem::__cxx11::",
rpl : "std::filesystem::"
},
R9101 :
{
ptn : "std::vector<(?<T> (?&T1) ),std::allocator<(?&T)_>_>",
rpl : "std::vector<$T>"
},
R9102 :
{
ptn : "std::basic_string<char,std::char_traits<char>,std::allocator<char>_>",
rpl : "std::string"
},
R9103 :
{
ptn : "std::map<(?<TKey> (?&T1) ),(?<TValue> (?&T1) ),std::less<void>,std::allocator<std::pair<const_(?&TKey),(?&TValue)_>_>_>",
rpl : "std::map<$TKey,$TValue>"
}
}