File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/SourceKit/lib/SwiftLang Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2335,7 +2335,7 @@ static void resolveCursorFromUSR(
23352335
23362336 class CursorInfoConsumer : public SwiftASTConsumer {
23372337 std::string InputFile;
2338- StringRef USR;
2338+ std::string USR;
23392339 SwiftLangSupport ⟪
23402340 SwiftInvocationRef ASTInvok;
23412341 const bool TryExistingAST;
@@ -2376,7 +2376,7 @@ static void resolveCursorFromUSR(
23762376 void handlePrimaryAST (ASTUnitRef AstUnit) override {
23772377 auto &CompIns = AstUnit->getCompilerInstance ();
23782378
2379- if (USR.starts_with (" c:" )) {
2379+ if (StringRef ( USR) .starts_with (" c:" )) {
23802380 LOG_WARN_FUNC (" lookup for C/C++/ObjC USRs not implemented" );
23812381 CursorInfoData Info;
23822382 Info.InternalDiagnostic = " Lookup for C/C++/ObjC USRs not implemented." ;
You can’t perform that action at this time.
0 commit comments