Skip to content

Commit b087b08

Browse files
Induce error to see how CI performs
1 parent 156f47e commit b087b08

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

src/ffi_client.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,25 @@ inline void logAndThrow(const std::string &error_msg) {
4545
throw std::runtime_error(error_msg);
4646
}
4747

48+
// TEMP: INTENTIONAL clang-tidy triggers to demo how GitHub CI renders red
49+
// (error-level) annotations. Each line below hits a check promoted to
50+
// WarningsAsErrors in .clang-tidy. Revert this block before merging.
51+
// NOLINTBEGIN(misc-const-correctness)
52+
[[maybe_unused]] void debug_tidy_error_markers() {
53+
std::string s = "hello";
54+
std::string t = std::move(s);
55+
(void)s.size(); // bugprone-use-after-move
56+
(void)t;
57+
58+
int i = 0;
59+
while (i < 10) { // bugprone-infinite-loop
60+
(void)t;
61+
}
62+
63+
(void)sizeof(sizeof(int)); // bugprone-sizeof-expression
64+
}
65+
// NOLINTEND(misc-const-correctness)
66+
4867
std::optional<FfiClient::AsyncId> ExtractAsyncId(const proto::FfiEvent &event) {
4968
using E = proto::FfiEvent;
5069
switch (event.message_case()) {

0 commit comments

Comments
 (0)