()
| 218 | |
| 219 | |
| 220 | def main() -> None: |
| 221 | from ci.util.check_files import run_checker_standalone |
| 222 | |
| 223 | checker = BareLibmChecker() |
| 224 | run_checker_standalone( |
| 225 | checker, |
| 226 | [str(SRC_ROOT)], |
| 227 | "Found bare C libm call (e.g. ::sqrtf, atan2, ldexpf) in src/. " |
| 228 | "Use fl::sqrt / fl::atan2 / fl::ldexp instead — see PR #3012, " |
| 229 | "issue #3002. Add `// ok libm` to whitelist a specific call.", |
| 230 | extensions=[".cpp", ".h", ".hpp"], |
| 231 | ) |
| 232 | |
| 233 | |
| 234 | if __name__ == "__main__": |
no test coverage detected