GCC Middle and Back End API Reference
column-options.h
Go to the documentation of this file.
1
/* Options relating to the meaning of column numbers.
2
Copyright (C) 2000-2025 Free Software Foundation, Inc.
3
4
This file is part of GCC.
5
6
GCC is free software; you can redistribute it and/or modify it under
7
the terms of the GNU General Public License as published by the Free
8
Software Foundation; either version 3, or (at your option) any later
9
version.
10
11
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with GCC; see the file COPYING3. If not see
18
<http://www.gnu.org/licenses/>. */
19
20
#ifndef GCC_DIAGNOSTICS_COLUMN_OPTIONS_H
21
#define GCC_DIAGNOSTICS_COLUMN_OPTIONS_H
22
23
namespace
diagnostics
{
24
25
/* A bundle of options relating to the meaning of column numbers. */
26
27
struct
column_options
28
{
29
int
convert_column
(
file_cache
&fc,
30
expanded_location s)
const
;
31
32
/* What units to use when outputting the column number. */
33
enum
diagnostics_column_unit
m_column_unit
;
34
35
/* The origin for the column number (1-based or 0-based typically). */
36
int
m_column_origin
;
37
38
/* The size of the tabstop for tab expansion. */
39
int
m_tabstop
;
40
};
41
42
}
// namespace diagnostics
43
44
#endif
/* ! GCC_DIAGNOSTICS_COLUMN_OPTIONS_H */
diagnostics::file_cache
Definition
file-cache.h:82
diagnostics_column_unit
diagnostics_column_unit
Definition
context-options.h:29
diagnostics
Definition
coretypes.h:167
diagnostics::column_options
Definition
column-options.h:28
diagnostics::column_options::m_column_origin
int m_column_origin
Definition
column-options.h:36
diagnostics::column_options::m_tabstop
int m_tabstop
Definition
column-options.h:39
diagnostics::column_options::m_column_unit
enum diagnostics_column_unit m_column_unit
Definition
column-options.h:33
diagnostics::column_options::convert_column
int convert_column(file_cache &fc, expanded_location s) const
Definition
diagnostics/context.cc:770
gcc
diagnostics
column-options.h
Generated by
1.14.0