[PATCH] D58154: Add support for -fpermissive.

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 12 15:45:16 PST 2019


rsmith created this revision.
rsmith added a reviewer: jyknight.
Herald added a subscriber: jdoerfert.
Herald added a project: clang.

The intent is to provide similar functionality to GCC's -fpermissive.
For Clang's approach to diagnostics, this means that we remap all
extension diagnostics to no higher than a warning. As with GCC, the
warnings can then be suppressed with -w.


Repository:
  rC Clang

https://reviews.llvm.org/D58154

Files:
  docs/UsersManual.rst
  include/clang/Basic/Diagnostic.h
  include/clang/Basic/DiagnosticOptions.def
  include/clang/Basic/DiagnosticOptions.h
  include/clang/Driver/Options.td
  lib/ARCMigrate/ARCMT.cpp
  lib/Basic/DiagnosticIDs.cpp
  lib/Basic/DiagnosticOptions.cpp
  lib/Basic/Warnings.cpp
  lib/Driver/ToolChains/Clang.cpp
  lib/Frontend/CompilerInvocation.cpp
  lib/Lex/PPMacroExpansion.cpp
  lib/Serialization/ASTReader.cpp
  test/Driver/warning-options_pedantic.cpp
  test/Frontend/warning-mapping-2.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58154.186554.patch
Type: text/x-patch
Size: 19771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190212/8bc88909/attachment-0001.bin>


More information about the cfe-commits mailing list