Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-923 Functions should not be defined with a variable number of arguments
  3. RSPEC-4376

C-Family: Functions should not be defined with a variable number of arguments

    XMLWordPrintable

    Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity
    • Default Quality Profiles:
      Sonar way, MISRA C++ 2008 recommended
    • Legacy Key:
      FunctionEllipsis

      Description

      See

      • MISRA C:2004, 16.1 - Functions shall not be defined with a variable number of arguments.
      • MISRA C++:2008, 8-4-1 - Functions shall not be defined using the ellipsis notation.
      • CERT, DCL50-CPP. - Do not define a C-style variadic function
      • C++ Core Guidelines ES.34 Don't define a (C-style) variadic function
      • C++ Core Guidelines F.55 Don't use va_arg arguments

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            massimo.paladin Massimo PALADIN
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: