Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/include/llvm/Support/DebugLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class RAIINewLineStream final : public raw_ostream {

public:
RAIINewLineStream(raw_ostream &Os) : Os(Os) { SetUnbuffered(); }
~RAIINewLineStream() { Os << '\n'; }
~RAIINewLineStream() override { Os << '\n'; }
void write_impl(const char *Ptr, size_t Size) final { Os.write(Ptr, Size); }
uint64_t current_pos() const final { return Os.tell(); }
RAIINewLineStream &asLvalue() { return *this; }
Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/Support/ELFAttrParserCompact.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LLVM_ABI ELFCompactAttrParser : public ELFAttributeParser {
}

public:
virtual ~ELFCompactAttrParser() { static_cast<void>(!cursor.takeError()); }
~ELFCompactAttrParser() override { static_cast<void>(!cursor.takeError()); }
Error integerAttribute(unsigned tag);
Error stringAttribute(unsigned tag);

Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/Support/ELFAttrParserExtended.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class LLVM_ABI ELFExtendedAttrParser : public ELFAttributeParser {
const unsigned Tag);

public:
virtual ~ELFExtendedAttrParser() { static_cast<void>(!Cursor.takeError()); }
~ELFExtendedAttrParser() override { static_cast<void>(!Cursor.takeError()); }
Error parse(ArrayRef<uint8_t> Section, llvm::endianness Endian) override;

std::optional<unsigned> getAttributeValue(unsigned Tag) const override;
Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/Support/FormatAdapters.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ErrorAdapter : public FormatAdapter<Error> {
public:
ErrorAdapter(Error &&Item) : FormatAdapter(std::move(Item)) {}
ErrorAdapter(ErrorAdapter &&) = default;
~ErrorAdapter() { consumeError(std::move(Item)); }
~ErrorAdapter() override { consumeError(std::move(Item)); }
void format(llvm::raw_ostream &Stream, StringRef Style) override {
Stream << Item;
}
Expand Down
4 changes: 2 additions & 2 deletions llvm/include/llvm/Support/ScopedPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ struct DictScope : DelimitedScope {
W.objectBegin();
}

~DictScope() {
~DictScope() override {
if (W)
W->objectEnd();
}
Expand All @@ -889,7 +889,7 @@ struct ListScope : DelimitedScope {
W.arrayBegin();
}

~ListScope() {
~ListScope() override {
if (W)
W->arrayEnd();
}
Expand Down
4 changes: 2 additions & 2 deletions llvm/include/llvm/Support/SuffixTreeNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ struct LLVM_ABI SuffixTreeInternalNode : SuffixTreeNode {
: SuffixTreeNode(NodeKind::ST_Internal, StartIdx), EndIdx(EndIdx),
Link(Link) {}

virtual ~SuffixTreeInternalNode() = default;
~SuffixTreeInternalNode() override = default;
};

// A node representing a suffix.
Expand Down Expand Up @@ -189,7 +189,7 @@ struct LLVM_ABI SuffixTreeLeafNode : SuffixTreeNode {
SuffixTreeLeafNode(unsigned StartIdx, unsigned *EndIdx)
: SuffixTreeNode(NodeKind::ST_Leaf, StartIdx), EndIdx(EndIdx) {}

virtual ~SuffixTreeLeafNode() = default;
~SuffixTreeLeafNode() override = default;
};
} // namespace llvm
#endif // LLVM_SUPPORT_SUFFIXTREE_NODE_H
4 changes: 2 additions & 2 deletions llvm/include/llvm/Support/VirtualFileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class LLVM_ABI FileSystem : public llvm::ThreadSafeRefCountedBase<FileSystem>,
public RTTIExtends<FileSystem, RTTIRoot> {
public:
static const char ID;
virtual ~FileSystem();
~FileSystem() override;

/// Get the status of the entry at \p Path, if one exists.
virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0;
Expand Down Expand Up @@ -495,7 +495,7 @@ class LLVM_ABI ProxyFileSystem
private:
IntrusiveRefCntPtr<FileSystem> FS;

virtual void anchor() override;
void anchor() override;
};

namespace detail {
Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/Support/VirtualOutputFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class OutputFileImpl : public RTTIExtends<OutputFileImpl, RTTIRoot> {

public:
static char ID;
virtual ~OutputFileImpl() = default;
~OutputFileImpl() override = default;

virtual Error keep() = 0;
virtual Error discard() = 0;
Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/Support/raw_socket_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class LLVM_ABI raw_socket_stream : public raw_fd_stream {

public:
raw_socket_stream(int SocketFD);
~raw_socket_stream();
~raw_socket_stream() override;

/// Create a \p raw_socket_stream connected to the UNIX domain socket at \p
/// SocketPath.
Expand Down