mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
swift-api-digester: simplify some Twine API calls. NFC (#8604)
This commit is contained in:
@@ -1673,10 +1673,10 @@ class RemovedAddedNodeMatcher : public NodeMatcher, public MatchedNodeListener {
|
||||
auto LastPartOfA = getLastPartOfUsr(VC);
|
||||
if (LastPartOfA && LastPartOfR.getValue() == LastPartOfA.getValue()) {
|
||||
R->annotate(NodeAnnotation::ModernizeEnum);
|
||||
llvm::Twine FullName = llvm::Twine().concat(A->getName()).concat(".").
|
||||
concat(Child->getName());
|
||||
std::string FullName = (llvm::Twine(A->getName()) + "." +
|
||||
Child->getName()).str();
|
||||
R->addAnnotateComment(NodeAnnotation::ModernizeEnum,
|
||||
R->getSDKContext().buffer(FullName.str()));
|
||||
R->getSDKContext().buffer(FullName));
|
||||
foundMatch(R, A);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user