Skip to content

Commit ee1e170

Browse files
committed
safenames are safe
1 parent 431b204 commit ee1e170

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

source/lib/_adoc/SafeNames.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class SafeNames::
8484
OverloadedOperatorKind>();
8585
if(OOK == OverloadedOperatorKind::OO_None)
8686
return I.Name;
87-
temp_ = '@';
87+
temp_ = '0';
8888
temp_.append(getSafeOperatorName(OOK));
8989
return temp_;
9090
}
@@ -118,9 +118,9 @@ class SafeNames::
118118
{
119119
std::string s;
120120
s.assign(prefix_);
121+
s.append(std::to_string(i + 1));
122+
//s.push_back('@');
121123
s.append(getSafe(**it0));
122-
s.push_back('@');
123-
s.append(std::to_string(i));
124124
map.try_emplace(
125125
llvm::toStringRef(it0[i]->id),
126126
std::move(s));

source/lib/_adoc/SafeNames.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ class SafeNames
3434

3535
llvm::StringRef
3636
get(SymbolID const& id) const noexcept;
37+
38+
llvm::StringRef
39+
getOverload(
40+
SymbolID const& id);
3741
};
3842

3943
} // adoc

0 commit comments

Comments
 (0)