I started a plugin for clang autocompletion. It's pretty functional already, but does need more work. Check it out if you're coding in C/C++
http://github.com/quarnster/SublimeClang
if language != "c++" and language != "c" and language != "objc":
unsaved_files = [(view.file_name(), view.substr(Region(0, 65536)))]unsaved_files = [(view.file_name(), view.substr(Region(0, view.size())))]Traceback (most recent call last):
File ".\sublimeclang.py", line 190, in recompile
File ".\clang\cindex.py", line 208, in location
ValueError: Procedure called with not enough arguments (4 bytes missing) or wrong calling convention
def location(self):
import platform
if platform.system() == "Windows":
class hack:
def __init__(self):
self.file = None
self.line = 0
self.column = 0
return hack()
return _clang_getDiagnosticLocation(self)
quarnster wrote:I'm not too familiar with Objective-C/Objective-C++, but I've just submitted a shot at adding basic support.
As for listing symbols that aren't available, I only list the completions provided by clang + some filtering. If you have any suggestions for how to better filter or any options that should be provided to clang to suggest better completions, I'd be happy to change.
Return to Plugin Announcements
Users browsing this forum: No registered users and 6 guests