Skip to content

clang-tidy warning: statement should be inside braces [hicpp-braces-around-statements] #6

@ClausKlein

Description

@ClausKlein
Running clang-tidy for 1 files out of 7 in compilation database ...
[1/1][13.7s] /usr/local/Cellar/llvm/21.1.7/bin/clang-tidy -p=build/llvm-release /Users/clausklein/Workspace/cpp/beman-project/take_before/examples/take_before_direct_usage.cpp
/Users/clausklein/Workspace/cpp/beman-project/take_before/examples/take_before_direct_usage.cpp:13:20: warning: statement should be inside braces [hicpp-braces-around-statements]
   13 |     for (int i : v)
      |                    ^
      |                     {
   14 |         std::cout << i << ' ';
      |                               
108072 warnings generated.
Suppressed 108075 warnings (108071 in non-user code, 4 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.

bash-5.3$ 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions