| Running clang-tidy for 1 files out of 1 in compilation database ...
|
| [1/1][0.9s] /usr/lib/llvm/21/bin/clang-tidy -p=build/ /home/libfud/Documents/demos/dumb_clang_tidy/stupidtidy.cpp
|
| ../stupidtidy.cpp:46:5: warning: an exception may be thrown in function 'main' which should not throw exceptions [bugprone-exception-escape]
|
| 46 | int main() {
|
| | ^
|
| /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/expected:774:2: note: frame #0: unhandled exception of type 'std::bad_expected_access<int>' may be thrown in function 'value' here
|
| 774 | _GLIBCXX_THROW_OR_ABORT(bad_expected_access<_Er>(__unex));
|
| | ^
|
| /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/x86_64-pc-linux-gnu/bits/c++config.h:262:42: note: expanded from macro '_GLIBCXX_THROW_OR_ABORT'
|
| 262 | # define _GLIBCXX_THROW_OR_ABORT(_EXC) (throw (_EXC))
|
| | ^
|
| ../stupidtidy.cpp:27:17: note: frame #1: function 'sillySquareRootNoReturn' calls function 'value' here
|
| 27 | auto root = valueResult.value();
|
| | ^
|
| ../stupidtidy.cpp:49:5: note: frame #2: function 'main' calls function 'sillySquareRootNoReturn' here
|
| 49 | sillySquareRootNoReturn(value);
|
| | ^
|
| 11744 warnings generated.
|
| Suppressed 11743 warnings (11743 in non-user code).
|
| Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as we
|