This is an archive of the discontinued LLVM Phabricator instance.

[Syntax] Test both the default and windows target platforms in unittests
ClosedPublic

Authored by hlopko on Mar 19 2020, 8:21 AM.

Details

Summary

This increases the coverage for things that differ between Linux and Windows, such as -fdelayed-template-parsing. This would have prevented the rollback of https://reviews.llvm.org/D76346.

While at it, update -std=c++11 to c++17 for the test.

Diff Detail

Event Timeline

hlopko created this revision.Mar 19 2020, 8:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2020, 8:21 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hlopko updated this revision to Diff 251399.Mar 19 2020, 8:48 AM

Reformat

hlopko updated this revision to Diff 251576.Mar 20 2020, 2:26 AM

Refactored to run tests on both default and windows platforms.

Opting out Templates test for now since it doesn't work with -fdelayed-template-parsing yet.

hlopko retitled this revision from [Syntax] Make TreeTest independent from the host platform. to [Syntax] Test both the default and windows target platforms in unittests.Mar 20 2020, 2:29 AM
hlopko edited the summary of this revision. (Show Details)
gribozavr2 accepted this revision.Mar 20 2020, 2:39 AM
gribozavr2 added inline comments.
clang/unittests/Tooling/Syntax/TreeTest.cpp
102

Maybe upgrade that to C++17? I hope this is where the world is moving.

124

s/SkipWindows/RunWithDelayedTemplateParsing/ ?

127

Please add a comment explaining that we want to test with delayed template parsing on and off, hence we choose two representative targets where that is normal.

815

Need an equal sign in /*SkipWindows=*/.

This revision is now accepted and ready to land.Mar 20 2020, 2:39 AM
hlopko updated this revision to Diff 251582.Mar 20 2020, 2:47 AM
hlopko marked 3 inline comments as done.

Address comments.

hlopko marked an inline comment as done.Mar 20 2020, 2:48 AM
hlopko edited the summary of this revision. (Show Details)
gribozavr2 accepted this revision.Mar 20 2020, 2:56 AM
This revision was automatically updated to reflect the committed changes.