145
|
1 /* Declarations for working with name_hint instances in the C++ frontend.
|
|
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
|
3 Contributed by David Malcolm <dmalcolm@redhat.com>
|
|
4
|
|
5 This file is part of GCC.
|
|
6
|
|
7 GCC is free software; you can redistribute it and/or modify
|
|
8 it under the terms of the GNU General Public License as published by
|
|
9 the Free Software Foundation; either version 3, or (at your option)
|
|
10 any later version.
|
|
11
|
|
12 GCC is distributed in the hope that it will be useful,
|
|
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15 GNU General Public License for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with GCC; see the file COPYING3. If not see
|
|
19 <http://www.gnu.org/licenses/>. */
|
|
20
|
|
21 #ifndef GCC_CP_NAME_HINT_H
|
|
22 #define GCC_CP_NAME_HINT_H
|
|
23
|
|
24 /* class name_hint is declared in c-family/name-hint.h, but due
|
|
25 to issues described in that header, we have to jump through some
|
|
26 #define hoops to be able to include it.
|
|
27
|
|
28 This header (cp/cp-name-hint.h) exists to limit the C++ frontend's
|
|
29 exposure to the issue. */
|
|
30
|
|
31 #include "c-family/name-hint.h"
|
|
32
|
|
33 extern name_hint suggest_alternatives_for (location_t, tree, bool);
|
|
34 extern name_hint suggest_alternatives_in_other_namespaces (location_t, tree);
|
|
35 extern name_hint suggest_alternative_in_explicit_scope (location_t, tree, tree);
|
|
36 extern name_hint suggest_alternative_in_scoped_enum (tree, tree);
|
|
37
|
|
38 #endif /* GCC_CP_NAME_HINT_H */
|