Commit 52d72ef
committed
st: fix CI - clang-tidy performance checks and MSBuild proto ordering
Two PR #600 failures the reflectcpp fix exposed once the build got further:
Lint (clang-tidy, performance-* treated as errors) on lib/st/ClientImpl.cc:
- the std::move of the trivially-copyable TransactionPolicy constructor
argument had no effect; take it by const reference and copy the member.
- the four not-yet-implemented create/subscribe stubs take their config by
value (the sink the real implementation will move from) but do not consume
it yet, so performance-unnecessary-value-param fired. Suppress it with a
NOLINTNEXTLINE on each stub rather than churning the by-value signature the
follow-up phases need (which would cascade const-ref up the builder chain).
Windows (Visual Studio generator) failed compiling ST_OBJECT_LIB with
"Cannot open include file: PulsarApi.pb.h": the st sources include the
generated proto header, and while linking PROTO_OBJECTS propagates its
include directory, the OBJECT->OBJECT link does not reliably order the build
under MSBuild, so the st sources compiled before the proto existed. Add an
explicit add_dependencies(ST_OBJECT_LIB PROTO_OBJECTS) (and the legacy
PULSAR_OBJECT_LIB equivalent) and the generated-dir include.
Verified: full local build + 83/83 pulsar-st-tests green; clang-format clean.
Signed-off-by: Matteo Merli <mmerli@apache.org>1 parent fbb1a68 commit 52d72ef
3 files changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
92 | 101 | | |
| 102 | + | |
93 | 103 | | |
94 | 104 | | |
95 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| 62 | + | |
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments