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

S5812: Update with Nested Inline Namespaces

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.20
    • Component/s: C++, Rules
    • Labels:

      Description

      See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1094r2.html

      In C++20

      namespace A::inline B::C {
        int i;
      }
      

      has the same effect as

      namespace A {
        inline namespace B {
          namespace C {
            int i;
          } 
        }
      }
      

      So probably RSPEC-5812 can be extended.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              amelie.renard Amélie Renard
              Reporter:
              evgeny.mandrikov Evgeny Mandrikov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: