This is an archive of the discontinued LLVM Phabricator instance.

Run syntax tree tests in many language modes
ClosedPublic

Authored by gribozavr on May 29 2020, 11:02 AM.

Diff Detail

Event Timeline

gribozavr created this revision.May 29 2020, 11:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2020, 11:02 AM
gribozavr updated this revision to Diff 267351.May 29 2020, 1:19 PM

Rebased the patch on top of the current master.

hlopko accepted this revision.Jun 2 2020, 1:00 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jun 2 2020, 1:00 AM
eduucaldas added inline comments.Jun 2 2020, 1:21 AM
clang/unittests/Tooling/Syntax/TreeTest.cpp
54–63

These could be on the clang/Testing

181

Note: This already adds -fsyntax-only as a flag

205–206

is RunWithDelayedTemplateParsing being used?

gribozavr2 added inline comments.
clang/unittests/Tooling/Syntax/TreeTest.cpp
54–63

I agree, but I'll move this type in a future change, when I will be unifying the infrastructure with the one that we have in other tests. I'm afraid of moving it right now because I'm not sure it is the right abstraction.

181

It is not clear we can rely on that -- it seems like an implementation detail of createInvocationFromCommandLine that the TODO suggests should be changed.

205–206

Indeed not -- removed!

gribozavr updated this revision to Diff 267814.Jun 2 2020, 1:27 AM

Updated according to the code review.

eduucaldas accepted this revision.Jun 2 2020, 1:28 AM
This revision was automatically updated to reflect the committed changes.