Skip to content

Commit 3358286

Browse files
derekmaurocopybara-github
authored andcommitted
Fix LINT.IfChange syntax
PiperOrigin-RevId: 654745969 Change-Id: I96b9797c0fb91cf22e5a50ef97223216683d4ec7
1 parent 3cb4988 commit 3358286

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

absl/strings/internal/cord_internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ struct CordRep {
259259
// on the specific layout of these fields. Notably: the non-trivial field
260260
// `refcount` being preceded by `length`, and being tailed by POD data
261261
// members only.
262-
// # LINT.IfChange
262+
// LINT.IfChange
263263
size_t length;
264264
RefcountAndFlags refcount;
265265
// If tag < FLAT, it represents CordRepKind and indicates the type of node.
@@ -275,7 +275,7 @@ struct CordRep {
275275
// allocate room for these in the derived class, as not all compilers reuse
276276
// padding space from the base class (clang and gcc do, MSVC does not, etc)
277277
uint8_t storage[3];
278-
// # LINT.ThenChange(cord_rep_btree.h:copy_raw)
278+
// LINT.ThenChange(cord_rep_btree.h:copy_raw)
279279

280280
// Returns true if this instance's tag matches the requested type.
281281
constexpr bool IsSubstring() const { return tag == SUBSTRING; }

absl/strings/internal/cord_rep_btree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,14 +684,14 @@ inline CordRepBtree* CordRepBtree::CopyRaw(size_t new_length) const {
684684
// except `refcount` is trivially copyable, and the compiler does not
685685
// efficiently coalesce member-wise copy of these members.
686686
// See https://gcc.godbolt.org/z/qY8zsca6z
687-
// # LINT.IfChange(copy_raw)
687+
// LINT.IfChange(copy_raw)
688688
tree->length = new_length;
689689
uint8_t* dst = &tree->tag;
690690
const uint8_t* src = &tag;
691691
const ptrdiff_t offset = src - reinterpret_cast<const uint8_t*>(this);
692692
memcpy(dst, src, sizeof(CordRepBtree) - static_cast<size_t>(offset));
693693
return tree;
694-
// # LINT.ThenChange()
694+
// LINT.ThenChange()
695695
}
696696

697697
inline CordRepBtree* CordRepBtree::Copy() const {

0 commit comments

Comments
 (0)