Loose-Info.com
Last Update 2020/10/25
TOP - 各種テスト - gcc - --help - --help={クラス|[^]修飾子}[,…] - ^

--help= ^
指定されたクラスおよび修飾子に合致するコマンドラインオプションの説明を、標準出力へ出力
指定可能な記号 ^ : 修飾子の前に付け、その意味を逆転

テスト概要

コマンド「gcc --help=warnings,^joined」の実行

実行環境

GCC-8.2.0
GNU C Library 2.28
GNU Binutils 2.31.1


コード例・出力内容中の表記

・実行例中の太字表記部分は、コマンドなどの入力された文字列を示します。
・「」や「...」の着色省略表記は、 実際のソースコードや出力内容などを省略加工した部分を示します。

動作テスト


実行結果
$ gcc --help=warnings,^joined warningsに該当するオプションの内、joinedに該当しないオプションを表示 「^」の付いた反転修飾子単独での使用は不可(出力無し) The following options control compiler warning messages: --all-warnings Same as -Wall. Use the latter option instead. --extra-warnings Same as -Wextra. Use the latter option instead. -W This switch is deprecated; use -Wextra instead. Same as -Wextra. -Wabi Warn about things that will change when compiling with an ABI-compliant compiler. -Wabi-tag Warn if a subobject has an abi_tag attribute that the complete object type does not have. -Waddress Warn about suspicious uses of memory addresses. -Wvla Warn if a variable length array is used. -Wvolatile-register-var Warn when a register variable is declared volatile. -Wwrite-strings In C++, nonzero means warn about deprecated conversion from string literals to 'char *'. In C, similar warning, except that the conversion is of course not deprecated by the ISO C standard. -Wzero-as-null-pointer-constant Warn when a literal '0' is used as null pointer. -Wzerotrip Warn about zero-trip DO loops. -frequire-return-statement Functions which return values must end with return statements. $