Skip to content

Commit

Permalink
moving around files
Browse files Browse the repository at this point in the history
  • Loading branch information
eschulte committed Oct 23, 2012
1 parent 225a1d4 commit 50e0a54
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -4,8 +4,6 @@ mutate
mutate2
clang-mutate
compile_commands.json
hello
hello-no-include
*_num.c
*_del.c
*_ins.c
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -32,7 +32,7 @@ clang-mutate: ASTMutate.o clang-mutate.o
$(CXX) -o $@ $^ $(CLANGLIBS) $(LLVMLDFLAGS)

clean:
-rm -f $(EXES) $(OBJECTS) ASTMutate.o compile_commands.json a.out hello hello_* hello-* *~
-rm -f $(EXES) $(OBJECTS) ASTMutate.o compile_commands.json a.out etc/hello *~

install: clang-mutate
cp $< $$(dirname $$(which clang))
Expand Down
10 changes: 5 additions & 5 deletions README
Expand Up @@ -19,19 +19,19 @@ when copied to the same directory as the clang executable. Running

For example,

$ cat hello.c
$ cat etc/hello.c
#include <stdio.h>
int main(int argc, char *argv[])
{
puts("hello");
return 0;
}

$ clang-mutate -ids hello.c --
$ clang-mutate -ids etc/hello.c --
Processing: hello.c.
8

$ clang-mutate -number hello.c --
$ clang-mutate -number etc/hello.c --
Processing: hello.c.
/* numbered using clang-mutate */
#include <stdio.h>
Expand All @@ -41,7 +41,7 @@ For example,
/* 6[ */return /* 7[ */0/* ]6 *//* ]7 */;
}/* ]0 */

$ clang-mutate -delete -stmt1=6 hello.c --
$ clang-mutate -delete -stmt1=6 etc/hello.c --
Processing: hello.c.
/* deleted 6 using clang-mutate */
#include <stdio.h>
Expand All @@ -51,7 +51,7 @@ For example,
/* deleted:6 */;
}

$ clang-mutate -set -stmt1=4 -value="'good bye'" hello.c --
$ clang-mutate -set -stmt1=4 -value="'good bye'" etc/hello.c --
Processing: /home/eschulte/src/clang-mutate/hello.c.
#include <stdio.h>
int main(int argc, char *argv[])
Expand Down
1 change: 1 addition & 0 deletions etc/.gitignore
@@ -0,0 +1 @@
hello
File renamed without changes.

0 comments on commit 50e0a54

Please sign in to comment.