Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unrecognized strings to the completion list in ac-clang-action.
ac-clang-action was ignoring strings which it did not recognize. This could make it impossible to expand a C++ class name in some instances, because the only expansion options were for the class's constructors. This commit changes ac-clang-action to add unrecognized strings to the list of argument completion candidates. In the case reported in Golevka#44, this means that the empty string is added to the list of candidates in addition to "()" argument list for the constructor. This allows the user to complete just the type name, without extra parentheses. This commit has two potential side effects. First, candidate argument lists will now contain an empty string in some cases, which is a waste of space. Second, there may be other types of strings which are not recognized by ac-clang-action, these will now also appear in the argument candidate list. My thinking is that if there are types of completions which are not being handled by ac-clang-action, we are better off not silently avoiding them. If this turns out to be annoying a future commit can add explicit handling for the empty string, and report unhandled strings some other way.
- Loading branch information