summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/TextDiagnosticPrinter.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-07-19 01:06:45 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-07-19 01:06:45 +0000
commit3875a82d422230ba97c3c1a4fc452c5ad81af513 (patch)
treebf7f5ea7503e9bb1f244011ce37a62266ba8bf6a /clang/lib/Frontend/TextDiagnosticPrinter.cpp
parentb61064ed398191460f746e05a8ef8cb48b64a436 (diff)
downloadbcm5719-llvm-3875a82d422230ba97c3c1a4fc452c5ad81af513.tar.gz
bcm5719-llvm-3875a82d422230ba97c3c1a4fc452c5ad81af513.zip
Remove uses of the redundant ".reset(nullptr)" of unique_ptr, in favor of ".reset()"
It's also possible to just write "= nullptr", but there's some question of whether that's as readable, so I leave it up to authors to pick which they prefer for now. If we want to discuss standardizing on one or the other, we can do that at some point in the future. llvm-svn: 213439
Diffstat (limited to 'clang/lib/Frontend/TextDiagnosticPrinter.cpp')
-rw-r--r--clang/lib/Frontend/TextDiagnosticPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/TextDiagnosticPrinter.cpp b/clang/lib/Frontend/TextDiagnosticPrinter.cpp
index 6271509d365..66b46b7814e 100644
--- a/clang/lib/Frontend/TextDiagnosticPrinter.cpp
+++ b/clang/lib/Frontend/TextDiagnosticPrinter.cpp
@@ -43,7 +43,7 @@ void TextDiagnosticPrinter::BeginSourceFile(const LangOptions &LO,
}
void TextDiagnosticPrinter::EndSourceFile() {
- TextDiag.reset(nullptr);
+ TextDiag.reset();
}
/// \brief Print any diagnostic option information to a raw_ostream.
OpenPOWER on IntegriCloud