Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8662

Consider introducing a clang-tidy check to catch ambiguous use of FUTURE_DISPATH

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • libprocess

    Description

      Currently FUTURE_DISPATCH cannot distinguish between two dispatched functions with identical signatures, see MESOS-5886.

      As solving this issue on the implementation side seems tricky, we should investigate whether we can more quickly come up with a clang-tidy check to catch instances of such ambiguity. The general workflow seems to be

      • For every use of FUTURE_DISPATCH
        • get type of dispatched to actor
        • get signature of dispatched to function
        • iterate over methods of actor checking for possible ambiguities with the dispatched to function's signature
          • diagnose ambiguity

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bbannier Benjamin Bannier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: