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

1// Protocol Buffers - Google's data interchange format
2// Copyright 2024 Google LLC. All rights reserved.
3//
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file or at
6// https://developers.google.com/open-source/licenses/bsd
7
8#include "hpb/extension.h"
9
10#include "upb/mini_table/extension_registry.h"
11
12namespace hpb {
13namespace internal {
14upb_ExtensionRegistry* GetUpbExtensions(
15 const ExtensionRegistry& extension_registry) {
16 return extension_registry.registry_;
17}
18
19} // namespace internal
20} // namespace hpb
21

After

1// Protocol Buffers - Google's data interchange format
2// Copyright 2024 Google LLC. All rights reserved.
3//
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file or at
6// https://developers.google.com/open-source/licenses/bsd
7
8#include "hpb/extension.h"
9
10#include "hpb/multibackend.h"
11
12#if HPB_INTERNAL_BACKEND == HPB_INTERNAL_BACKEND_UPB
13#include "upb/mini_table/extension_registry.h"
14
15namespace hpb {
16namespace internal {
17upb_ExtensionRegistry* GetUpbExtensions(
18 const ExtensionRegistry& extension_registry) {
19 return extension_registry.registry_;
20}
21} // namespace internal
22} // namespace hpb
23#endif
24

Before

translation_unit
comment "// Protocol Buffers - Google's data interchange format"
comment "// Copyright 2024 Google LLC. All rights reserved."
comment "//"
comment "// Use of this source code is governed by a BSD-style"
comment "// license that can be found in the LICENSE file or at"
comment "// https://developers.google.com/open-source/licenses/bsd"
preproc_include
#include "#include"
string_literal
" "\""
string_content "hpb/extension.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "upb/mini_table/extension_registry.h"
" "\""
namespace_definition (+39 nodes collapsed)
comment "// namespace hpb"

After

translation_unit
comment "// Protocol Buffers - Google's data interchange format"
comment "// Copyright 2024 Google LLC. All rights reserved."
comment "//"
comment "// Use of this source code is governed by a BSD-style"
comment "// license that can be found in the LICENSE file or at"
comment "// https://developers.google.com/open-source/licenses/bsd"
preproc_include
#include "#include"
string_literal
" "\""
string_content "hpb/extension.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "hpb/multibackend.h"
" "\""
preproc_if
#if "#if"
binary_expression
identifier "HPB_INTERNAL_BACKEND"
== "=="
identifier "HPB_INTERNAL_BACKEND_UPB"
"\n"
preproc_include
#include "#include"
string_literal
" "\""
string_content "upb/mini_table/extension_registry.h"
" "\""
namespace_definition (+39 nodes collapsed)
comment "// namespace hpb"
#endif "#endif"