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(
2335
2335
2336
2336
class CursorInfoConsumer : public SwiftASTConsumer {
2337
2337
std::string InputFile;
2338
- StringRef USR;
2338
+ std::string USR;
2339
2339
SwiftLangSupport ⟪
2340
2340
SwiftInvocationRef ASTInvok;
2341
2341
const bool TryExistingAST;
@@ -2376,7 +2376,7 @@ static void resolveCursorFromUSR(
2376
2376
void handlePrimaryAST (ASTUnitRef AstUnit) override {
2377
2377
auto &CompIns = AstUnit->getCompilerInstance ();
2378
2378
2379
- if (USR.starts_with (" c:" )) {
2379
+ if (StringRef ( USR) .starts_with (" c:" )) {
2380
2380
LOG_WARN_FUNC (" lookup for C/C++/ObjC USRs not implemented" );
2381
2381
CursorInfoData Info;
2382
2382
Info.InternalDiagnostic = " Lookup for C/C++/ObjC USRs not implemented." ;
You can’t perform that action at this time.
0 commit comments