1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-06 02:41:10 +01:00

Add a C++11 rule

This commit is contained in:
mcarton 2015-05-09 20:37:13 +02:00
parent 95007220fb
commit c749615ad6

11
thefuck/rules/c++11.py Normal file
View File

@ -0,0 +1,11 @@
def match(command, settings):
return (('g++' in command.script or 'clang++' in command.script) and
('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, settings):
return command.script + ' -std=c++11'