[clang-include-fixer] Added Vim integration for clang-include-fixer.
Details
Diff Detail
Event Timeline
include-fixer/tool/ClangIncludeFixer.cpp | ||
---|---|---|
51 | This isn't really specific to vim, we should name it differently. '-stdin' maybe? Then document what it really does. | |
include-fixer/tool/clang-include-fixer.py | ||
39 | yaml is the default, maybe we shouldn't specify it here? Or leave the user a way to configure it. | |
50 | This always inserts at the top. Can we emit the position where to insert from the tool and put it there? |
- Changed VimMode to STDINMode, and made clang-include-fixer return insertion line number in this mode.
- Added -db, -input options into Vim integration.
include-fixer/tool/ClangIncludeFixer.cpp | ||
---|---|---|
51 | We can't get the compile options for the code if we only accept <stdin> input (without the corresponding file path). |
I expect the insertion code in the python part to cause trouble in the future again but I guess this is fine for now.
Can you add a section to include-fixer.rst on how to set this up?
This isn't really specific to vim, we should name it differently. '-stdin' maybe? Then document what it really does.