From 7d44dfcd922c33d750bd24366c9a7a988bc73e3d Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Dec 10 2019 13:20:47 +0000 Subject: more coverity fixes --- diff --git a/doxygen-1.8.16-covscan.patch b/doxygen-1.8.16-covscan.patch index c6ec936..18688ea 100644 --- a/doxygen-1.8.16-covscan.patch +++ b/doxygen-1.8.16-covscan.patch @@ -698,3 +698,27 @@ diff -up doxygen-1.8.16/src/vhdljjparser.h.orig doxygen-1.8.16/src/vhdljjparser. }; +diff -up doxygen-1.8.16/src/clangparser.cpp.me doxygen-1.8.16/src/clangparser.cpp +--- doxygen-1.8.16/src/clangparser.cpp.me 2019-12-10 12:08:46.334638776 +0100 ++++ doxygen-1.8.16/src/clangparser.cpp 2019-12-10 12:08:59.291755101 +0100 +@@ -174,7 +174,7 @@ void ClangParser::start(const char *file + std::string error; + // load a clang compilation database (https://clang.llvm.org/docs/JSONCompilationDatabase.html) + // this only needs to be loaded once, and could be refactored to a higher level function +- static std::unique_ptr db = ++ static std::shared_ptr db = + clang::tooling::CompilationDatabase::loadFromDirectory(clangCompileDatabase.data(), error); + int clang_option_len = 0; + std::vector command; +diff -up doxygen-1.8.16/src/doxygen.cpp.me doxygen-1.8.16/src/doxygen.cpp +--- doxygen-1.8.16/src/doxygen.cpp.me 2019-12-10 12:05:44.254007471 +0100 ++++ doxygen-1.8.16/src/doxygen.cpp 2019-12-10 12:07:24.286903381 +0100 +@@ -520,7 +520,7 @@ static void addSTLClasses(Entry *root) + addSTLMember(classEntry,info->templType2,info->templName2); + } + if (fullName=="std::auto_ptr" || fullName=="std::smart_ptr" || fullName=="std::shared_ptr" || +- fullName=="std::unique_ptr" || fullName=="std::weak_ptr") ++ fullName=="std::shared_ptr" || fullName=="std::weak_ptr") + { + Entry *memEntry = new Entry; + memEntry->name = "operator->";