yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
build_cleaner.py File Reference

Go to the source code of this file.

Classes

class  build_cleaner.DirectorySpec
 
class  build_cleaner.CMakeSourceBlock
 

Namespaces

namespace  build_cleaner
 

Functions

 build_cleaner.load_gitignore ()
 
bool build_cleaner.is_ignored (Path path, gitignore_spec)
 
List[CMakeSourceBlockbuild_cleaner.discover_cmake_libraries ()
 
Path build_cleaner.relative_to_source (Path path)
 
int build_cleaner.parse_block (List[str] lines, int start_idx)
 
Optional[str] build_cleaner.parse_entry (str line)
 
Set[str] build_cleaner.extract_conditional_files (Path cmake_path, str variable)
 
List[str] build_cleaner.gather_expected_sources (CMakeSourceBlock block, Any gitignore_spec=None)
 
bool build_cleaner.should_ignore_path (Path path)
 
Set[str] build_cleaner.extract_includes (Path file_path)
 
Set[str] build_cleaner.extract_symbols (Path file_path)
 
List[str] build_cleaner.find_missing_headers (Path source)
 
List[str] build_cleaner.find_conditional_blocks_after (List[str] cmake_lines, int end_idx, str variable)
 
bool build_cleaner.update_cmake_block (CMakeSourceBlock block, bool dry_run, Any gitignore_spec=None)
 
Optional[Path] build_cleaner.find_self_header (Path source)
 
bool build_cleaner.has_include (Sequence[str] lines, Iterable[str] header_variants)
 
int build_cleaner.find_insert_index (List[str] lines)
 
bool build_cleaner.ensure_self_header_include (Path source, bool dry_run)
 
bool build_cleaner.add_missing_headers (Path source, bool dry_run, bool iwyu_mode)
 
Set[Path] build_cleaner.collect_source_files (List[CMakeSourceBlock] config, Any gitignore_spec=None)
 
List[CMakeSourceBlockbuild_cleaner.get_config (bool auto_discover=False)
 
int build_cleaner.run (bool dry_run, bool cmake_only, bool includes_only, bool iwyu_mode, bool auto_discover)
 
int build_cleaner.main ()
 

Variables

bool build_cleaner.HAS_PATHSPEC = True
 
 build_cleaner.PROJECT_ROOT = Path(__file__).resolve().parent.parent
 
str build_cleaner.SOURCE_ROOT = PROJECT_ROOT / "src"
 
tuple build_cleaner.SUPPORTED_EXTENSIONS = (".cc", ".c", ".cpp", ".cxx", ".mm")
 
tuple build_cleaner.HEADER_EXTENSIONS = (".h", ".hh", ".hpp", ".hxx")
 
str build_cleaner.BUILD_CLEANER_IGNORE_TOKEN = "build_cleaner:ignore"
 
dict build_cleaner.COMMON_HEADERS
 
tuple build_cleaner.STATIC_CONFIG