Merge branch 'C++11' of git://github.com/mcarton/thefuck into mcarton-C++11

This commit is contained in:
nvbn
2015-05-10 09:33:49 +02:00
2 changed files with 12 additions and 0 deletions
+11
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'