Skip to content

Commit 4d883f1

Browse files
committed
fix formatting
1 parent 89389a5 commit 4d883f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/docs/analyzer/checkers/storetoimmutable_example.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ void immutable_violation_examples() {
1111
const int local_const = 42;
1212
*(int *)&local_const = 43; // warn: Trying to write to immutable memory
1313

14-
// NOTE: The following is reported in C++, but not in C, as the analyzer treats
15-
// string literals as non-const char arrays in C mode.
14+
// NOTE: The following is reported in C++, but not in C, as the analyzer
15+
// treats string literals as non-const char arrays in C mode.
1616
char *ptr_to_str_literal = (char *)"hello";
1717
ptr_to_str_literal[0] = 'H'; // warn: Trying to write to immutable memory
1818

0 commit comments

Comments
 (0)