You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added types to fenced blocks, that were missing it.
Replaced code block by indentation with regular fenced block.
Replaced numbered list usage to use only 1s instead of hard-coded
values. This makes it easier to add/remove list elements as
markdown will handle the number increment internally during list rendering.
:exclamation: the config-file will not be forced by adding it to the clang-tidy command line. Therefore it must be in one of the parents of all source files. It is recommended to put it in the root directly besides the WORKSPACE file.
57
57
58
-
59
58
Now if you don't want to type this out every time, it is recommended that you
60
59
add a config in your .bazelrc that matches this command line;
61
60
62
-
```
61
+
```text
63
62
# Required for bazel_clang_tidy to operate as expected
lib.cpp:4:43: error: the parameter 'name' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] std::string lib_get_greet_for(std::string name)
110
-
Aspect //clang_tidy:clang_tidy.bzl%clang_tidy_aspect of //example:app failed to build
112
+
```text
113
+
lib.cpp:4:43: error: the parameter 'name' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] std::string lib_get_greet_for(std::string name)
114
+
Aspect //clang_tidy:clang_tidy.bzl%clang_tidy_aspect of //example:app failed to build
115
+
```
111
116
112
-
4. Fix the error by changing `lib.cpp` only.
113
-
5. Re-run clang-tidy with the same command. Observe that it does not run clang-tidy for `app.cpp`: the cached report is re-used.
117
+
1. Fix the error by changing `lib.cpp` only.
118
+
1. Re-run clang-tidy with the same command. Observe that it does not run clang-tidy for`app.cpp`: the cached report is re-used.
0 commit comments