diff --git a/clang/lib/AST/Interp/InterpBlock.h b/clang/lib/AST/Interp/InterpBlock.h index edcbec232e23d..8c95d8e122be4 100644 --- a/clang/lib/AST/Interp/InterpBlock.h +++ b/clang/lib/AST/Interp/InterpBlock.h @@ -48,7 +48,7 @@ enum PrimType : unsigned; /// class Block final { public: - // Creates a new block. + /// Creates a new block. Block(const std::optional &DeclID, Descriptor *Desc, bool IsStatic = false, bool IsExtern = false) : DeclID(DeclID), IsStatic(IsStatic), IsExtern(IsExtern), Desc(Desc) {} @@ -58,7 +58,7 @@ class Block final { Desc(Desc) {} /// Returns the block's descriptor. - Descriptor *getDescriptor() const { return Desc; } + const Descriptor *getDescriptor() const { return Desc; } /// Checks if the block has any live pointers. bool hasPointers() const { return Pointers; } /// Checks if the block is extern. @@ -104,7 +104,7 @@ class Block final { /*isActive=*/true, Desc); } - // Invokes the Destructor. + /// Invokes the Destructor. void invokeDtor() { if (Desc->DtorFn) Desc->DtorFn(this, data(), Desc);