<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>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.)</div><div><br></div><div>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.</div><div><br></div><div>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.<br><div><br class="webkit-block-placeholder"></div><div>Finally, I also updated tools/libclang/libclang.exports and tools/libclang/libclang.darwin.exports to reflect the added API.</div><div><br></div><div>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.</div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">Thanks,</div><div>Connor Wakamo</div><div><a href="mailto:cwakamo@apple.com">cwakamo@apple.com</a></div><div><br></div><div></div></div></span></span></span></div></div></body></html>