Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1int global_variable = 3;
2__thread int tls_variable = 33;
3
4int this_is_a_library_function() {
5 return 42;
6}
7

After

1int global_variable = 3;
2__thread int tls_variable = 33;
3const long const_array[] = {795, 906};
4const char *const_string = "sums of three cubes";
5
6int this_is_a_library_function() {
7 return 42;
8}
9

Before

translation_unit
declaration
primitive_type "int"
init_declarator
identifier "global_variable"
= "="
number_literal "3"
; ";"
declaration
storage_class_specifier
__thread "__thread"
primitive_type "int"
init_declarator
identifier "tls_variable"
= "="
number_literal "33"
; ";"
function_definition
primitive_type "int"
function_declarator
identifier "this_is_a_library_function"
parameter_list
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
number_literal "42"
; ";"
} "}"

After

translation_unit
declaration
primitive_type "int"
init_declarator
identifier "global_variable"
= "="
number_literal "3"
; ";"
declaration
storage_class_specifier
__thread "__thread"
primitive_type "int"
init_declarator
identifier "tls_variable"
= "="
number_literal "33"
; ";"
declaration
type_qualifier
const "const"
sized_type_specifier
long "long"
init_declarator
array_declarator
identifier "const_array"
[ "["
] "]"
= "="
initializer_list
{ "{"
number_literal "795"
, ","
number_literal "906"
} "}"
; ";"
declaration
type_qualifier
const "const"
primitive_type "char"
init_declarator
pointer_declarator
* "*"
identifier "const_string"
= "="
string_literal
" "\""
string_content "sums of three cubes"
" "\""
; ";"
function_definition
primitive_type "int"
function_declarator
identifier "this_is_a_library_function"
parameter_list
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
number_literal "42"
; ";"
} "}"