Some changes in the patch:
- Add two commandline flags in clang-include-fixer.
- Introduce a IncludeFixerContext for the queried symbol.
- Pull out CreateReplacementsForHeader.
Paths
| Differential D20621
[include-fixer] Create a mode in vim integration to show multiple potential headers. ClosedPublic Authored by hokein on May 25 2016, 6:58 AM.
Details Summary Some changes in the patch:
Diff Detail
Event TimelineComment Actions Oh, sorry, I miss two separate commits here. This patch should not be ready for review. I need to rebase it after commit D20581.
Comment Actions Can you add some lit tests for the various command line modes clang-include-fixer has now. We can't reasonably test the vim integration but we can tests the bits it's composed of.
hokein marked 9 inline comments as done. hokein edited edge metadata. Comment ActionsAddress comments. Comment Actions
Done.
klimek added inline comments.
hokein marked an inline comment as done. Comment ActionsUse format::getStyle to get clang-format style. This revision is now accepted and ready to land.May 31 2016, 1:51 AM
Closed by commit rL271258: [include-fixer] Create a mode in vim integration to show multiple potential… (authored by hokein). · Explain WhyMay 31 2016, 2:38 AM This revision was automatically updated to reflect the committed changes. Comment Actions
Currently, the header is only inserted at the first line of the file because we don't output the FirstIncludeOffset to py script. A follow-up patch will come soon.
Revision Contents
Diff 59030 clang-tools-extra/trunk/include-fixer/IncludeFixer.h
clang-tools-extra/trunk/include-fixer/IncludeFixer.cpp
clang-tools-extra/trunk/include-fixer/IncludeFixerContext.h
clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp
clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.py
clang-tools-extra/trunk/test/include-fixer/commandline_options.cpp
clang-tools-extra/trunk/unittests/include-fixer/IncludeFixerTest.cpp
|