If I save the following to /tmp/test.cpp:
#include <CoreServices/CoreServices.h>
#include <iostream>
int main() {
CFStringRef my_string = CFSTR("hello, world!");
std::cout << CFStringGetLength(my_string) << '\n';
}
I can compile this correctly with !clang++ -framework CoreServices %
, however clang_complete can't complete anything from CoreServices.
The docs say I should place compiler options in a .clang_complete file (in this case I'm using /tmp/.clang_complete), however everything I've tried so far results in test.cpp|| unknown argument: '-framework'
appearing in the quick fix window.
What's the correct way of getting clang_complete to deal with frameworks correctly?