1. Add missing explicit for SymbolName constructor.
2. Add missing std::move in createRenameReplacements.
Differential revision: https://reviews.llvm.org/D36715
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310948
91177308-0d34-0410-b5e6-
96231b3b80d8
/// \endcode
class SymbolName {
public:
- SymbolName(StringRef Name) {
+ explicit SymbolName(StringRef Name) {
// While empty symbol names are valid (Objective-C selectors can have empty
// name pieces), occurrences Objective-C selectors are created using an
// array of strings instead of just one string.
}
Changes.push_back(std::move(Change));
}
- return Changes;
+ return std::move(Changes);
}
/// Takes each atomic change and inserts its replacements into the set of