Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
find-null-checks.py File Reference

Data Structures

class  find-null-checks.ReplEq
 
class  find-null-checks.ReplNeq
 
class  find-null-checks.ReplNot
 
class  find-null-checks.ReplNotVar
 

Namespaces

namespace  find-null-checks
 

Functions

str find-null-checks.rewrite_condition (str cond)
 
 find-null-checks.get_text (src, extent)
 
 find-null-checks.find_decl_in_cursor (cursor, name, visited=None)
 
 find-null-checks.is_pointer_decl (decl)
 
 find-null-checks.collect_decls (root)
 
 find-null-checks.collect_decl_refs (n, call_refs)
 
 find-null-checks.collect_calls (n, call_refs)
 
 find-null-checks.collect_call_extents (n, call_extents)
 
 find-null-checks.collect_call_args (n, call_args_names)
 
 find-null-checks.node_text (src_bytes, node)
 
bool find-null-checks._pos_in_string (str s, int pos)
 
 find-null-checks.find_literal_ranges (str text)
 
bool find-null-checks.is_pos_in_literal (int pos, lit_ranges)
 
 find-null-checks.find_call_arg_ranges (str text, lit_ranges)
 
bool find-null-checks.is_pos_in_call_args (int pos, call_ranges)
 
str find-null-checks.transform_condition (str cond_text, list pointer_vars)
 
 find-null-checks.collect_ast_replacements (cond_node, src_bytes)
 
 find-null-checks.collect_call_args_tokens (cond_node)
 
 find-null-checks._rewrite_token_repl (m)
 
 find-null-checks._collect_ast_walk (n, parent, tu, src_bytes, edits)
 
 find-null-checks.process_if (node, src_bytes, path, edits)
 
 find-null-checks.process_file (path)
 
 find-null-checks.visit (node, src_bytes, path, edits)
 
 find-null-checks.process_folder (folder)
 

Variables

dict find-null-checks.EXTS = {".c", ".h", ".cpp", ".hpp"}
 
str find-null-checks.NULL_NAME = "NULL"
 
dict find-null-checks._global_decls_cache = {}