diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-08-13 22:20:14 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-08-13 22:20:14 +0000 |
commit | 210ea0b31aed43d7653daaddcbb811a821213e5c (patch) | |
tree | fdc97b847b67e87cf6f1e38e6a0b392f5fc2f9f1 /clang/lib/Basic | |
parent | a137bf93868ccd5f06c9743bbacb7dcb703f827a (diff) | |
download | bcm5719-llvm-210ea0b31aed43d7653daaddcbb811a821213e5c.tar.gz bcm5719-llvm-210ea0b31aed43d7653daaddcbb811a821213e5c.zip |
Wdeprecated: StoredDiagnostics are stored in a SmallVector, so make sure they're copy/movable
Removing the no-op dtor makes these objects safely implicitly
copyable/movable/etc.
(& tidy up the ctor, while I'm here)
llvm-svn: 244971
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r-- | clang/lib/Basic/Diagnostic.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp index f89caf7b248..0caa876a57b 100644 --- a/clang/lib/Basic/Diagnostic.cpp +++ b/clang/lib/Basic/Diagnostic.cpp @@ -945,8 +945,6 @@ FormatDiagnostic(const char *DiagStr, const char *DiagEnd, OutStr.append(Tree.begin(), Tree.end()); } -StoredDiagnostic::StoredDiagnostic() { } - StoredDiagnostic::StoredDiagnostic(DiagnosticsEngine::Level Level, unsigned ID, StringRef Message) : ID(ID), Level(Level), Loc(), Message(Message) { } @@ -975,8 +973,6 @@ StoredDiagnostic::StoredDiagnostic(DiagnosticsEngine::Level Level, unsigned ID, { } -StoredDiagnostic::~StoredDiagnostic() { } - /// IncludeInDiagnosticCounts - This method (whose default implementation /// returns true) indicates whether the diagnostics handled by this /// DiagnosticConsumer should be included in the number of diagnostics |