@@ -400,7 +400,7 @@ static void createDumpFile(const Settings& settings,
400
400
<< " pointer_bit=\" " << (settings.platform .sizeof_pointer * settings.platform .char_bit ) << ' \" '
401
401
<< " wchar_t_bit=\" " << (settings.platform .sizeof_wchar_t * settings.platform .char_bit ) << ' \" '
402
402
<< " size_t_bit=\" " << (settings.platform .sizeof_size_t * settings.platform .char_bit ) << ' \" '
403
- << " />" << ' \n ' ;
403
+ << " />\n " ;
404
404
}
405
405
406
406
static std::string detectPython (const CppCheck::ExecuteCmdFn &executeCommand)
@@ -736,6 +736,7 @@ unsigned int CppCheck::checkClang(const FileWithDetails &file)
736
736
std::string dumpFile;
737
737
createDumpFile (mSettings , file, fdump, dumpFile);
738
738
if (fdump.is_open ()) {
739
+ fdump << getLibraryDumpData ();
739
740
// TODO: use tinyxml2 to create XML
740
741
fdump << " <dump cfg=\"\" >\n " ;
741
742
for (const ErrorMessage& errmsg: compilerWarnings)
@@ -744,7 +745,6 @@ unsigned int CppCheck::checkClang(const FileWithDetails &file)
744
745
fdump << " <c version=\" " << mSettings .standards .getC () << " \" />\n " ;
745
746
fdump << " <cpp version=\" " << mSettings .standards .getCPP () << " \" />\n " ;
746
747
fdump << " </standards>\n " ;
747
- fdump << getLibraryDumpData ();
748
748
tokenizer.dump (fdump);
749
749
fdump << " </dump>\n " ;
750
750
fdump << " </dumps>\n " ;
@@ -1065,6 +1065,7 @@ unsigned int CppCheck::checkFile(const FileWithDetails& file, const std::string
1065
1065
std::string dumpFile;
1066
1066
createDumpFile (mSettings , file, fdump, dumpFile);
1067
1067
if (fdump.is_open ()) {
1068
+ fdump << getLibraryDumpData ();
1068
1069
fdump << dumpProlog;
1069
1070
if (!mSettings .dump )
1070
1071
filesDeleter.addFile (dumpFile);
0 commit comments