Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simplest possible test case for Objective-C in YouCompleteMe.
import os
import ycm_core
flags = [
SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', '.m', '.mm' ]
def FlagsForFile( filename, **kwargs ):
return {
'flags': flags,
'do_cache': True
#import <Foundation/Foundation.h>
int main(int argc, char *argv[]) {
int retVal;
@autoreleasepool {
NSString *string = @"hihi";
retVal = 0;
return retVal;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment