Support framework import/include auto-completion
authorDavid Goldman <dallasftball@gmail.com>
Wed, 27 Feb 2019 17:40:33 +0000 (17:40 +0000)
committerDavid Goldman <dallasftball@gmail.com>
Wed, 27 Feb 2019 17:40:33 +0000 (17:40 +0000)
commit3e804d25819877bbc852860a2cc743fcb76a71c7
tree94cdab247c3ebb674d9f082499ee3ec5ee825d71
parenteaa895368be688ac9f622a18e990032d8f89231c
Support framework import/include auto-completion

Frameworks filesystem representations:
  UIKit.framework/Headers/%header%

Framework import format:
  #import <UIKit/%header%>

Thus the completion code must map the input format of <UIKit/> to
the path of UIKit.framework/Headers as well as strip the
".framework" suffix when auto-completing the framework name.

llvm-svn: 355008
clang/lib/Sema/SemaCodeComplete.cpp
clang/test/CodeCompletion/included-frameworks.m [new file with mode: 0644]