Disables clang-tidy check for multiple declarations on the same line for rect dimensi...
authorOmari Stephens <xsdg@xsdg.org>
Mon, 29 Apr 2024 18:44:02 +0000 (18:44 +0000)
committerColin Clark <colin.clark@cclark.uk>
Tue, 30 Apr 2024 09:12:11 +0000 (10:12 +0100)
Echoing https://www.reddit.com/r/learnprogramming/comments/9zgvlk/comment/ea942uh/
"My recommendation is that you only declare multiple per line if they represent
more or less the same thing, and are used together in such a way that they
logically belong to each other."

src/renderer-tiles.cc

index 0ab5c27..cea35fc 100644 (file)
@@ -1193,7 +1193,7 @@ static gboolean rt_source_tile_render(RendererTiles *rt, ImageTile *it,
 
                // We find the overlapping region (r{x,y,w,h}) between the ImageTile (output)
                // region and the region that's covered by this SourceTile (input).
-               gint rx, ry, rw, rh;
+               gint rx, ry, rw, rh;  // NOLINT(readability-isolate-declaration)
                if (pr_clip_region(stx, sty, stw, sth,
                                   it->x + x, it->y + y, w, h,
                                   &rx, &ry, &rw, &rh))