Change default behavior in Clang-tidy and skip by default
module headers parsing. That functionality is buggy and
slow in C++20, and provide tiny benefit.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Please squash into previous patch, I see no reason to make them into separate commits. The first one is missing Release Notes, for example.
@carlosgalvezp
My plan was to push first change regardless (so they would be some workaround, even if hidden & undocumented), and second only if approved.
Do we want to keep the experimental word in the flag?
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp | ||
---|---|---|
266 | --experimental-enable-module-headers-parsing | |
270 | Should we document the implications/risks of enabling this, so people are informed? Also the fact that is experimental and subject to change. | |
clang-tools-extra/docs/ReleaseNotes.rst | ||
109 | experimental |
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp | ||
---|---|---|
266 | I removed 'experimental' because it were messing with the --help output, were causing it be very wide. | |
270 | Something like "May cause performance & parsing issues, and therefore is considered experimental." ? I'ts fine with me. |
LGTM! Feel free to add the comment about the implications of using the flag in the docs.
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp | ||
---|---|---|
270 | Sounds good to me! |
--experimental-enable-module-headers-parsing