@@ -34,7 +34,8 @@ enum : int {
34
34
// / Returns a non-NULL pointer to a NUL-terminated C style string
35
35
// / that should be explicitly freed, if successful. Otherwise, may return
36
36
// / nullptr if mangled_name is not a valid mangling or is nullptr.
37
- DEMANGLE_ABI char *itaniumDemangle (std::string_view mangled_name, bool ParseParams = true );
37
+ DEMANGLE_ABI char *itaniumDemangle (std::string_view mangled_name,
38
+ bool ParseParams = true );
38
39
39
40
enum MSDemangleFlags {
40
41
MSDF_None = 0 ,
@@ -53,8 +54,9 @@ enum MSDemangleFlags {
53
54
// / bytes of the input string were consumed.
54
55
// / status receives one of the demangle_ enum entries above if it's not nullptr.
55
56
// / Flags controls various details of the demangled representation.
56
- DEMANGLE_ABI char *microsoftDemangle (std::string_view mangled_name, size_t *n_read,
57
- int *status, MSDemangleFlags Flags = MSDF_None);
57
+ DEMANGLE_ABI char *microsoftDemangle (std::string_view mangled_name,
58
+ size_t *n_read, int *status,
59
+ MSDemangleFlags Flags = MSDF_None);
58
60
59
61
DEMANGLE_ABI std::optional<size_t >
60
62
getArm64ECInsertionPointInMangledName (std::string_view MangledName);
@@ -72,9 +74,10 @@ DEMANGLE_ABI char *dlangDemangle(std::string_view MangledName);
72
74
// / demangling occurred.
73
75
DEMANGLE_ABI std::string demangle (std::string_view MangledName);
74
76
75
- DEMANGLE_ABI bool nonMicrosoftDemangle (std::string_view MangledName, std::string &Result,
76
- bool CanHaveLeadingDot = true ,
77
- bool ParseParams = true );
77
+ DEMANGLE_ABI bool nonMicrosoftDemangle (std::string_view MangledName,
78
+ std::string &Result,
79
+ bool CanHaveLeadingDot = true ,
80
+ bool ParseParams = true );
78
81
79
82
// / "Partial" demangler. This supports demangling a string into an AST
80
83
// / (typically an intermediate stage in itaniumDemangle) and querying certain
@@ -83,7 +86,8 @@ struct ItaniumPartialDemangler {
83
86
DEMANGLE_ABI ItaniumPartialDemangler ();
84
87
85
88
DEMANGLE_ABI ItaniumPartialDemangler (ItaniumPartialDemangler &&Other);
86
- DEMANGLE_ABI ItaniumPartialDemangler &operator =(ItaniumPartialDemangler &&Other);
89
+ DEMANGLE_ABI ItaniumPartialDemangler &
90
+ operator =(ItaniumPartialDemangler &&Other);
87
91
88
92
// / Demangle into an AST. Subsequent calls to the rest of the member functions
89
93
// / implicitly operate on the AST this produces.
0 commit comments