reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
class NoOpPlugin(AsanSymbolizerPlugIn):
  def register_cmdline_args(self, parser):
    logging.info('Adding --unlikely-option-name-XXX option')
    parser.add_argument('--unlikely-option-name-XXX', type=int, default=0)

  def process_cmdline_args(self, pargs):
    logging.info('GOT --unlikely-option-name-XXX=%d', pargs.unlikely_option_name_XXX)
    return True

  def destroy(self):
    logging.info('destroy() called on NoOpPlugin')

  def filter_binary_path(self, path):
    logging.info('filter_binary_path called in NoOpPlugin')
    return path

register_plugin(NoOpPlugin())