mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Typo fixes
This commit is contained in:
@@ -65,7 +65,7 @@ CodeCompletionCommandKind getCommandKind(StringRef Command) {
|
|||||||
return CodeCompletionCommandKind::none;
|
return CodeCompletionCommandKind::none;
|
||||||
}
|
}
|
||||||
|
|
||||||
StringRef getCommnadName(CodeCompletionCommandKind Kind) {
|
StringRef getCommandName(CodeCompletionCommandKind Kind) {
|
||||||
#define CHECK_CASE(KIND) \
|
#define CHECK_CASE(KIND) \
|
||||||
if (CodeCompletionCommandKind::KIND == Kind) { \
|
if (CodeCompletionCommandKind::KIND == Kind) { \
|
||||||
static std::string Name(#KIND); \
|
static std::string Name(#KIND); \
|
||||||
@@ -179,7 +179,7 @@ public:
|
|||||||
auto Text = TC->getText();
|
auto Text = TC->getText();
|
||||||
std::vector<StringRef> Subs;
|
std::vector<StringRef> Subs;
|
||||||
splitTextByComma(Text, Subs);
|
splitTextByComma(Text, Subs);
|
||||||
auto Kind = getCommnadName(CommandKind);
|
auto Kind = getCommandName(CommandKind);
|
||||||
for (auto S : Subs)
|
for (auto S : Subs)
|
||||||
Words.push_back(std::make_pair(Kind, S));
|
Words.push_back(std::make_pair(Kind, S));
|
||||||
} else
|
} else
|
||||||
@@ -223,7 +223,7 @@ public:
|
|||||||
void visitText(const Text *Text) override {
|
void visitText(const Text *Text) override {
|
||||||
if (Kind == CodeCompletionCommandKind::none)
|
if (Kind == CodeCompletionCommandKind::none)
|
||||||
return;
|
return;
|
||||||
StringRef CommandName = getCommnadName(Kind);
|
StringRef CommandName = getCommandName(Kind);
|
||||||
std::vector<StringRef> Subs;
|
std::vector<StringRef> Subs;
|
||||||
splitTextByComma(Text->str(), Subs);
|
splitTextByComma(Text->str(), Subs);
|
||||||
for (auto S : Subs)
|
for (auto S : Subs)
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ void SILSuccessor::operator=(SILBasicBlock *BB) {
|
|||||||
SuccessorBlock = BB;
|
SuccessorBlock = BB;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Derferencing the SuccIterator returns the predecessors SILBasicBlock.
|
// Dereferencing the SuccIterator returns the predecessor's SILBasicBlock.
|
||||||
SILBasicBlock *SILSuccessorIterator::operator*() {
|
SILBasicBlock *SILSuccessorIterator::operator*() {
|
||||||
assert(Cur && "Can't deference end (or default constructed) iterator");
|
assert(Cur && "Can't deference end (or default constructed) iterator");
|
||||||
return Cur->ContainingInst->getParent();
|
return Cur->ContainingInst->getParent();
|
||||||
|
|||||||
Reference in New Issue
Block a user