aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-11-12 13:27:34 +0000
committerbloodstalker <thabogre@gmail.com>2018-11-12 13:27:34 +0000
commit9d57b17e209983252f0ebda98087316577f04e6e (patch)
treea4cc546cfac7bfaab4dff9376a549ea5daec57f4 /README.md
parentupdate (diff)
downloadcgrep-9d57b17e209983252f0ebda98087316577f04e6e.tar.gz
cgrep-9d57b17e209983252f0ebda98087316577f04e6e.zip
update
Diffstat (limited to '')
-rw-r--r--README.md8
1 files changed, 3 insertions, 5 deletions
diff --git a/README.md b/README.md
index 63fec2c..5fd02a8 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ make
## Usage
A simple usage example:<br/>
```bash
-cgrep --func --var --regex nam ./cgrep.cpp
+cgrep --func --var --regex n[aA]m ./cgrep.cpp
```
Pleade do note that the regex will pass through both C++ and the regex engine, so if you would want to escape `\`, the regex you pass as the commandline arg would be `\\\\` instead of the normal `\\`.<br/>
@@ -24,10 +24,9 @@ For an up-to-date list, you can run `crep --help`.<br/>
```bash
-all - turns on all switches other than nameddecl
+ -awk - outputs location in a gawk freidnly format
-class - match class declrations only
-dir=<string> - recursively goes through all the files and directories. assumes compilation databases are present for all source files.
- -extra-arg=<string> - Additional argument to append to the compiler command line
- -extra-arg-before=<string> - Additional argument to prepend to the compiler command line
-func - match functions only
-header - match headers in header inclusions
-macro - match macro definitions
@@ -35,7 +34,6 @@ For an up-to-date list, you can run `crep --help`.<br/>
-memfunc - match member functions only
-memvar - match member variables only
-nameddecl - matches all named declrations
- -p=<string> - Build path
-regex=<string> - the regex to match against
-struct - match structures only
-syshdr - match identifiers in system header as well
@@ -43,4 +41,4 @@ For an up-to-date list, you can run `crep --help`.<br/>
-var - map variables only
```
-Also, cgrep is a clang tool, so it will accecpt all valid clang commandline options.<br/>
+`cgrep` is a clang tool, so it will accecpt all valid clang commandline options.<br/>