UNPKG

pi-lens

Version:

Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo

20 lines (19 loc) • 369 B
id: cpp-no-printf valid: - | void report(int count) { std::cout << "count: " << count << "\n"; } - | void log(const char* msg) { fprintf(stderr, "%s\n", msg); } invalid: - | void report(int count) { printf("count: %d\n", count); } - | void report(int count) { std::printf("count: %d\n", count); }