aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2022-04-27 18:36:29 -0400
committerMarek Polacek <polacek@redhat.com>2022-05-02 12:25:24 -0400
commit05cd2d3f588e2ecc0fd40c08d938fd016064b04d (patch)
treeb8df8eb2532932c4120388e488885ead122ade41 /gcc/cp/cp-tree.h
parent1cb220498e1f59021dab36c39c5d726e9f070c6a (diff)
downloadgcc-05cd2d3f588e2ecc0fd40c08d938fd016064b04d.zip
gcc-05cd2d3f588e2ecc0fd40c08d938fd016064b04d.tar.gz
gcc-05cd2d3f588e2ecc0fd40c08d938fd016064b04d.tar.bz2
c++: uses_template_parms cleanups
gcc/cp/ChangeLog: * cp-tree.h (uses_template_parms): Adjust declaration. * pt.cc (uses_template_parms): Return bool. Use a RAII sentinel.
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 7217799..6de29c0 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -7312,7 +7312,7 @@ extern tree lookup_template_class (tree, tree, tree, tree,
int, tsubst_flags_t);
extern tree lookup_template_function (tree, tree);
extern tree lookup_template_variable (tree, tree);
-extern int uses_template_parms (tree);
+extern bool uses_template_parms (tree);
extern bool uses_template_parms_level (tree, int);
extern bool in_template_function (void);
extern bool need_generic_capture (void);