rspec/rules/S3547/cfamily/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

49 lines
950 B
Plaintext

== Why is this an issue?
{cpp}11 improves the specification of the parser so that at the end of a template, multiple ``++>++``s will be interpreted as closing the template argument list rather than as the right shift operator or stream extraction operator. It is no longer required to place a space between the two ``++>++``s.
This rule raises an issue when such useless spaces exist.
=== Noncompliant code example
[source,cpp]
----
vector<pair<int,int> > s; // Noncompliant
----
=== Compliant solution
[source,cpp]
----
vector<pair<int,int>> s;
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Remove the space between the two right angle brackets.
=== Highlighting
space(s)
'''
== Comments And Links
(visible only on this page)
=== on 2 Mar 2016, 17:34:43 Ann Campbell wrote:
Double-check my changes please [~alban.auzeill]
endif::env-github,rspecator-view[]