[PATCH] D99292: [flang][driver] Add support for `-cpp/-nocpp`
Andrzej Warzynski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 29 11:58:05 PDT 2021
awarzynski updated this revision to Diff 333953.
awarzynski added a comment.
Make sure that `-cpp\-nocpp` controls command line macro definitions too
As @tskeith pointed out, `-cpp\-nocpp` should also affect command line macro
definitions (on top of standard macro predefinitions). With this change, the
file extension becomes significant in all tests that depend on macros. I've
renamed some of them accordingly. Few other tests are updated to
demonstrate that the new flags work as expected.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99292/new/
https://reviews.llvm.org/D99292
Files:
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Flang.cpp
flang/include/flang/Frontend/CompilerInvocation.h
flang/include/flang/Frontend/FrontendOptions.h
flang/include/flang/Frontend/PreprocessorOptions.h
flang/lib/Frontend/CompilerInstance.cpp
flang/lib/Frontend/CompilerInvocation.cpp
flang/lib/Frontend/FrontendAction.cpp
flang/lib/Frontend/FrontendActions.cpp
flang/lib/Frontend/FrontendOptions.cpp
flang/test/Driver/cpp-nocpp-command-line-macro.f90
flang/test/Driver/cpp-nocpp-predefined-macro.F90
flang/test/Driver/driver-help-hidden.f90
flang/test/Driver/driver-help.f90
flang/test/Driver/input-from-stdin.f90
flang/test/Driver/macro-def-undef.F90
flang/test/Driver/macro-def-undef.f90
flang/test/Driver/macro-multiline.F90
flang/test/Driver/macro-multiline.f90
flang/test/Driver/predefined-macros-compiler-version.F90
flang/test/Driver/predefined-macros-compiler-version.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99292.333953.patch
Type: text/x-patch
Size: 23513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210329/4ee49cf4/attachment-0001.bin>
More information about the cfe-commits
mailing list