| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[clang][modules] Deprecate module.map in favor of module.modulemap (#75142) This patch deprecates module.map in favor of module.modulemap, which has been the preferred form since 2014. The eventual goal is to remove support for module.map to reduce the number of stats Clang needs to do while searching for module map files. This patch touches a lot of files, but the majority of them are just renaming tests or references to the file in comments or documentation. The relevant files are: * lib/Lex/HeaderSearch.cpp * include/clang/Basic/DiagnosticGroups.td * include/clang/Basic/DiagnosticLexKinds.td | 2 年前 | |
[include-cleaner] Add include-cleaner tool, with initial HTML report The immediate goal is to start producing an HTML report to debug and explain include-cleaner recommendations. For now, this includes only the lowest-level piece: a list of the references found in the source code. How this fits into future ideas: - under refs we can also show the headers providing the symbol, which includes match those headers etc - we can also annotate the #include lines with which symbols they cover, and add whichever includes we're suggesting too - the include-cleaner tool will likely have modes where it emits diagnostics and/or applies edits, so the HTML report is behind a flag Differential Revision: https://reviews.llvm.org/D135956 | 3 年前 | |
[include-cleaner] Add include-cleaner tool, with initial HTML report The immediate goal is to start producing an HTML report to debug and explain include-cleaner recommendations. For now, this includes only the lowest-level piece: a list of the references found in the source code. How this fits into future ideas: - under refs we can also show the headers providing the symbol, which includes match those headers etc - we can also annotate the #include lines with which symbols they cover, and add whichever includes we're suggesting too - the include-cleaner tool will likely have modes where it emits diagnostics and/or applies edits, so the HTML report is behind a flag Differential Revision: https://reviews.llvm.org/D135956 | 3 年前 | |
[include-cleaner] Make use of locateSymbol in WalkUsed and HTMLReport Depens on D135953 Differential Revision: https://reviews.llvm.org/D138200 | 3 年前 | |
[include-cleaner] clang-include-cleaner can print/apply edits This adds command-line flags to the tool: + -print: prints changed source code + -print=changes: prints headers added/removed + -edit: rewrites code in place + -insert=0/-remove=0: disables additions/deletions for the above These are supported by a couple of new functions dumped into Analysis: analyze() sits on top of walkUsed and makes used/unused decisions for Includes. fixIncludes() applies those results to source code. Differential Revision: https://reviews.llvm.org/D139013 | 3 年前 |