[all-commits] [llvm/llvm-project] 769020: [clang] Don't modify OptRemark if the argument is ...

aeubanks via All-commits all-commits at lists.llvm.org
Thu Sep 30 11:37:00 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76902079e42958118f01b4550d68a9b54c9e8e7e
      https://github.com/llvm/llvm-project/commit/76902079e42958118f01b4550d68a9b54c9e8e7e
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-09-30 (Thu, 30 Sep 2021)

  Changed paths:
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/Frontend/optimization-remark.c

  Log Message:
  -----------
  [clang] Don't modify OptRemark if the argument is not relevant

A followup to D110201.

 For example, we'd set OptimizationRemarkMissed's Regex to '.*' when
encountering -Rpass. Normally this doesn't actually affect remarks we
emit because in clang::ProcessWarningOptions() we'll separately look at
all -R arguments and turn on/off corresponding diagnostic groups.
However, this is reproducible with -round-trip-args.

Reviewed By: JamesNagurne

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




More information about the All-commits mailing list