MCPcopy Create free account
hub / github.com/ImageEngine/cortex / formattedInclude

Function formattedInclude

contrib/scripts/fixIncludes.py:180–195  ·  view source on GitHub ↗
( includeFile, category )

Source from the content-addressed store, hash-verified

178 return "stdc++"
179
180def formattedInclude( includeFile, category ) :
181
182 if includeFile.startswith( "FT_" ) and includeFile.endswith( "_H" ) :
183 openBracket = ""
184 closeBracket = ""
185 else :
186 isStd = category in ( "stdc", "stdc++" )
187 openBracket = "<" if isStd else '"'
188 closeBracket = ">" if isStd else '"'
189
190
191 return "#include {0}{1}{2}\n".format(
192 openBracket,
193 includeFile,
194 closeBracket
195 )
196
197def fixFile( filename ) :
198

Callers 1

fixFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected