From 7e929b783139ff176a91c3d4826c6e3b8afe02ee Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Mon, 28 Jan 2013 10:00:15 -0800 Subject: [PATCH] clang_completer debug info now shows file flags --- python/completers/cpp/clang_completer.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/completers/cpp/clang_completer.py b/python/completers/cpp/clang_completer.py index f75b82bf..51763000 100644 --- a/python/completers/cpp/clang_completer.py +++ b/python/completers/cpp/clang_completer.py @@ -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