[all-commits] [llvm/llvm-project] 786954: Accept -fno-knr-functions as a driver flag as well

Aaron Ballman via All-commits all-commits at lists.llvm.org
Sat Apr 30 10:38:11 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 786954db06ab253dbd62d059036e06f6bbd9223c
      https://github.com/llvm/llvm-project/commit/786954db06ab253dbd62d059036e06f6bbd9223c
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-04-30 (Sat, 30 Apr 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/no-knr-functions.c

  Log Message:
  -----------
  Accept -fno-knr-functions as a driver flag as well

Due to a think-o, it was only being accepted as a -cc1 flag. This adds
the proper forwarding from the driver to the frontend and adds test
coverage for the option.




More information about the All-commits mailing list