https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86904
--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> --- (In reply to richard.earnshaw from comment #1) > On 09/08/18 21:08, dmalcolm at gcc dot gnu.org wrote: [...snip...] > > Maybe: > > -fdiagnostics-x-coord=bytes : count of bytes > > -fdiagnostics-x-coord=characters : count of characters (not special-casing > > tab) > > -fdiagnostics-x-coord=columns : count of columns: as per characters, but > > with > > tabs doing tabstops > > how about -fdiagnostics-x-coord=visual-[n] > > Where n is the size of a hard tab? Some folks change the tab stop to 4, > for example. Or maybe ...coord=tab[-n], where -n defaults to "-8". The C family of frontends already has: -ftabstop=<number> Distance between tab stops for column reporting. which IIRC is currently only used by -Wmisleading-indentation. I guess it could be moved to common.opt.