[all-commits] [llvm/llvm-project] 786c72: Add extension diagnostic for linemarker directives

Ken Matsui via All-commits all-commits at lists.llvm.org
Wed May 11 03:42:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 786c721c2bbd2e0646e314671e010859550423bf
      https://github.com/llvm/llvm-project/commit/786c721c2bbd2e0646e314671e010859550423bf
  Author: Ken Matsui <26405363+ken-matsui at users.noreply.github.com>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticLexKinds.td
    M clang/lib/Lex/PPDirectives.cpp
    A clang/test/Preprocessor/line-directive-system-headers.c
    M clang/test/Preprocessor/line-directive.c
    M clang/test/SemaCXX/constexpr-string.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list