Skip to content

Refactor (and micro optimize) file detection in cmSourceFile

This topic branch refactors the file detection in cmSourceFile and adds some small optimizations there as well.

  • Additional static const strings in cmSourceFile should improve string comparison speeds
  • Convenience method cmSourceFile::GetIsGenerated() allows for fast checking whether a file is GENERATED
  • Refactoring cmSourceFile::FindFullPath avoids a few string re-computations
  • Fix for the case that a file was marked GENERATED after it's name was computed with an error
Edited by Sebastian Holtermann

Merge request reports