MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / add_warning

Method add_warning

tools/diagnostics.py:60–67  ·  view source on GitHub ↗
(self, name, enabled=True, part_of_all=True, shared=False, error=False)

Source from the content-addressed store, hash-verified

58 warnings: dict[str, dict] = {}
59
60 def add_warning(self, name, enabled=True, part_of_all=True, shared=False, error=False):
61 self.warnings[name] = {
62 'enabled': enabled,
63 'part_of_all': part_of_all,
64 # True for flags that are shared with the underlying clang driver
65 'shared': shared,
66 'error': error,
67 }
68
69 def capture_warnings(self, cmd_args):
70 for i in range(len(cmd_args)):

Callers 2

add_warningFunction · 0.80
shared.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected