[all-commits] [llvm/llvm-project] 89a0c4: [clang][diagnostics] Add '-Wundef-prefix' warning ...

Zixu Wang via All-commits all-commits at lists.llvm.org
Tue Jun 30 14:01:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 89a0c4066b0e70edd257e30d7189f303e26251a0
      https://github.com/llvm/llvm-project/commit/89a0c4066b0e70edd257e30d7189f303e26251a0
  Author: Zixu Wang <zixu_wang at apple.com>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticLexKinds.td
    M clang/include/clang/Basic/DiagnosticOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Lex/PPExpressions.cpp
    A clang/test/Preprocessor/warn-macro-undef.c

  Log Message:
  -----------
  [clang][diagnostics] Add '-Wundef-prefix' warning option

Summary:
Add an `-Wundef-prefix=<arg1>,<arg2>...` option, which is similar to `-Wundef`, but only give warnings for undefined macros with the given prefixes.

Reviewers: ributzka, steven_wu, cishida, bruno, arphaman, rsmith

Reviewed By: ributzka, arphaman

Subscribers: riccibruno, dexonsmith, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D80751

This patch was authored by Zixu Wang <zixu_wang at apple.com>




More information about the All-commits mailing list