clang_completer debug info now shows file flags

This commit is contained in:
Strahinja Val Markovic 2013-01-28 10:00:15 -08:00
parent 9b3e009ed1
commit 7e929b7831

View File

@ -182,6 +182,12 @@ class ClangCompleter( Completer ):
return ShouldUseClang( start_column )
def DebugInfo( self ):
filename = vim.current.buffer.name
flags = self.flags.FlagsForFile( filename )
return 'Flags for {0}:\n{1}'.format( filename, list(flags) )
# TODO: make these functions module-local
def CompletionDataToDict( completion_data ):
# see :h complete-items for a description of the dictionary fields