commit | ec7c796de020cb5cd955aa5b26c92b1da49d6076 | [log] [tgz] |
---|---|---|
author | David Malcolm <dmalcolm@redhat.com> | Tue Nov 22 17:29:21 2022 -0500 |
committer | David Malcolm <dmalcolm@redhat.com> | Tue Nov 22 17:29:21 2022 -0500 |
tree | 6812248cc7f2b1902be630657dfea27b4a433db6 | |
parent | 64fb291c5839e1a82afb62743172b4eab1267399 [diff] |
analyzer: only look for named functions in root ns [PR107788] gcc/analyzer/ChangeLog: PR analyzer/107788 * known-function-manager.cc (known_function_manager::get_match): Don't look up fndecls by name when they're not in the root namespace. gcc/testsuite/ChangeLog: PR analyzer/107788 * g++.dg/analyzer/named-functions.C: New test. Signed-off-by: David Malcolm <dmalcolm@redhat.com>