|
GCC Middle and Back End API Reference
|
#include <tristate.h>
Public Types | |
| enum | value { TS_UNKNOWN , TS_TRUE , TS_FALSE } |
Public Member Functions | |
| tristate (enum value val) | |
| tristate (bool val) | |
| const char * | as_string () const |
| bool | is_known () const |
| bool | is_unknown () const |
| bool | is_true () const |
| bool | is_false () const |
| tristate | not_ () const |
| tristate | or_ (tristate other) const |
| tristate | and_ (tristate other) const |
| bool | operator== (const tristate &other) const |
| bool | operator!= (const tristate &other) const |
| enum value | get_value () const |
Static Public Member Functions | |
| static tristate | unknown () |
Private Attributes | |
| enum value | m_value |
"True" vs "False" vs "Unknown". Copyright (C) 2019-2026 Free Software Foundation, Inc. Contributed by David Malcolm <dmalcolm@redhat.com>. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
"True" vs "False" vs "Unknown".
| enum tristate::value |
|
inline |
References m_value.
Referenced by and_(), diagnostics::digraphs::object::get_property_as_tristate(), not_(), operator!=(), operator==(), or_(), and unknown().
References gcc_unreachable, m_value, tristate(), TS_FALSE, TS_TRUE, and TS_UNKNOWN.
| const char * tristate::as_string | ( | ) | const |
"True" vs "False" vs "Unknown". Copyright (C) 2019-2026 Free Software Foundation, Inc. Contributed by David Malcolm <dmalcolm@redhat.com>. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
References gcc_unreachable, m_value, TS_FALSE, TS_TRUE, and TS_UNKNOWN.
|
inline |
References m_value, and TS_UNKNOWN.
|
inline |
References m_value, and TS_UNKNOWN.
| tristate tristate::not_ | ( | ) | const |
References gcc_unreachable, m_value, tristate(), TS_FALSE, TS_TRUE, and TS_UNKNOWN.
Referenced by operator!().
References m_value, and tristate().
References m_value, and tristate().
References gcc_unreachable, m_value, tristate(), TS_FALSE, TS_TRUE, and TS_UNKNOWN.
|
inlinestatic |
References tristate(), and TS_UNKNOWN.
Referenced by diagnostics::digraphs::object::get_property_as_tristate().
|
private |
Referenced by and_(), as_string(), get_value(), is_false(), is_known(), is_true(), is_unknown(), not_(), operator!=(), operator==(), or_(), tristate(), and tristate().