<div dir="auto">Hi List!<div dir="auto"><br></div><div dir="auto">I'm currently working on a Tidy check which implements interface design rule from cppcoreguidelines ("avoid adjacent args of same type").</div><div dir="auto"><br></div><div dir="auto">The problem with such a check is two-fold: the highlight of the diagnostic it should give isn't a singles AST node but a range.</div><div dir="auto">But this->diag only accept a source location.</div><div dir="auto"><br></div><div dir="auto">I'd wish to highlight a "custom" range (from beginning of one node's sourceloc through the last letter of another node, they appear sequentially in the source text).</div><div dir="auto"><br></div><div dir="auto">I know fixit replace/delete hint works with ranges, but the diagnostic itself isn't about something that is trivially fixable with an automatically generated hint.</div><div dir="auto"><br></div><div dir="auto">How would you go about doing this in a proper and user friendly way?</div><div dir="auto">Putting two notes like "range begins here" and "range ends here" is ugly.</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Whisperity.</div></div>