diff options
author | bloodstalker <thabogre@gmail.com> | 2017-01-28 00:00:23 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-01-28 00:00:23 +0000 |
commit | 64cd38805874119aaef28f25639ead3d9c9ba7fa (patch) | |
tree | 4b2b42bb6c5d4d24a83cd081d8595111ef6596e9 /mutator_aux.cpp | |
parent | now we also download gcc4.9 to have support for regex when we run the tests (diff) | |
download | mutator-64cd38805874119aaef28f25639ead3d9c9ba7fa.tar.gz mutator-64cd38805874119aaef28f25639ead3d9c9ba7fa.zip |
changed a character in the report node/element name
Diffstat (limited to '')
-rw-r--r-- | mutator_aux.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/mutator_aux.cpp b/mutator_aux.cpp index 2671e70..6599def 100644 --- a/mutator_aux.cpp +++ b/mutator_aux.cpp @@ -167,7 +167,6 @@ XMLReport::XMLReport() void XMLReport::XMLCreateReport() { - XMLReportDoc.InsertFirstChild(RootPointer); } @@ -187,7 +186,7 @@ void XMLReport::XMLAddNode(ASTContext* ASTC, SourceLocation SL, std::string Misr XMLElement* MisraElement = XMLReportDoc.NewElement("MisraDiag"); MisraElement->SetText(Description.c_str()); - MisraElement->SetAttribute("Misra-C:2004Rule", MisraRule.c_str()); + MisraElement->SetAttribute("Misra-C-2004Rule", MisraRule.c_str()); MisraElement->SetAttribute("FileName", FileNameString.c_str()); MisraElement->SetAttribute("SpellingLineNumber", LineNumber); MisraElement->SetAttribute("SpellingColumnNumber", ColumnNumber); @@ -206,7 +205,7 @@ void XMLReport::XMLAddNode(FullSourceLoc FullSrcLoc, SourceLocation SL, std::str XMLElement* MisraElement = XMLReportDoc.NewElement("MisraDiag"); MisraElement->SetText(Description.c_str()); - MisraElement->SetAttribute("Misra-C:2004Rule", MisraRule.c_str()); + MisraElement->SetAttribute("Misra-C-2004Rule", MisraRule.c_str()); MisraElement->SetAttribute("FileName", FileNameString.c_str()); MisraElement->SetAttribute("SpellingLineNumber", LineNumber); MisraElement->SetAttribute("SpellingColumnNumber", ColumnNumber); @@ -226,7 +225,7 @@ void XMLReport::XMLAddNode(const SourceManager &SM, SourceLocation SL, std::stri XMLElement* MisraElement = XMLReportDoc.NewElement("MisraDiag"); MisraElement->SetText(Description.c_str()); - MisraElement->SetAttribute("Misra-C:2004Rule", MisraRule.c_str()); + MisraElement->SetAttribute("Misra-C-2004Rule", MisraRule.c_str()); MisraElement->SetAttribute("FileName", FileNameString.c_str()); MisraElement->SetAttribute("SpellingLineNumber", LineNumber); MisraElement->SetAttribute("SpellingColumnNumber", ColumnNumber); @@ -239,7 +238,7 @@ void XMLReport::XMLAddNode(std::string FilePath, std::string MisraRule, std::str XMLElement* MisraElement = XMLReportDoc.NewElement("MisraDiag"); MisraElement->SetText(Description.c_str()); - MisraElement->SetAttribute("Misra-C:2004Rule", MisraRule.c_str()); + MisraElement->SetAttribute("Misra-C-2004Rule", MisraRule.c_str()); MisraElement->SetAttribute("FileName", FilePath.c_str()); RootPointer->InsertEndChild(MisraElement); } @@ -250,7 +249,7 @@ void XMLReport::XMLAddNode(unsigned Line, unsigned Column, std::string FileName, XMLElement* MisraElement = XMLReportDoc.NewElement("MisraDiag"); MisraElement->SetText(Description.c_str()); - MisraElement->SetAttribute("Misra-C:2004Rule", MisraRule.c_str()); + MisraElement->SetAttribute("Misra-C-2004Rule", MisraRule.c_str()); MisraElement->SetAttribute("FileName", FileName.c_str()); MisraElement->SetAttribute("SpellingLineNumber", Line); MisraElement->SetAttribute("SpellingColumnNumber", Column); @@ -291,7 +290,7 @@ void JSONReport::JSONAddElement(ASTContext* ASTC, SourceLocation SL, std::string json RepJ; RepJ["MisraDiag"]["Description"] = Description.c_str(); - RepJ["MisraDiag"]["Misra-C:2004Rule"] = MisraRule.c_str(); + RepJ["MisraDiag"]["Misra-C-2004Rule"] = MisraRule.c_str(); RepJ["MisraDiag"]["FileName"] = FileNameString.c_str(); RepJ["MisraDiag"]["SpellingLineNumber"] = LineNumber; RepJ["MisraDiag"]["SpellingColumnNumber"] = ColumnNumber; @@ -312,7 +311,7 @@ void JSONReport::JSONAddElement(FullSourceLoc FullSrcLoc, SourceLocation SL, std json RepJ; RepJ["MisraDiag"]["Description"] = Description.c_str(); - RepJ["MisraDiag"]["Misra-C:2004Rule"] = MisraRule.c_str(); + RepJ["MisraDiag"]["Misra-C-2004Rule"] = MisraRule.c_str(); RepJ["MisraDiag"]["FileName"] = FileNameString.c_str(); RepJ["MisraDiag"]["SpellingLineNumber"] = LineNumber; RepJ["MisraDiag"]["SpellingColumnNumber"] = ColumnNumber; @@ -334,7 +333,7 @@ void JSONReport::JSONAddElement(const SourceManager &SM, SourceLocation SL, std: json RepJ; RepJ["MisraDiag"]["Description"] = Description.c_str(); - RepJ["MisraDiag"]["Misra-C:2004Rule"] = MisraRule.c_str(); + RepJ["MisraDiag"]["Misra-C-2004Rule"] = MisraRule.c_str(); RepJ["MisraDiag"]["FileName"] = FileNameString.c_str(); RepJ["MisraDiag"]["SpellingLineNumber"] = LineNumber; RepJ["MisraDiag"]["SpellingColumnNumber"] = ColumnNumber; @@ -349,7 +348,7 @@ void JSONReport::JSONAddElement(std::string FilePath, std::string MisraRule, std json RepJ; RepJ["MisraDiag"]["Description"] = Description.c_str(); - RepJ["MisraDiag"]["Misra-C:2004Rule"] = MisraRule.c_str(); + RepJ["MisraDiag"]["Misra-C-2004Rule"] = MisraRule.c_str(); RepJ["MisraDiag"]["FileName"] = FilePath.c_str(); @@ -363,7 +362,7 @@ void JSONReport::JSONAddElement(unsigned Line, unsigned Column, std::string File json RepJ; RepJ["MisraDiag"]["Description"] = Description.c_str(); - RepJ["MisraDiag"]["Misra-C:2004Rule"] = MisraRule.c_str(); + RepJ["MisraDiag"]["Misra-C-2004Rule"] = MisraRule.c_str(); RepJ["MisraDiag"]["FileName"] = FileName.c_str(); RepJ["MisraDiag"]["SpellingLineNumber"] = Line; RepJ["MisraDiag"]["SpellingColumnNumber"] = Column; |