|
2 | 2 | # - Change 'binary' if clang-include-fixer is not on the path (see below).
|
3 | 3 | # - Add to your .vimrc:
|
4 | 4 | #
|
5 |
| -# noremap <leader>cf :pyf path/to/llvm/source/tools/clang/tools/extra/include-fixer/tool/clang-include-fixer.py<cr> |
| 5 | +# noremap <leader>cf :pyf path/to/llvm/source/tools/clang/tools/extra/clang-include-fixer/tool/clang-include-fixer.py<cr> |
6 | 6 | #
|
7 |
| -# This enables clang-include-fixer for NORMAL and VISUAL mode. Change "<leader>cf" |
8 |
| -# to another binding if you need clang-include-fixer on a different key. |
| 7 | +# This enables clang-include-fixer for NORMAL and VISUAL mode. Change |
| 8 | +# "<leader>cf" to another binding if you need clang-include-fixer on a |
| 9 | +# different key. |
9 | 10 | #
|
10 |
| -# To set up clang-include-fixer, see http://clang.llvm.org/extra/include-fixer.html |
| 11 | +# To set up clang-include-fixer, see |
| 12 | +# http://clang.llvm.org/extra/clang-include-fixer.html |
11 | 13 | #
|
12 | 14 | # With this integration you can press the bound key and clang-include-fixer will
|
13 | 15 | # be run on the current buffer.
|
@@ -76,7 +78,7 @@ def GetUserSelection(message, headers, maximum_suggested_headers):
|
76 | 78 | raise Exception()
|
77 | 79 | except Exception:
|
78 | 80 | # Show a new prompt on invalid option instead of aborting so that users
|
79 |
| - # don't need to wait for another include-fixer run. |
| 81 | + # don't need to wait for another clang-include-fixer run. |
80 | 82 | print >> sys.stderr, "Invalid option:", res
|
81 | 83 | return GetUserSelection(message, headers, maximum_suggested_headers)
|
82 | 84 | return headers[idx - 1]
|
@@ -170,7 +172,7 @@ def main():
|
170 | 172 | print "The file is fine, no need to add a header."
|
171 | 173 | return
|
172 | 174 | symbol = query_symbol_infos[0]["RawIdentifier"]
|
173 |
| - # The header_infos is already sorted by include-fixer. |
| 175 | + # The header_infos is already sorted by clang-include-fixer. |
174 | 176 | header_infos = include_fixer_context["HeaderInfos"]
|
175 | 177 | # Deduplicate headers while keeping the order, so that the same header would
|
176 | 178 | # not be suggested twice.
|
|
0 commit comments