Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Squiggles start at the wrong place when there are tab characters before them #2409

Description

@glibg10b

Notice that the squiggles start 7 characters later on the line that starts with a tab character:

image

Syntastic seemingly interprets GCC's display columns value as byte columns. GCC has -fdiagnostics-column-unit=UNIT:

       -fdiagnostics-column-unit=UNIT
           Select the units for the column number.  This affects traditional diagnostics (in the absence of -fno-show-column), as well as JSON format diagnostics if requested.

           The default UNIT, display, considers the number of display columns occupied by each character.  This may be larger than the number of bytes required to encode the character, in the case of tab characters, or it may be smaller, in the case
           of multibyte characters.

           Setting UNIT to byte changes the column number to the raw byte count in all cases, as was traditionally output by GCC prior to version 11.1.0.

This applies to gcc and avrgcc. I didn't test the other cpp checkers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions