Skip to content

Commit ca68632

Browse files
committed
Add the private lookup flag to the name of the cache
1 parent 2ac6cda commit ca68632

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/IDE/CodeCompletionCache.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ static void writeCachedModule(llvm::raw_ostream &out,
312312
OSS << p << "\0";
313313
OSSLE.write(K.ResultsHaveLeadingDot);
314314
OSSLE.write(K.ForTestableLookup);
315+
OSSLE.write(K.ForPrivateImportLookup);
315316
OSSLE.write(K.CodeCompleteInitsInPostfixExpr);
316317
LE.write(static_cast<uint32_t>(OSS.tell())); // Size of debug info
317318
out.write(OSS.str().data(), OSS.str().size()); // Debug info blob
@@ -423,6 +424,8 @@ static std::string getName(StringRef cacheDirectory,
423424
// name[-dot][-testable][-inits]
424425
OSS << (K.ResultsHaveLeadingDot ? "-dot" : "")
425426
<< (K.ForTestableLookup ? "-testable" : "")
427+
<< (K.ForPrivateLookup ? "-private" : "")
428+
<< (K.CodeCompleteInitsInPostfixExpr ? "-inits" : "");
426429
<< (K.CodeCompleteInitsInPostfixExpr ? "-inits" : "");
427430

428431
// name[-access-path-components]

0 commit comments

Comments
 (0)