Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-2032

S1706: Do not raise an issue for noexcept decoration of a function

    XMLWordPrintable

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: C++, Rules
    • Labels:

      Description

      The rule RSPEC-1706 is targeted at people who don't want exceptions in their code.

      But even those people have to decorate some functions with noexcept, because what code will be executed might depend on that (for instance, std::vector uses std::move_if_noexcept, so without noexcept, their code would be slower).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              loic.joly Loïc Joly
              Reporter:
              loic.joly Loïc Joly
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: