Add extension diagnostic for linemarker directives
authorKen Matsui <26405363+ken-matsui@users.noreply.github.com>
Wed, 11 May 2022 10:38:35 +0000 (06:38 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 11 May 2022 10:42:00 +0000 (06:42 -0400)
commit786c721c2bbd2e0646e314671e010859550423bf
tree1c5f80007579c67166b20f47bf83e834028f5f7a
parent4a58eb9e4e5282df95deff243f4141b35909710c
Add extension diagnostic for linemarker directives

This adds the -Wgnu-line-marker diagnostic flag, grouped under -Wgnu,
to warn about use of the GNU linemarker preprocessor extension.

Fixes #55067

Differential Revision: https://reviews.llvm.org/D124534
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticLexKinds.td
clang/lib/Lex/PPDirectives.cpp
clang/test/Preprocessor/line-directive-system-headers.c [new file with mode: 0644]
clang/test/Preprocessor/line-directive.c
clang/test/SemaCXX/constexpr-string.cpp