Files
Code/cplusplus/learning/tut1/main.cpp
dl92 c2fc82707e working clang-tidy
clang-tidy is a static analysis tool:
It analyzes C++ source code
It finds bugs, bad practices, and design issues
It uses the same compiler flags as your real build

Examples of what it catches:
Uninitialized variables
Dangling references
Inefficient copies
Dangerous implicit conversions
Missing explicit
Poor modern C++ usage
2026-01-07 23:49:57 +00:00

11 lines
173 B
C++

#include <fmt/core.h>
#include <iostream>
int main() {
int x;
std::cout << x;
fmt::print("Hello from {} using fmt {}\n", "tut1", FMT_VERSION);
return 0;
}