diff options
author | Chris Lattner <sabre@nondot.org> | 2013-01-19 21:35:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2013-01-19 21:35:35 +0000 |
commit | e485f0761abc7ead2d0481db37fd50f5ae2e835b (patch) | |
tree | 7a173e3dfcf3d88c2c2ab3a62249d02e752299a3 /tools/libclang/CXLoadedDiagnostic.cpp | |
parent | 2b9de0bc05e3e1092a9d1880e62aeaa54dc343e3 (diff) |
random tidying
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CXLoadedDiagnostic.cpp')
-rw-r--r-- | tools/libclang/CXLoadedDiagnostic.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/libclang/CXLoadedDiagnostic.cpp b/tools/libclang/CXLoadedDiagnostic.cpp index 9c42998b51..f81922416d 100644 --- a/tools/libclang/CXLoadedDiagnostic.cpp +++ b/tools/libclang/CXLoadedDiagnostic.cpp @@ -23,8 +23,6 @@ #include "llvm/Support/ErrorHandling.h" #include "llvm/Bitcode/BitstreamReader.h" #include "llvm/Support/MemoryBuffer.h" -#include <assert.h> - using namespace clang; using namespace clang::cxstring; @@ -216,7 +214,7 @@ class DiagLoader { StreamResult readToNextRecordOrBlock(llvm::BitstreamCursor &Stream, llvm::StringRef errorContext, unsigned &BlockOrRecordID, - const bool atTopLevel = false); + bool atTopLevel = false); LoadResult readString(CXLoadedDiagnosticSetImpl &TopDiags, @@ -286,8 +284,7 @@ CXDiagnosticSet DiagLoader::load(const char *file) { return 0; } - OwningPtr<CXLoadedDiagnosticSetImpl> - Diags(new CXLoadedDiagnosticSetImpl()); + OwningPtr<CXLoadedDiagnosticSetImpl> Diags(new CXLoadedDiagnosticSetImpl()); while (true) { unsigned BlockID = 0; @@ -328,7 +325,7 @@ CXDiagnosticSet DiagLoader::load(const char *file) { StreamResult DiagLoader::readToNextRecordOrBlock(llvm::BitstreamCursor &Stream, llvm::StringRef errorContext, unsigned &blockOrRecordID, - const bool atTopLevel) { + bool atTopLevel) { blockOrRecordID = 0; |