Commit 3e51ff9
committed
fix: include foo_library header instead of suppressing lint
Addresses review feedback on #3985. The clang-tidy
misc-use-internal-linkage warning for foo_library() was triggered
because the .cc files did not include their own header, so clang-tidy
could not see the external declaration. Including the header is the
right fix and lets the NOLINTNEXTLINE suppressions be removed.
Uses the same BAZEL_BUILD vs CMake include path split already used
by every example main file that calls foo_library().
Signed-off-by: Mateen Anjum <mateenali66@gmail.com>1 parent 0e8546f commit 3e51ff9
File tree
2 files changed
+12
-2
lines changed- examples/common
- foo_library
- logs_foo_library
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
36 | | - | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| |||
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
34 | | - | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
0 commit comments