Reapply "[clang][cli] Allow users to specify a conditional to prevent parsing options...
authorJan Svoboda <jan_svoboda@apple.com>
Thu, 7 Jan 2021 09:14:48 +0000 (10:14 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Thu, 7 Jan 2021 10:11:47 +0000 (11:11 +0100)
commit67a4c672b02359fa6f723249f633ffc76aff2174
treed6ae11caee3d115c38c5713d601a3dc1a03aad3b
parentc9154e8fa377d1621e20482dda8a8bb2439a39c4
Reapply "[clang][cli] Allow users to specify a conditional to prevent parsing options with MarshallingInfo"

This reverts commit d0fa7a05 and fixes failing OptionMarshallingTest by adding the SHOULD_PARSE macro argument
clang/include/clang/Driver/Options.td
clang/lib/Frontend/CompilerInvocation.cpp
clang/unittests/Frontend/CompilerInvocationTest.cpp
llvm/include/llvm/Option/OptParser.td
llvm/unittests/Option/OptionMarshallingTest.cpp
llvm/utils/TableGen/OptParserEmitter.cpp