1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

#179 /c++1/cpp11/s

This commit is contained in:
nvbn 2015-05-10 09:35:02 +02:00
parent 62c605d0ac
commit 6cdc2c27fb
2 changed files with 2 additions and 4 deletions

View File

@ -141,7 +141,7 @@ The Fuck tries to match rule for the previous command, create new command
using matched rule and run it. Rules enabled by default:
* `brew_unknown_command` – fixes wrong brew commands, for example `brew docto/brew doctor`;
* `c++11` – add missing `-std=c++11` to `g++` or `clang++`;
* `cpp11` – add missing `-std=c++11` to `g++` or `clang++`;
* `cd_parent` – changes `cd..` to `cd ..`;
* `cd_mkdir` – creates directories before cd'ing into them;
* `cp_omitting_directory` – adds `-a` when you `cp` directory;

View File

@ -2,9 +2,7 @@ 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
)
)
'-Wc++11-extensions' in command.stderr))
def get_new_command(command, settings):