CheckCompilerFlag: Add Swift Support

Plumb through Swift `check_compiler_flag` support.
Add tests to check that valid flags work and invalid flags don't.
4 files changed