[PATCH] D94228: [flang][driver] Support fixed form detection

Faris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 08:42:12 PST 2021


FarisRehman updated this revision to Diff 316961.
FarisRehman added a comment.

Add helper methods to Utils

Add methods isFixedFormSuffix and isFreeFormSuffix to address the comment from @tskeith

Summary of changes:

- Create isFixedFormSuffix and isFreeFormSuffix methods in FrontendTool/Utils.h
- Use isFixedFormSuffix and isFreeFormSuffix methods instead of StringSwitch in FrontendOptions#GetInputKindForExtension


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94228/new/

https://reviews.llvm.org/D94228

Files:
  flang/include/flang/FrontendTool/Utils.h
  flang/lib/Frontend/FrontendAction.cpp
  flang/lib/Frontend/FrontendOptions.cpp
  flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
  flang/test/Flang-Driver/Inputs/fixed-form-test.f
  flang/test/Flang-Driver/Inputs/free-form-test.f90
  flang/test/Flang-Driver/fixed-free-detection.f90
  flang/test/lit.cfg.py
  flang/unittests/Frontend/FrontendActionTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94228.316961.patch
Type: text/x-patch
Size: 7989 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210115/fdc60898/attachment.bin>


More information about the llvm-commits mailing list