Index: lib/StaticAnalyzer/Checkers/MallocChecker.cpp =================================================================== --- lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -1698,7 +1698,7 @@ if (ExplodedNode *N = C.generateErrorNode()) { if (!BT_BadFree[*CheckKind]) BT_BadFree[*CheckKind].reset( - new BugType(CheckNames[*CheckKind], "Bad free", "Memory Error")); + new BugType(CheckNames[*CheckKind], "Bad free", "Memory error")); SmallString<100> buf; llvm::raw_svector_ostream os(buf); @@ -1743,7 +1743,7 @@ if (ExplodedNode *N = C.generateErrorNode()) { if (!BT_FreeAlloca[*CheckKind]) BT_FreeAlloca[*CheckKind].reset( - new BugType(CheckNames[*CheckKind], "Free alloca()", "Memory Error")); + new BugType(CheckNames[*CheckKind], "Free alloca()", "Memory error")); auto R = llvm::make_unique( *BT_FreeAlloca[*CheckKind], @@ -1768,7 +1768,7 @@ if (!BT_MismatchedDealloc) BT_MismatchedDealloc.reset( new BugType(CheckNames[CK_MismatchedDeallocatorChecker], - "Bad deallocator", "Memory Error")); + "Bad deallocator", "Memory error")); SmallString<100> buf; llvm::raw_svector_ostream os(buf); @@ -1829,7 +1829,7 @@ if (!BT_OffsetFree[*CheckKind]) BT_OffsetFree[*CheckKind].reset( - new BugType(CheckNames[*CheckKind], "Offset free", "Memory Error")); + new BugType(CheckNames[*CheckKind], "Offset free", "Memory error")); SmallString<100> buf; llvm::raw_svector_ostream os(buf); @@ -1880,7 +1880,7 @@ if (ExplodedNode *N = C.generateErrorNode()) { if (!BT_UseFree[*CheckKind]) BT_UseFree[*CheckKind].reset(new BugType( - CheckNames[*CheckKind], "Use-after-free", "Memory Error")); + CheckNames[*CheckKind], "Use-after-free", "Memory error")); auto R = llvm::make_unique(*BT_UseFree[*CheckKind], "Use of memory after it is freed", N); @@ -1907,7 +1907,7 @@ if (ExplodedNode *N = C.generateErrorNode()) { if (!BT_DoubleFree[*CheckKind]) BT_DoubleFree[*CheckKind].reset( - new BugType(CheckNames[*CheckKind], "Double free", "Memory Error")); + new BugType(CheckNames[*CheckKind], "Double free", "Memory error")); auto R = llvm::make_unique( *BT_DoubleFree[*CheckKind], @@ -1935,7 +1935,7 @@ if (ExplodedNode *N = C.generateErrorNode()) { if (!BT_DoubleDelete) BT_DoubleDelete.reset(new BugType(CheckNames[CK_NewDeleteChecker], - "Double delete", "Memory Error")); + "Double delete", "Memory error")); auto R = llvm::make_unique( *BT_DoubleDelete, "Attempt to delete released memory", N); @@ -1962,7 +1962,7 @@ if (ExplodedNode *N = C.generateErrorNode()) { if (!BT_UseZerroAllocated[*CheckKind]) BT_UseZerroAllocated[*CheckKind].reset(new BugType( - CheckNames[*CheckKind], "Use of zero allocated", "Memory Error")); + CheckNames[*CheckKind], "Use of zero allocated", "Memory error")); auto R = llvm::make_unique(*BT_UseZerroAllocated[*CheckKind], "Use of zero-allocated memory", N); @@ -2165,7 +2165,7 @@ assert(N); if (!BT_Leak[*CheckKind]) { BT_Leak[*CheckKind].reset( - new BugType(CheckNames[*CheckKind], "Memory leak", "Memory Error")); + new BugType(CheckNames[*CheckKind], "Memory leak", "Memory error")); // Leaks should not be reported if they are post-dominated by a sink: // (1) Sinks are higher importance bugs. // (2) NoReturnFunctionChecker uses sink nodes to represent paths ending Index: lib/StaticAnalyzer/Checkers/ValistChecker.cpp =================================================================== --- lib/StaticAnalyzer/Checkers/ValistChecker.cpp +++ lib/StaticAnalyzer/Checkers/ValistChecker.cpp @@ -256,7 +256,7 @@ if (!BT_uninitaccess) BT_uninitaccess.reset(new BugType(CheckNames[CK_Uninitialized], "Uninitialized va_list", - "Memory Error")); + "Memory error")); auto R = llvm::make_unique(*BT_uninitaccess, Msg, N); R->markInteresting(VAList); R->addVisitor(llvm::make_unique(VAList)); @@ -274,7 +274,7 @@ for (auto Reg : LeakedVALists) { if (!BT_leakedvalist) { BT_leakedvalist.reset(new BugType(CheckNames[CK_Unterminated], - "Leaked va_list", "Memory Error")); + "Leaked va_list", "Memory error")); BT_leakedvalist->setSuppressOnSink(true); } Index: test/Analysis/MismatchedDeallocator-path-notes.cpp =================================================================== --- test/Analysis/MismatchedDeallocator-path-notes.cpp +++ test/Analysis/MismatchedDeallocator-path-notes.cpp @@ -287,7 +287,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionMemory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeBad deallocator // CHECK-NEXT: check_nameunix.MismatchedDeallocator // CHECK-NEXT: Index: test/Analysis/NewDelete-path-notes.cpp =================================================================== --- test/Analysis/NewDelete-path-notes.cpp +++ test/Analysis/NewDelete-path-notes.cpp @@ -257,7 +257,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionAttempt to free released memory -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeDouble free // CHECK-NEXT: check_namecplusplus.NewDelete // CHECK-NEXT: @@ -475,7 +475,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionAttempt to free released memory -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeDouble free // CHECK-NEXT: check_namecplusplus.NewDelete // CHECK-NEXT: Index: test/Analysis/diagnostics/report-issues-within-main-file.cpp =================================================================== --- test/Analysis/diagnostics/report-issues-within-main-file.cpp +++ test/Analysis/diagnostics/report-issues-within-main-file.cpp @@ -945,7 +945,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionMemory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' (within a call to '~auto_ptr') -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeBad deallocator // CHECK-NEXT: check_nameunix.MismatchedDeallocator // CHECK-NEXT: Index: test/Analysis/edges-new.mm =================================================================== --- test/Analysis/edges-new.mm +++ test/Analysis/edges-new.mm @@ -20042,7 +20042,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'buf' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -20284,7 +20284,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionMemory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeBad deallocator // CHECK-NEXT: check_nameunix.MismatchedDeallocator // CHECK-NEXT: Index: test/Analysis/malloc-plist.c =================================================================== --- test/Analysis/malloc-plist.c +++ test/Analysis/malloc-plist.c @@ -421,7 +421,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'p' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -586,7 +586,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'A' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -974,7 +974,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'buf' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -1376,7 +1376,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'buf' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -1962,7 +1962,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionUse of memory after it is freed -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeUse-after-free // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -2524,7 +2524,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'buf' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -2795,7 +2795,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'v' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -3144,7 +3144,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionUse of memory after it is freed -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeUse-after-free // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -3309,7 +3309,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'm' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -3517,7 +3517,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -3725,7 +3725,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -4030,7 +4030,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -4335,7 +4335,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -4543,7 +4543,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -4751,7 +4751,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -4988,7 +4988,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential memory leak -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -5225,7 +5225,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential memory leak -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: @@ -5496,7 +5496,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential memory leak -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: Index: test/Analysis/plist-macros.cpp =================================================================== --- test/Analysis/plist-macros.cpp +++ test/Analysis/plist-macros.cpp @@ -218,7 +218,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionMemory allocated by malloc() should be deallocated by free(), not 'delete' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeBad deallocator // CHECK-NEXT: check_nameunix.MismatchedDeallocator // CHECK-NEXT: @@ -315,7 +315,7 @@ // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory Error +// CHECK-NEXT: categoryMemory error // CHECK-NEXT: typeMemory leak // CHECK-NEXT: check_nameunix.Malloc // CHECK-NEXT: