Skip to content

Commit 3a20b6d

Browse files
demangle: go fmt
1 parent 556ae92 commit 3a20b6d

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

ast.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2518,7 +2518,7 @@ func (so *Subobject) Copy(fn func(AST) AST, skip func(AST) bool) AST {
25182518
if subExpr == nil {
25192519
subExpr = so.SubExpr
25202520
}
2521-
so = &Subobject {
2521+
so = &Subobject{
25222522
Type: typ,
25232523
SubExpr: subExpr,
25242524
Offset: so.Offset,

c++filt.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build ignore
56
// +build ignore
67

78
// This is a program that works like the GNU c++filt program.

cases_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30176,11 +30176,11 @@ var casesExpectedFailures = map[string]bool{
3017630176
"_ZN1XIZ1fIiEvOT_EUlOT_DpT0_E_EclIJEEEvDpT_": true,
3017730177
"_ZN1XIZ1fIiEvOT_EUlS2_DpT0_E_EclIJEEEvDpT_": true,
3017830178
"_ZZZZN6abcdef9abcdefghi29abcdefabcdefabcdefabcefabcdef27xxxxxxxxxxxxxxxxxxxxxxxxxxxEN4absl8DurationERKNSt3__u12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEPNS1_19yyyyyyyyyyyyyyyyyyyEENK3$_5clEvENKUlvE_clEvE6zzzzzz": true,
30179-
"_Z1fIXtl1BadsoiL_Z6nestedE_EEEEvv": true,
30180-
"_Z1fIXtl1BcvPiplcvPcadL_Z7derivedELl16EEEEvv": true,
30181-
"_Z1fIXtl1Edi1nLi42EEEEvv": true,
30182-
"_Z1h1XIJZ1fIiEDaOT_E1AZ1gIdEDaS2_E1BEE": true,
30183-
"_ZN1A1gIiEEDTcldtptfpT1b1fIT_EEEv": true,
30179+
"_Z1fIXtl1BadsoiL_Z6nestedE_EEEEvv": true,
30180+
"_Z1fIXtl1BcvPiplcvPcadL_Z7derivedELl16EEEEvv": true,
30181+
"_Z1fIXtl1Edi1nLi42EEEEvv": true,
30182+
"_Z1h1XIJZ1fIiEDaOT_E1AZ1gIdEDaS2_E1BEE": true,
30183+
"_ZN1A1gIiEEDTcldtptfpT1b1fIT_EEEv": true,
3018430184
}
3018530185

3018630186
// caseExceptions is a list of exceptions from the LLVM list that we
@@ -30191,7 +30191,7 @@ var casesExpectedFailures = map[string]bool{
3019130191
// intentionally should not demangle this case. Otherwise this maps
3019230192
// to the expected demangling.
3019330193
var casesExceptions = map[string]string{
30194-
"_Z1fIXtl1DmcM7DerivedKiadL_ZN11MoreDerived1zEEn8EEEEvv" : "void f<D{(int const Derived::*)(&MoreDerived::z)}>()",
30194+
"_Z1fIXtl1DmcM7DerivedKiadL_ZN11MoreDerived1zEEn8EEEEvv": "void f<D{(int const Derived::*)(&MoreDerived::z)}>()",
3019530195
}
3019630196

3019730197
func TestCases(t *testing.T) {

0 commit comments

Comments
 (0)