]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/analyzer/call-details.cc
analyzer: split out more stuff from region-model-impl-calls.cc
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 6 Dec 2022 18:26:56 +0000 (13:26 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 6 Dec 2022 18:26:56 +0000 (13:26 -0500)
commit861c917a972dc90beff7fa5c23a013261894e6a4
tree3b38c877d395f7106a0ceec21d7e549dfdcedf7c
parent81476bc4f4a20bcf3af7ac2548c2322d48499402
analyzer: split out more stuff from region-model-impl-calls.cc

gcc/ChangeLog:
* Makefile.in (ANALYZER_OBJS): Add analyzer/call-details.o,
analyzer/kf-analyzer.o, and kf-lang-cp.o.

gcc/analyzer/ChangeLog:
* analyzer.h (register_known_analyzer_functions): New decl.
(register_known_functions_lang_cp): New decl.
* call-details.cc: New file, split out from
region-model-impl-calls.cc.
* call-details.h: New file, split out from region-model.h.
* call-info.cc: Include "analyzer/call-details.h".
* call-summary.h: Likewise.
* kf-analyzer.cc: New file, split out from
region-model-impl-calls.cc.
* kf-lang-cp.cc: Likewise.
* known-function-manager.cc: Include "analyzer/call-details.h".
* region-model-impl-calls.cc: Move definitions of call_details's
member functions to call-details.cc.  Move class kf_analyzer_* to
kf-analyzer.cc.  Move kf_operator_new and kf_operator_delete to
kf-lang-cp.cc.  Refresh #includes accordingly.
(register_known_functions): Replace registration of __analyzer_*
functions with a call to register_known_analyzer_functions.
Replace registration of C++ support functions with a call to
register_known_functions_lang_cp.
* region-model.h (class call_details): Move to new call-details.h.
* sm-fd.cc: Include "analyzer/call-details.h".
* sm-file.cc: Likewise.
* sm-malloc.cc: Likewise.
* varargs.cc: Likewise.

gcc/testsuite/ChangeLog:
* gcc.dg/plugin/analyzer_kernel_plugin.c: Include
"analyzer/call-details.h".
* gcc.dg/plugin/analyzer_known_fns_plugin.c: Likewise.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
17 files changed:
gcc/Makefile.in
gcc/analyzer/analyzer.h
gcc/analyzer/call-details.cc [new file with mode: 0644]
gcc/analyzer/call-details.h [new file with mode: 0644]
gcc/analyzer/call-info.cc
gcc/analyzer/call-summary.h
gcc/analyzer/kf-analyzer.cc [new file with mode: 0644]
gcc/analyzer/kf-lang-cp.cc [new file with mode: 0644]
gcc/analyzer/known-function-manager.cc
gcc/analyzer/region-model-impl-calls.cc
gcc/analyzer/region-model.h
gcc/analyzer/sm-fd.cc
gcc/analyzer/sm-file.cc
gcc/analyzer/sm-malloc.cc
gcc/analyzer/varargs.cc
gcc/testsuite/gcc.dg/plugin/analyzer_kernel_plugin.c
gcc/testsuite/gcc.dg/plugin/analyzer_known_fns_plugin.c