diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-02-07 23:24:49 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-02-07 23:24:49 +0000 |
commit | 849a67bba254e708af36ef3c833a2cb78ce22e93 (patch) | |
tree | ad03012c5ed7e5773ee0634416f986b15a56de40 /clang/lib/Basic/Diagnostic.cpp | |
parent | 6567f48fd98996c9e6b30030b4f0945a43f75da0 (diff) | |
download | bcm5719-llvm-849a67bba254e708af36ef3c833a2cb78ce22e93.tar.gz bcm5719-llvm-849a67bba254e708af36ef3c833a2cb78ce22e93.zip |
Fix indentation and an 80-column violation.
llvm-svn: 150010
Diffstat (limited to 'clang/lib/Basic/Diagnostic.cpp')
-rw-r--r-- | clang/lib/Basic/Diagnostic.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp index 41f66c49d3e..a9f89faadb8 100644 --- a/clang/lib/Basic/Diagnostic.cpp +++ b/clang/lib/Basic/Diagnostic.cpp @@ -119,7 +119,7 @@ void DiagnosticsEngine::Reset() { } void DiagnosticsEngine::SetDelayedDiagnostic(unsigned DiagID, StringRef Arg1, - StringRef Arg2) { + StringRef Arg2) { if (DelayedDiagID) return; @@ -162,7 +162,7 @@ DiagnosticsEngine::GetDiagStatePointForLoc(SourceLocation L) const { /// \param The source location that this change of diagnostic state should /// take affect. It can be null if we are setting the latest state. void DiagnosticsEngine::setDiagnosticMapping(diag::kind Diag, diag::Mapping Map, - SourceLocation L) { + SourceLocation L) { assert(Diag < diag::DIAG_UPPER_LIMIT && "Can only map builtin diagnostics"); assert((Diags->isBuiltinWarningOrExtension(Diag) || @@ -884,7 +884,9 @@ PartialDiagnostic::StorageAllocator::StorageAllocator() { } PartialDiagnostic::StorageAllocator::~StorageAllocator() { - // Don't assert if we are in a CrashRecovery context, as this - // invariant may be invalidated during a crash. - assert((NumFreeListEntries == NumCached || llvm::CrashRecoveryContext::isRecoveringFromCrash()) && "A partial is on the lamb"); + // Don't assert if we are in a CrashRecovery context, as this invariant may + // be invalidated during a crash. + assert((NumFreeListEntries == NumCached || + llvm::CrashRecoveryContext::isRecoveringFromCrash()) && + "A partial is on the lamb"); } |