False positive for rule T002 on _GNU_SOURCE

Issue #100 wontfix
Andrew Pennebaker created an issue

Rule T002 cautions the user not to declare macros with names beginning with undescores. Unfortunately, _GNU_SOURCE is actually expected to be set by the user when including GNU libraries.

Comments (2)

  1. Vincent Hobeïka

    Rules provided with vera++ are here as examples. Feel free to adapt them to your need.

    Best regards

  2. Vincent Hobeïka

    We do not enforce a coding style or propose several coding styles. We don't have the structure to do so yet.

  3. Log in to comment