From d0d6d421a2bd4d8e338767e8afe0c10c4df53c37 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Tue, 4 Jul 2017 00:32:03 +0430 Subject: fixed and updated --- README.md | 2 +- mutator-lvl0.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a40b53a..19d124d 100644 --- a/README.md +++ b/README.md @@ -269,7 +269,7 @@ You can run the sample action file with this:
Currently, the mutation-only features(mutation for the sake of mutation, technically implementing Misra-C is also a form of mutation) are turned off in **mutator** and **mutator-lvl2** though some automatic code refactoring features work in both executables. Just run a sample code through **mutator** and then **mutator-lvl2** for a demo.

-If your code needs a compilation database for clang to understand it and you don't have one,you can use [Bear](https://github.com/rizsotto/Bear). Please note that bear will capture what the make runs, not what is in the makefile. So run `make clean` before invoking `bear make target`.
+If your code needs a compilation database for clang to understand it and you don't have one,you can use [Bear](https://github.com/rizsotto/Bear). Please note that bear will capture what the make runs, not what is in the makefile. So run `make clean` before invoking `bear make target`. `cmake` can also generate compilation databases if you are using it.
### Implementation Notes This part contains notes regarding the implementation of the mutator executables. diff --git a/mutator-lvl0.h b/mutator-lvl0.h index 9fde0c6..f4a7635 100644 --- a/mutator-lvl0.h +++ b/mutator-lvl0.h @@ -41,7 +41,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.* /**********************************************************************************************************************/ struct WeakPoint { - WeakPoint(std::string __psft, std::string __file, unsigned int __ln, unsigned int __cn) + WeakPoint(std::string __psft, std::string __file, unsigned int __ln, unsigned int __cn) { PlaceHolderStringForType = __psft; File = __file; @@ -371,13 +371,13 @@ class MutatorLVL0Tests class mutagenAncestryReport// : public Devi::XMLReportBase { public: - mutagenAncestryReport(std::vector> __dss, std::vector __wps) : DoomedStrains(__dss), WeakPoints(__wps) + mutagenAncestryReport(std::vector> __dss, std::vector __wps) : DoomedStrains(__dss), WeakPoints(__wps) { RootPointer = Doc.NewElement("mutagen:Report"); RootPointer->SetAttribute("xmlns:mutagen", "http://www.w3.org/2001/XMLSchema"); } - ~mutagenAncestryReport() + ~mutagenAncestryReport() { Doc.InsertEndChild(RootPointer); } @@ -396,7 +396,7 @@ class mutagenAncestryReport// : public Devi::XMLReportBase Child->SetText(iterer.c_str()); NodeDoomedStrain->InsertEndChild(Child); } - + MGene->InsertEndChild(NodeDoomedStrain); } @@ -448,7 +448,7 @@ class mutagenAncestryReport// : public Devi::XMLReportBase #endif }; /**********************************************************************************************************************/ -#define EXTRACT_MUTAGEN +#define EXTRACT_MUTAGEN class MutagenExtraction { @@ -461,7 +461,7 @@ class MutagenExtraction { clang::ASTContext::DynTypedNodeList DNL = __astx.getParents(__dtn); - /*FIXME-a LastStrain. obviously well end up losing some parents in cpp if we're just picking up the + /*FIXME-a LastStrain. obviously well end up losing some parents in cpp if we're just picking up the * first parent from the list.*/ LastStrain.push_back(DNL[0].getNodeKind().asStringRef().str()); clang::ast_type_traits::DynTypedNode DTN = DNL[0]; -- cgit v1.2.3