analyzer: add region::is_named_decl_p
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 7 Jan 2022 18:49:28 +0000 (13:49 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Sat, 8 Jan 2022 00:03:28 +0000 (19:03 -0500)
commitc1b7d28a5987e74232b7f054849f8bd8ccc7e7de
tree4bb86b66b24a8b4caaab9154b0ede0cb5a688c75
parent6cd51207f5732b5258e883e9030b94c987b6d696
analyzer: add region::is_named_decl_p

This patch adds a debug function that I've found handy when debugging
a problem with handling the decl "yy_buffer_stack" in PR analyzer/103546.

gcc/analyzer/ChangeLog:
* region.cc (region::is_named_decl_p): New.
* region.h (region::is_named_decl_p): New decl.

gcc/ChangeLog:
* doc/analyzer.texi (Other Debugging Techniques): Document
region::is_named_decl_p.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/region.cc
gcc/analyzer/region.h
gcc/doc/analyzer.texi