MCPcopy Create free account
hub / github.com/carbonengine/trinity / CheckHash

Function CheckHash

shadercompiler/ModifiedTime.cpp:94–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94bool CheckHash( const HashCheckArguments& query )
95{
96 {
97 std::lock_guard scope( s_modifiedOutputsCS );
98 if( s_modifiedOutputs.find( query.outputPath ) != s_modifiedOutputs.end() )
99 {
100 return true;
101 }
102 }
103
104 auto in = ::GetSourceHash( query.sourcePath.c_str(), query.defines );
105
106 if( !IsOutputUpToDate( query.outputPath.c_str(), in ) )
107 {
108 std::lock_guard scope( s_modifiedOutputsCS );
109 s_modifiedOutputs.insert( query.outputPath );
110 }
111
112 return true;
113}
114
115void GetSourceHash( const char* sourcePath, const char* parentData, const char* rootPath, std::set<std::string>& visited, MD5& md5 )
116{

Callers

nothing calls this directly

Calls 3

GetSourceHashFunction · 0.85
IsOutputUpToDateFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected