AStyleにバックアップファイルを作らせない方法
パッチ当てないと駄目です。大した内容ではないですが以下がパッチです。(バージョン1.19で作成)
本家に送ったところ、次リリースに入れるかもだそうです。
Index: astyle_main.cpp =================================================================== --- astyle_main.cpp (revision 1) +++ astyle_main.cpp (revision 2) @@ -809,6 +809,10 @@ (*_err) << " --suffix=####\n"; (*_err) << " Append the suffix #### instead of '.orig' to original filename.\n"; (*_err) << endl;
+ (*_err) << " --suffix=none\n"; + (*_err) << " Disable the backup file.\n"; + (*_err) << " The file suffix 'none' is used, but it's removed after formatting.\n"; + (*_err) << endl;
(*_err) << " --options=####\n"; (*_err) << " Specify an options file #### to read and use.\n"; (*_err) << endl; @@ -1028,6 +1032,9 @@ out.flush(); out.close(); in.close(); + + if (_suffix.compare("none") == 0) + remove(inFileName.c_str()); } (*_err) << endl; // all files formatted }
実はblog嫌いなんだけど・・・
調べ物で検索している時にblogが引っかかるとがっかりします。
はてななんか当たると目も当てられないです。
何が嫌って情報がまとまっとらんのですYO!
でも、発信する方としては楽なんですよね・・・