diff options
author | David Malcolm <dmalcolm@redhat.com> | 2023-06-23 21:18:15 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2023-06-23 21:18:15 -0400 |
commit | b2e075a594e93a4fc89de8fa53db5c32a4de83b5 (patch) | |
tree | 6445e0708abe125be290064589d135c534d8c064 /gcc/text-art/box-drawing.cc | |
parent | d39f4889cc24c5c96cf9112045298e0945b9932c (diff) | |
download | gcc-b2e075a594e93a4fc89de8fa53db5c32a4de83b5.zip gcc-b2e075a594e93a4fc89de8fa53db5c32a4de83b5.tar.gz gcc-b2e075a594e93a4fc89de8fa53db5c32a4de83b5.tar.bz2 |
text-art: remove explicit #include of C++ standard library headers
gcc/analyzer/ChangeLog:
* access-diagram.cc: Add #define INCLUDE_VECTOR.
* bounds-checking.cc: Likewise.
gcc/ChangeLog:
* diagnostic-format-sarif.cc: Add #define INCLUDE_VECTOR.
* diagnostic.cc: Likewise.
* text-art/box-drawing.cc: Likewise.
* text-art/canvas.cc: Likewise.
* text-art/ruler.cc: Likewise.
* text-art/selftests.cc: Likewise.
* text-art/selftests.h (text_art::canvas): New forward decl.
* text-art/style.cc: Add #define INCLUDE_VECTOR.
* text-art/styled-string.cc: Likewise.
* text-art/table.cc: Likewise.
* text-art/table.h: Remove #include <vector>.
* text-art/theme.cc: Add #define INCLUDE_VECTOR.
* text-art/types.h: Check that INCLUDE_VECTOR is defined.
Remove #include of <vector> and <string>.
* text-art/widget.cc: Add #define INCLUDE_VECTOR.
* text-art/widget.h: Remove #include <vector>.
gcc/testsuite/ChangeLog:
* gcc.dg/plugin/diagnostic_plugin_test_text_art.c: Add
#define INCLUDE_VECTOR.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/text-art/box-drawing.cc')
-rw-r--r-- | gcc/text-art/box-drawing.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/text-art/box-drawing.cc b/gcc/text-art/box-drawing.cc index 981d0b0..7d49921 100644 --- a/gcc/text-art/box-drawing.cc +++ b/gcc/text-art/box-drawing.cc @@ -19,6 +19,7 @@ along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ #include "config.h" +#define INCLUDE_VECTOR #include "system.h" #include "coretypes.h" #include "text-art/box-drawing.h" |