diff --git a/cpp/ycm/.ycm_clang_options.py b/cpp/ycm/.ycm_clang_options.py index fd79805b..73a36fa4 100644 --- a/cpp/ycm/.ycm_clang_options.py +++ b/cpp/ycm/.ycm_clang_options.py @@ -43,8 +43,7 @@ def MakeAbsoluteIfRelativePath( path ): def FlagsForFile( filename ): - results = {} - results[ 'flags' ] = [ MakeAbsoluteIfRelativePath( x ) for x in flags ] - results[ 'do_cache' ] = True - return results - + return { + 'flags': [ MakeAbsoluteIfRelativePath( x ) for x in flags ], + 'do_cache': True + }