bpo-36876: Make sure the c-analyzer is checking all the source files.… · python/cpython@80e4f26
@@ -106,6 +106,28 @@ Objects/unionobject.c - _Py_UnionType -
106106Objects/weakrefobject.c - _PyWeakref_CallableProxyType -
107107Objects/weakrefobject.c - _PyWeakref_ProxyType -
108108Objects/weakrefobject.c - _PyWeakref_RefType -
109+Python/bltinmodule.c - PyFilter_Type -
110+Python/bltinmodule.c - PyMap_Type -
111+Python/bltinmodule.c - PyZip_Type -
112+Python/context.c - PyContextToken_Type -
113+Python/context.c - PyContextVar_Type -
114+Python/context.c - PyContext_Type -
115+Python/context.c - _PyContextTokenMissing_Type -
116+Python/errors.c - UnraisableHookArgsType -
117+Python/hamt.c - _PyHamtItems_Type -
118+Python/hamt.c - _PyHamtKeys_Type -
119+Python/hamt.c - _PyHamtValues_Type -
120+Python/hamt.c - _PyHamt_ArrayNode_Type -
121+Python/hamt.c - _PyHamt_BitmapNode_Type -
122+Python/hamt.c - _PyHamt_CollisionNode_Type -
123+Python/hamt.c - _PyHamt_Type -
124+Python/symtable.c - PySTEntry_Type -
125+Python/sysmodule.c - AsyncGenHooksType -
126+Python/sysmodule.c - FlagsType -
127+Python/sysmodule.c - Hash_InfoType -
128+Python/sysmodule.c - VersionInfoType -
129+Python/thread.c - ThreadInfoType -
130+Python/traceback.c - PyTraceBack_Type -
109131110132#-----------------------
111133# builtin exception types
@@ -306,12 +328,20 @@ Python/compile.c compiler_visit_annotations return_str -
306328Python/import.c PyImport_Import builtins_str -
307329# XXX This should have been found by the analyzer but wasn't:
308330Python/import.c PyImport_Import import_str -
331+Python/symtable.c - __class__ -
332+Python/symtable.c - _annotation -
333+Python/symtable.c - dictcomp -
334+Python/symtable.c - genexpr -
335+Python/symtable.c - lambda -
336+Python/symtable.c - listcomp -
337+Python/symtable.c - setcomp -
338+Python/symtable.c - top -
309339# XXX This should have been found by the analyzer but wasn't:
310340Python/sysmodule.c - whatstrings -
311341# XXX This should have been found by the analyzer but wasn't:
312342Python/sysmodule.c sys_displayhook newline -
313343314-# _PyArg_Parser
344+# _PyArg_Parser (holds tuple of strings)
315345Objects/clinic/bytearrayobject.c.h bytearray___init__ _parser -
316346Objects/clinic/bytearrayobject.c.h bytearray_decode _parser -
317347Objects/clinic/bytearrayobject.c.h bytearray_hex _parser -
@@ -367,6 +397,9 @@ Python/clinic/sysmodule.c.h sys_addaudithook _parser -
367397Python/clinic/sysmodule.c.h sys_set_coroutine_origin_tracking_depth _parser -
368398Python/clinic/traceback.c.h tb_new _parser -
369399400+# holds strings
401+Objects/typeobject.c - slotdefs -
402+370403# other
371404Objects/typeobject.c - method_cache -
372405Objects/unicodeobject.c - _string_module -
@@ -400,29 +433,73 @@ Python/import.c - extensions -
400433# global non-objects to fix in core code
401434402435#-----------------------
403-# initialized once
436+# initialized/set once
404437405438# pre-allocated buffer
406439Modules/getbuildinfo.c Py_GetBuildInfo buildinfo -
407440408441# during init
442+Objects/typeobject.c - slotdefs_initialized -
443+Objects/unicodeobject.c - bloom_linebreak -
409444Parser/parser.c - Py_DebugFlag -
410-411-# other
412-Objects/codeobject.c PyCode_NewEmpty nulltuple -
445+Python/bootstrap_hash.c - _Py_HashSecret_Initialized -
446+Python/bootstrap_hash.c py_getrandom getrandom_works -
447+Python/pyhash.c - _Py_HashSecret -
448+Python/pylifecycle.c - runtime_initialized -
449+Python/sysmodule.c - _PySys_ImplCacheTag -
450+Python/sysmodule.c - _PySys_ImplName -
451+Python/sysmodule.c - _preinit_warnoptions -
452+Python/sysmodule.c - _preinit_xoptions -
453+Python/thread.c - thread_debug -
454+Python/thread.c - initialized -
455+456+# lazy
457+Objects/floatobject.c - double_format -
458+Objects/floatobject.c - float_format -
459+Objects/floatobject.c - detected_double_format -
460+Objects/floatobject.c - detected_float_format -
413461Objects/longobject.c PyLong_FromString log_base_BASE -
414462Objects/longobject.c PyLong_FromString convwidth_base -
415463Objects/longobject.c PyLong_FromString convmultmax_base -
416-Objects/typeobject.c - slotdefs -
417-Objects/typeobject.c - slotdefs_initialized -
418-Objects/unicodeobject.c - bloom_linebreak -
419464Objects/unicodeobject.c - ucnhash_capi -
420465Parser/action_helpers.c _PyPegen_dummy_name cache -
421-Parser/pegen.c _PyPegen_dummy_name cache -
466+Python/dtoa.c - p5s -
467+Python/fileutils.c - force_ascii -
468+Python/fileutils.c set_inheritable ioctl_works -
422469# XXX This should have been found by the analyzer but wasn't:
423470Python/import.c - import_lock -
424471# XXX This should have been found by the analyzer but wasn't:
425472Python/import.c import_find_and_load header -
473+Python/specialize.c - _list_append -
474+475+#-----------------------
476+# unlikely to change after init (or main thread)
477+478+# through C-API
479+Python/frozen.c - PyImport_FrozenModules -
480+Python/frozen.c - _PyImport_FrozenAliases -
481+Python/frozen.c - _PyImport_FrozenBootstrap -
482+Python/frozen.c - _PyImport_FrozenStdlib -
483+Python/frozen.c - _PyImport_FrozenTest -
484+Python/import.c - inittab_copy -
485+Python/import.c - PyImport_Inittab -
486+Python/preconfig.c - Py_FileSystemDefaultEncoding -
487+Python/preconfig.c - Py_HasFileSystemDefaultEncoding -
488+Python/preconfig.c - Py_FileSystemDefaultEncodeErrors -
489+Python/preconfig.c - _Py_HasFileSystemDefaultEncodeErrors -
490+491+# REPL
492+Parser/myreadline.c - _PyOS_ReadlineLock -
493+Parser/myreadline.c - _PyOS_ReadlineTState -
494+Parser/myreadline.c - PyOS_InputHook -
495+Parser/myreadline.c - PyOS_ReadlineFunctionPointer -
496+497+# handling C argv
498+Python/getopt.c - _PyOS_optarg -
499+Python/getopt.c - _PyOS_opterr -
500+Python/getopt.c - _PyOS_optind -
501+Python/getopt.c - opt_ptr -
502+Python/pathconfig.c - _Py_path_config -
426503427504#-----------------------
428505# state
@@ -444,20 +521,22 @@ Objects/obmalloc.c - unused_arena_objects -
444521Objects/obmalloc.c - usable_arenas -
445522Objects/obmalloc.c new_arena debug_stats -
446523447-# REPL
448-Parser/myreadline.c - _PyOS_ReadlineLock -
449-Parser/myreadline.c - _PyOS_ReadlineTState -
450-Parser/myreadline.c - PyOS_InputHook -
451-Parser/myreadline.c - PyOS_ReadlineFunctionPointer -
524+# pre-allocated memory
525+Python/dtoa.c - freelist -
526+Python/dtoa.c - private_mem -
527+528+# local buffer
529+Python/getversion.c Py_GetVersion version -
530+Python/suggestions.c levenshtein_distance buffer -
531+532+# linked list
533+Python/dtoa.c - pmem_next -
534+Python/getargs.c - static_arg_parsers -
452535453536# other
454537Objects/dictobject.c - _pydict_global_version -
455538Objects/dictobject.c - next_dict_keys_version -
456539Objects/dictobject.c - pydict_global_version -
457-Objects/floatobject.c - double_format -
458-Objects/floatobject.c - float_format -
459-Objects/floatobject.c - detected_double_format -
460-Objects/floatobject.c - detected_float_format -
461540Objects/funcobject.c - next_func_version -
462541Objects/moduleobject.c - max_module_number -
463542Objects/object.c - _Py_RefTotal -
@@ -480,10 +559,14 @@ Python/import.c - import_lock_thread -
480559Python/import.c import_find_and_load accumulated -
481560# XXX This should have been found by the analyzer but wasn't:
482561Python/import.c import_find_and_load import_level -
562+Python/modsupport.c - _Py_PackageContext -
563+Python/pyfpe.c - PyFPE_counter -
564+Python/pylifecycle.c _Py_FatalErrorFormat reentrant -
483565# XXX This should have been found by the analyzer but wasn't:
484566Python/pylifecycle.c - _Py_UnhandledKeyboardInterrupt -
485567# XXX This should have been found by the analyzer but wasn't:
486568Python/pylifecycle.c fatal_error reentrant -
569+Python/specialize.c - _Py_QuickenedCount -
487570488571489572##################################