diff options
author | bloodstalker <thabogre@gmail.com> | 2019-08-02 17:21:39 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2019-08-02 17:21:39 +0000 |
commit | a69bebb21975c931dc0e511e35f2285c46116a3d (patch) | |
tree | d446a3b5c84f415c0690d3b66932e95207c81b1d | |
parent | checked with trunk version 355787. if you use the trunk llvm-clang you build ... (diff) | |
download | cgrep-a69bebb21975c931dc0e511e35f2285c46116a3d.tar.gz cgrep-a69bebb21975c931dc0e511e35f2285c46116a3d.zip |
update
Diffstat (limited to '')
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | cgrep.cpp | 2 |
2 files changed, 7 insertions, 3 deletions
@@ -3,8 +3,8 @@ # cgrep `grep` for C/C++ source files.<br/> -cgrep uses libtooling, the latest tested version of LLVM is trunk 340121.<br/> Should be more or less fine for other C-family languages as well but I haven't tested for those since I don't use those. Let me know if you run into trouble using cgrep on those.<br/> +The goal is to make the options and features as similar to `grep` as possible for ease of use.<br/> ## Bulding Assuming you have the llvm/clang libraries(the build file will read your llvm options using `llvm-config` so make sure it's in path), just run:<br/> @@ -14,7 +14,7 @@ git submodule init git submodule update make ``` -`cgrep` supports LLVM 6,8, and for 9 the latest tested trunk version currently is:355787.<br/> +`cgrep` supports LLVM 5,6,8,9. For 10. the latest tested trunk version is:367652. support for 5 and 6 might be dropped in the future.<br/> The makefile assumes clang is called `clang` and llvm-config is called `llvm-config`. On some distros, the names might not be the same. In those cases use `CXX` and `LLVM_CONF` to pass the values to the makefile.<br/> ## Usage @@ -55,3 +55,7 @@ For an up-to-date list, you can run `crep --help`.<br/> -var - match variables only ``` `cgrep` is a clang tool, so it will accecpt all valid clang commandline options.<br/> + +## Known Issues +* bulding cgrep with `-j` will not work because shitty makefile.<br/> +* the coloring is off right now and doesn't work properly.<br/> @@ -78,7 +78,7 @@ cl::opt<bool> CO_SYSHDR("syshdr", cl::init(false), cl::cat(CGrepCat), cl::Optional); // done cl::opt<bool> CO_MAINFILE("mainfile", - cl::desc("mathc identifiers in the main file only"), + cl::desc("match identifiers in the main file only"), cl::init(true), cl::cat(CGrepCat), cl::Optional); // done cl::opt<int> CO_A( |