Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / gcc-rich-location.h
blobfd332deb473c690678bd61705e7447b504483290
1 /* Declarations relating to class gcc_rich_location
2 Copyright (C) 2014-2016 Free Software Foundation, Inc.
4 This file is part of GCC.
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.
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.
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/>. */
20 #ifndef GCC_RICH_LOCATION_H
21 #define GCC_RICH_LOCATION_H
23 /* A gcc_rich_location is libcpp's rich_location with additional
24 helper methods for working with gcc's types. */
25 class gcc_rich_location : public rich_location
27 public:
28 /* Constructors. */
30 /* Constructing from a location. */
31 gcc_rich_location (source_location loc) :
32 rich_location (line_table, loc) {}
34 /* Constructing from a source_range. */
35 gcc_rich_location (source_range src_range) :
36 rich_location (src_range) {}
39 /* Methods for adding ranges via gcc entities. */
40 void
41 add_expr (tree expr);
43 void
44 maybe_add_expr (tree t);
47 #endif /* GCC_RICH_LOCATION_H */