[all-commits] [llvm/llvm-project] d0d076: [Driver] Flip the CC1 default of -fdiagnostics-sho...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Mar 31 22:04:26 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d0d076fed9681ebf2c2aed22e18cc5b89c5ac940
      https://github.com/llvm/llvm-project/commit/d0d076fed9681ebf2c2aed22e18cc5b89c5ac940
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-03-31 (Tue, 31 Mar 2020)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Frontend/CompilerInvocation.h
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p1-cxx11.cpp
    M clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p1.cpp
    M clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-cxx03-extra-copy.cpp
    A clang/test/Driver/fdiagnostics-show-option.c
    M clang/test/Driver/rewrite-legacy-objc.m
    M clang/test/Driver/rewrite-objc.m
    R clang/test/Driver/show-option-names.c
    M clang/test/Frontend/diagnostics-option-names.c
    M clang/test/Misc/show-diag-options.c
    M clang/test/Sema/parentheses.c

  Log Message:
  -----------
  [Driver] Flip the CC1 default of -fdiagnostics-show-option

The driver enables -fdiagnostics-show-option by default, so flip the CC1
default to reduce the lengths of common CC1 command lines.

This change also makes ParseDiagnosticArgs() consistently enable
-fdiagnostics-show-option by default.




More information about the All-commits mailing list