swift-api-digester: simplify some Twine API calls. NFC (#8604)

This commit is contained in:
Xi Ge
2017-04-06 17:00:52 -07:00
committed by GitHub
parent d1c5de1cea
commit 6a44e67b8c

View File

@@ -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;
}