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 58955 include-fixer/IncludeFixer.h
include-fixer/IncludeFixer.cpp
include-fixer/IncludeFixerContext.h
include-fixer/tool/ClangIncludeFixer.cpp
include-fixer/tool/clang-include-fixer.py
test/include-fixer/commandline_options.cpp
unittests/include-fixer/IncludeFixerTest.cpp
|
maybe 'about the symbol being queried'?