File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
4867std::optional<FfiClient::AsyncId> ExtractAsyncId (const proto::FfiEvent &event) {
4968 using E = proto::FfiEvent;
5069 switch (event.message_case ()) {
You can’t perform that action at this time.
0 commit comments