Enum(warn_trailing_whitespace_kind) String(none) Value(0)
EnumValue
-Enum(warn_trailing_whitespace_kind) String(blank) Value(1)
+Enum(warn_trailing_whitespace_kind) String(blanks) Value(1)
EnumValue
-Enum(warn_trailing_whitespace_kind) String(space) Value(2)
+Enum(warn_trailing_whitespace_kind) String(any) Value(2)
Wtrailing-whitespace=
C ObjC C++ ObjC++ CPP(cpp_warn_trailing_whitespace) CppReason(CPP_W_TRAILING_WHITESPACE) Enum(warn_trailing_whitespace_kind) Joined RejectNegative Var(warn_trailing_whitespace) Init(0) Warning
Warn about trailing whitespace on lines except when in raw string literals.
Wtrailing-whitespace
-C ObjC C++ ObjC++ Alias(Wtrailing-whitespace=,blank,none) Warning
-Warn about trailing whitespace on lines except when in raw string literals. Equivalent to Wtrailing-whitespace=blank when enabled or Wtrailing-whitespace=none when disabled.
+C ObjC C++ ObjC++ Alias(Wtrailing-whitespace=,blanks,none) Warning
+Warn about trailing whitespace on lines except when in raw string literals. Equivalent to Wtrailing-whitespace=blanks when enabled or Wtrailing-whitespace=none when disabled.
Wtrigraphs
C ObjC C++ ObjC++ CPP(warn_trigraphs) CppReason(CPP_W_TRIGRAPHS) Var(cpp_warn_trigraphs) Init(2) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
Warn about trailing whitespace at the end of lines, including inside of
comments, but excluding trailing whitespace in raw string literals.
@code{-Wtrailing-whitespace} is equivalent to
-@code{-Wtrailing-whitespace=blank} and warns just about trailing space and
-horizontal tab characters. @code{-Wtrailing-whitespace=space} warns about
+@code{-Wtrailing-whitespace=blanks} and warns just about trailing space and
+horizontal tab characters. @code{-Wtrailing-whitespace=any} warns about
those or trailing form feed or vertical tab characters.
@code{-Wno-trailing-whitespace} or @code{-Wtrailing-whitespace=none}
disables the warning, which is the default.
/* { dg-do compile { target { c || c++11 } } } */
-/* { dg-options "-Wtrailing-whitespace=blank" } */
+/* { dg-options "-Wtrailing-whitespace=blanks" } */
int i;
/* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
/* { dg-do compile { target { c || c++11 } } } */
-/* { dg-options "-Wtrailing-whitespace=space" } */
+/* { dg-options "-Wtrailing-whitespace=any" } */
int i;
/* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
/* This test uses intentionally DOS line endings (CR+LF). */\r
/* { dg-do compile { target { c || c++11 } } } */\r
-/* { dg-options "-Wtrailing-whitespace=blank" } */\r
+/* { dg-options "-Wtrailing-whitespace=blanks" } */\r
\r
int i; \r
/* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */\r
/* This test uses intentionally DOS line endings (CR+LF). */\r
/* { dg-do compile { target { c || c++11 } } } */\r
-/* { dg-options "-Wtrailing-whitespace=space" } */\r
+/* { dg-options "-Wtrailing-whitespace=any" } */\r
\r
int i; \r
/* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */\r