Skip to content

S817 Remove diff highlighting from example #5144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rules/S817/cfamily/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Therefore, only string literals with the same prefix should be concatenated toge

=== Noncompliant code example

[source,cpp,diff-id=1,diff-type=noncompliant]
[source,cpp]
----
wchar_t n_array[] = "Hello" L"World"; // Noncompliant
wchar_t w_array[] = L"Hello" "World"; // Noncompliant
Expand All @@ -23,7 +23,7 @@ auto mixed3 = u8"Hello" u"World"; // Noncompliant

=== Compliant solution

[source,cpp,diff-id=1,diff-type=compliant]
[source,cpp]
----
char n_array[] = "Hello" "World"; // Compliant
wchar_t w_array[] = L"Hello" L"World"; // Compliant
Expand Down
Loading