[PATCH] D99353: [driver] Make `clang` warn rather then error on `flang` options
Andrzej Warzynski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 5 09:22:56 PDT 2021
awarzynski added inline comments.
================
Comment at: clang/lib/Driver/Driver.cpp:294-297
+ // TODO: This currently doesn't work as information about aliases is
+ // lost when generating "unknown" options.
+ if (auto Alias = A->getAlias())
+ ExpectedDistance = 1;
----------------
This is how we could deal with aliased options, but currently `A->getAlias()` always returns `nullptr`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99353/new/
https://reviews.llvm.org/D99353
More information about the cfe-commits
mailing list