This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Pass -fno-modules to clang-tidy instead of disabling it for the modules build
ClosedPublic

Authored by philnik on Jun 17 2022, 6:43 AM.

Diff Detail

Event Timeline

philnik created this revision.Jun 17 2022, 6:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2022, 6:43 AM
philnik requested review of this revision.Jun 17 2022, 6:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2022, 6:43 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

No real objection, but I think having an XFAIL will give us feedback when modules start working with modules.

libcxx/test/libcxx/clang_tidy.sh.cpp
11–12

Let's add a TODO so we can grep to remove it at some point. I expect clang-tidy to work at some point with modules and it might even get module specific diagnostics.

No real objection, but I think having an XFAIL will give us feedback when modules start working with modules.

I'm using modules for my local build and it's quite annoying having to re-run CMake to be able to run clang-tidy. Since clang doesn't even have complete modules support yet I don't think clang-tidy will work properly with them in the near future.

libcxx/test/libcxx/clang_tidy.sh.cpp
11–12

I'll add one when committing if there are no other objections.

ldionne accepted this revision.Jun 21 2022, 8:11 AM

LGTM with a TODO

This revision is now accepted and ready to land.Jun 21 2022, 8:11 AM
This revision was landed with ongoing or failed builds.Jun 21 2022, 11:28 AM
This revision was automatically updated to reflect the committed changes.