The patch extends include-fixer's "-output-headers", and "-insert-headers"
command line options to make it dump more information (e.g. QualifiedSymbol),
so that vim-integration can add missing qualifiers.
Details
Diff Detail
Event Timeline
include-fixer/IncludeFixerContext.cpp | ||
---|---|---|
54 | Drop the const ... | |
57 | ... use std::move to move Symbols into place. | |
include-fixer/IncludeFixerContext.h | ||
32 | Typo: qulifiers | |
65 | s/informations/information/ | |
include-fixer/tool/ClangIncludeFixer.cpp | ||
252 | Is it guaranteed that two headers with the same name are adjacent in the HeaderInfos vector? If so, point that out in a comment, otherwise adjacent_find isn't the right algorithm here. | |
259 | "Expected exactly one unique header"? | |
include-fixer/tool/clang-include-fixer.py | ||
119 | Reduplicate? |
include-fixer/tool/ClangIncludeFixer.cpp | ||
---|---|---|
252 | In that case adjacent_find was the right choice, but std::equal also works, I read this wrong. There are multiple ways of doing this using standard algorithms and none of them is really obvious. Please add a comment here that you're checking that all elements are equal. |
Add comments for std::equal.
include-fixer/tool/ClangIncludeFixer.cpp | ||
---|---|---|
252 | Done. To me, equal is more obvious than adjacent_find. |
Typo: qulifiers