This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Enable more warnings in the test suite
AbandonedPublic

Authored by philnik on May 21 2022, 7:34 AM.

Details

Reviewers
ldionne
Mordante
var-const
Group Reviewers
Restricted Project

Diff Detail

Event Timeline

philnik created this revision.May 21 2022, 7:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2022, 7:34 AM
Herald added a subscriber: arichardson. · View Herald Transcript
philnik requested review of this revision.May 21 2022, 7:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2022, 7:34 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik added inline comments.May 21 2022, 7:36 AM
libcxx/test/std/concepts/concepts.lang/concept.constructible/constructible_from.compile.pass.cpp
109–111

@Mordante These test-cases look completely redundant to me. Do you know why you added them?

jloser added a subscriber: jloser.May 21 2022, 1:34 PM
jloser added inline comments.
libcxx/test/std/utilities/variant/variant.visit/visit_return_type.pass.cpp
242

This, and below, no longer check the return value of std::visit call is the correct value. Isn't that more or less the whole point of this test?

philnik marked an inline comment as done.May 21 2022, 1:39 PM
philnik added inline comments.
libcxx/test/std/utilities/variant/variant.visit/visit_return_type.pass.cpp
242

Look closer :). This checks that 42 == 42. This uses the opertor,. std::visit returns void in these cases.

jloser added inline comments.May 21 2022, 1:44 PM
libcxx/test/std/utilities/variant/variant.visit/visit_return_type.pass.cpp
242

Ah, got it. Thanks!

Seems reasonable to me (LGTM) once CI is green.

philnik updated this revision to Diff 431237.May 22 2022, 6:42 AM
philnik marked an inline comment as done.
  • Try to fix CI
philnik updated this revision to Diff 431267.May 22 2022, 2:36 PM
  • Next try
philnik updated this revision to Diff 431316.May 23 2022, 2:56 AM
  • Next try
Mordante added inline comments.May 29 2022, 5:58 AM
libcxx/test/std/concepts/concepts.lang/concept.constructible/constructible_from.compile.pass.cpp
109–111

What do you mean with redundant?

libcxx/test/std/language.support/support.start.term/quick_exit.pass.cpp
26

Not your change, but it looks like we're not testing anything in this test.

philnik marked an inline comment as done.May 29 2022, 6:14 AM
philnik added inline comments.
libcxx/test/std/concepts/concepts.lang/concept.constructible/constructible_from.compile.pass.cpp
109–111

Aren't throw() and noexcept specifications indistinguishable? (Same for noexcept and noexcept(true), but these don't produce warnings)

libcxx/test/std/language.support/support.start.term/quick_exit.pass.cpp
26

I'll add an assert(false).

philnik abandoned this revision.May 31 2023, 11:33 AM
philnik marked an inline comment as done.