aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/include/llvm/Support/ScopedPrinter.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-02-05 20:07:43 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-06-04 11:59:26 +0000
commit67eec5325a1ab99d493fd7e0381d20aab19b286e (patch)
treeb14fe1fa6cc55067c1deecc4adc75920d3630d12 /contrib/llvm-project/llvm/include/llvm/Support/ScopedPrinter.h
parent390adc38fc112be360bd15499e5241bf4e675b6f (diff)
downloadsrc-67eec5325a1ab99d493fd7e0381d20aab19b286e.tar.gz
src-67eec5325a1ab99d493fd7e0381d20aab19b286e.zip
Merge llvm-project main llvmorg-14-init-18294-gdb01b123d012
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14-init-18294-gdb01b123d012, the last commit before the upstream release/14.x branch was created. PR: 261742 MFC after: 2 weeks (cherry picked from commit 1fd87a682ad7442327078e1eeb63edc4258f9815)
Diffstat (limited to 'contrib/llvm-project/llvm/include/llvm/Support/ScopedPrinter.h')
-rw-r--r--contrib/llvm-project/llvm/include/llvm/Support/ScopedPrinter.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/llvm-project/llvm/include/llvm/Support/ScopedPrinter.h b/contrib/llvm-project/llvm/include/llvm/Support/ScopedPrinter.h
index 9bde4f455a2d..6b5daf710c9f 100644
--- a/contrib/llvm-project/llvm/include/llvm/Support/ScopedPrinter.h
+++ b/contrib/llvm-project/llvm/include/llvm/Support/ScopedPrinter.h
@@ -115,7 +115,7 @@ public:
return SP->getKind() == ScopedPrinterKind::Base;
}
- virtual ~ScopedPrinter() {}
+ virtual ~ScopedPrinter() = default;
void flush() { OS.flush(); }
@@ -792,13 +792,13 @@ private:
struct DelimitedScope {
DelimitedScope(ScopedPrinter &W) : W(&W) {}
DelimitedScope() : W(nullptr) {}
- virtual ~DelimitedScope(){};
+ virtual ~DelimitedScope() = default;
virtual void setPrinter(ScopedPrinter &W) = 0;
ScopedPrinter *W;
};
struct DictScope : DelimitedScope {
- explicit DictScope() {}
+ explicit DictScope() = default;
explicit DictScope(ScopedPrinter &W) : DelimitedScope(W) { W.objectBegin(); }
DictScope(ScopedPrinter &W, StringRef N) : DelimitedScope(W) {
@@ -817,7 +817,7 @@ struct DictScope : DelimitedScope {
};
struct ListScope : DelimitedScope {
- explicit ListScope() {}
+ explicit ListScope() = default;
explicit ListScope(ScopedPrinter &W) : DelimitedScope(W) { W.arrayBegin(); }
ListScope(ScopedPrinter &W, StringRef N) : DelimitedScope(W) {