MCPcopy Create free account
hub / github.com/beefytech/Beef / ClearBuildCache

Method ClearBuildCache

IDEHelper/Compiler/BfCodeGen.cpp:726–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726void BfCodeGen::ClearBuildCache()
727{
728 AutoCrit autoCrit(mCacheCritSect);
729 for (auto& dirCachePair : mDirectoryCache)
730 {
731 auto dirData = dirCachePair.mValue;
732 dirData->Clear();
733 }
734 // This just disables reading the cache file, but it does not disable creating
735 // the cache structes in memory and writing them out, thus it's valid to leave
736 // this 'true' forever
737 mDisableCacheReads = true;
738
739#ifdef BF_USE_CODEGEN_RELEASE_THUNK
740 BindReleaseThunks();
741 if (mClearCacheFunc != NULL)
742 mClearCacheFunc();
743#endif
744}
745
746void BfCodeGen::DoWriteObjectFile(BfCodeGenRequest* codeGenRequest, const void* ptr, int size, const StringImpl& outFileName, BfCodeGenResult* externResultPtr)
747{

Callers 1

BfCodeGen_ClearCacheFunction · 0.45

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected