Reapply "[clang][cli] Report result of ParseLangArgs"
authorJan Svoboda <jan_svoboda@apple.com>
Mon, 8 Feb 2021 09:38:01 +0000 (10:38 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Mon, 8 Feb 2021 12:14:43 +0000 (13:14 +0100)
commite22677bbdbdc725463feaa1aa50f179964ce442b
treecb7cfc6b1ee9653d613018ee9009099cb9e7251d
parent05d7d6949c7cd3f1566d4c8394fa59160a7ffd05
Reapply "[clang][cli] Report result of ParseLangArgs"

This reverts commit 6039f821 and reapplies bff6d9bb.

Clang's Index/implicit-attrs.m test invokes c-index-test with -fobjc-arc. This flag is not compatible with -fobjc-runtime=gcc, which gets implied on Linux.

The original commit uncovered this by correctly reporting issues when parsing -cc1 command line.

This commit fixes the test to explicitly provide ObjectiveC runtime compatible with ARC.
clang/include/clang/Basic/Diagnostic.h
clang/include/clang/Frontend/CompilerInvocation.h
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Index/implicit-attrs.m