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 incmSourceFile
should improve string comparison speeds - Convenience method
cmSourceFile::GetIsGenerated()
allows for fast checking whether a file isGENERATED
- 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