This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Add --experimental-disable-module-headers-parsing option
AbandonedPublic

Authored by PiotrZSL on Jul 22 2023, 4:49 AM.

Details

Summary

Experimental option: Disable modular header expansion
in C++20 and above. This option serves as a workaround
for addressing known issues #50087 and #62447.

Diff Detail

Event Timeline

PiotrZSL created this revision.Jul 22 2023, 4:49 AM
Herald added a project: Restricted Project. · View Herald Transcript
PiotrZSL requested review of this revision.Jul 22 2023, 4:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2023, 4:49 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
PiotrZSL updated this revision to Diff 543199.Jul 22 2023, 8:59 AM

Code formating

PiotrZSL updated this revision to Diff 543641.Jul 24 2023, 10:57 AM
PiotrZSL retitled this revision from [clang-tidy] Add --disable-modular-headers-expansion option to [clang-tidy] Add --experimental-disable-module-headers-parsing option.

Rename of option + cleanup

carlosgalvezp added inline comments.Jul 24 2023, 12:42 PM
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
202

Add docs?

clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
266

Add documentation

PiotrZSL added inline comments.Jul 24 2023, 12:49 PM
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
202

for function ? It's straight forward, but yes, I can add some one liner...

clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
266

This is hidden option. allow-enabling-analyzer-alpha-checkers is also hidden and has no documentation. That I base on.
So 2 questions:

  • should it be hidden ?
  • if stay hidden, does it need documentation ? (I'm fine with adding some)