[PATCH] D96407: [flang][driver] Add extension options and -finput-charset

Faris Rehman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 10 04:34:29 PST 2021


FarisRehman created this revision.
Herald added a reviewer: sscalpone.
Herald added a subscriber: dang.
Herald added a reviewer: awarzynski.
Herald added a reviewer: jansvoboda11.
FarisRehman requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: cfe-commits, sstefan1.
Herald added a project: clang.

Add the following options:

- -fimplicit-none and -fno-implicit-none
- -fbackslash and -fno-backslash
- -flogical-abbreviations and -fno-logical-abbreviations
- -fxor-operator and -fno-xor-operator
- -falternative-parameter-statement
- -finput-charset=<value>

A help message has not been added to `-finput-charset` as it is used by clang too.

Summary of changes:

- Enable extensions in CompilerInvocation#ParseFrontendArgs
- Add encoding_ to Fortran::frontend::FrontendOptions
- Add encoding to Fortran::parser::Options


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96407

Files:
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/ToolChains/Flang.cpp
  flang/include/flang/Frontend/FrontendOptions.h
  flang/include/flang/Parser/parsing.h
  flang/lib/Frontend/CompilerInstance.cpp
  flang/lib/Frontend/CompilerInvocation.cpp
  flang/test/Flang-Driver/driver-help-hidden.f90
  flang/test/Flang-Driver/driver-help.f90
  flang/test/Flang-Driver/escaped-backslash.f90
  flang/test/Flang-Driver/implicit-none.f90
  flang/test/Flang-Driver/input-charset.f90
  flang/test/Semantics/oldparam02.f90
  flang/test/Semantics/resolve64.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96407.322647.patch
Type: text/x-patch
Size: 20915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210210/80fc5dc2/attachment-0001.bin>


More information about the cfe-commits mailing list