Hello,

I have implemented a new API function for libclang, clang_codeCompleteGetContexts, that returns a bitfield with the various code completion result types that are valid for the current code completion.  (The values for this bitfield are defined in enum CXCompletionContext in include/clang-c/Index.h.)

In support of this change, I also added a few new values to enum CodeCompletionContext::Kind in include/clang/Sema/CodeCompleteConsumer.h to provide better information for certain Objective-C contexts that were previously included in the "Other" context kind.

I also c-index-test to provide this context information when run with the -code-completion-at option.  I also updated the tests in test/Index/code-completion.cpp and test/Index/complete-natural.m to test the new output.

Finally, I also updated tools/libclang/libclang.exports and tools/libclang/libclang.darwin.exports to reflect the added API.

As this is my first submission to Clang, please let me know if I've overlooked something or if I need to make additional changes.

Thanks,
Connor Wakamo

Attachment: clang_codeCompleteGetContexts.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to