Skip to content

Commit 35eed5f

Browse files
committed
NULL -> nullptr
1 parent 4f37ed5 commit 35eed5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/include/clang/AST/ExternalASTSource.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ struct LazyOffsetPtr {
355355
explicit LazyOffsetPtr(uint64_t Offset) : Data() {
356356
assert((Offset << 1 >> 1) == Offset && "Offsets must require < 63 bits");
357357
if (Offset == 0)
358-
SetPtr(NULL);
358+
SetPtr(nullptr);
359359
else
360360
SetU64((Offset << 1) | 0x01);
361361
}
@@ -368,7 +368,7 @@ struct LazyOffsetPtr {
368368
LazyOffsetPtr &operator=(uint64_t Offset) {
369369
assert((Offset << 1 >> 1) == Offset && "Offsets must require < 63 bits");
370370
if (Offset == 0)
371-
SetPtr(NULL);
371+
SetPtr(nullptr);
372372
else
373373
SetU64((Offset << 1) | 0x01);
374374

@@ -378,12 +378,12 @@ struct LazyOffsetPtr {
378378
/// Whether this pointer is non-NULL.
379379
///
380380
/// This operation does not require the AST node to be deserialized.
381-
explicit operator bool() const { return isOffset() || GetPtr() != NULL; }
381+
explicit operator bool() const { return isOffset() || GetPtr() != nullptr; }
382382

383383
/// Whether this pointer is non-NULL.
384384
///
385385
/// This operation does not require the AST node to be deserialized.
386-
bool isValid() const { return isOffset() || GetPtr() != NULL; }
386+
bool isValid() const { return isOffset() || GetPtr() != nullptr; }
387387

388388
/// Whether this pointer is currently stored as an offset.
389389
bool isOffset() const { return GetLSB() & 0x01; }

0 commit comments

Comments
 (0)