Skip to content

Commit a760b70

Browse files
committed
Fixup recent formatting boo boos I've committed
I always think I'll remember to clang-format before pushing, but I don't always follow through.
1 parent 4b40dd6 commit a760b70

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

lib/IDE/ReconstructType.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,8 @@ VisitNode(ASTContext *ast, std::vector<Demangle::NodePointer> &nodes,
23752375
nodes.pop_back();
23762376
}
23772377

2378-
Decl *ide::getDeclFromUSR(ASTContext &context, StringRef USR, std::string &error) {
2378+
Decl *ide::getDeclFromUSR(ASTContext &context, StringRef USR,
2379+
std::string &error) {
23792380
if (!USR.startswith("s:")) {
23802381
error = "not a Swift USR";
23812382
return nullptr;

tools/SourceKit/lib/SwiftLang/CodeCompletionOrganizer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ struct Item {
3737
std::string name;
3838
std::string description;
3939
uint8_t kind : 2;
40-
uint8_t isExactMatch: 1;
40+
uint8_t isExactMatch : 1;
4141
double matchScore = 0.0; ///< The quality of the filter matching.
4242
double finalScore = -1.0; ///< The final score including match and context.
4343
ItemKind getKind() const { return static_cast<ItemKind>(kind); }
44-
Item(ItemKind k = ItemKind::None) : kind(static_cast<decltype(kind)>(k)), isExactMatch(0) {}
44+
Item(ItemKind k = ItemKind::None)
45+
: kind(static_cast<decltype(kind)>(k)), isExactMatch(0) {}
4546
virtual ~Item() {}
4647
};
4748
struct Result : public Item {

tools/SourceKit/lib/SwiftLang/SwiftLangSupport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ UIdent UIdentVisitor::visitFuncDecl(const FuncDecl *D) {
197197
IsRef);
198198
}
199199

200-
if (auto *Op = D->getOperatorDecl()) {
200+
if (auto *Op = D->getOperatorDecl()) {
201201
switch (Op->getKind()) {
202202
case DeclKind::PrefixOperator:
203203
return IsRef ? KindRefFunctionPrefixOperator : KindDeclFunctionPrefixOperator;

0 commit comments

Comments
 (0)