1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00
thefuck/thefuck/rules/cpp11.py
2015-10-28 15:27:10 +01:00

13 lines
338 B
Python

from thefuck.utils import for_app
@for_app('g++', 'clang++')
def match(command):
return ('This file requires compiler and library support for the '
'ISO C++ 2011 standard.' in command.stderr or
'-Wc++11-extensions' in command.stderr)
def get_new_command(command):
return command.script + ' -std=c++11'