From a69bebb21975c931dc0e511e35f2285c46116a3d Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Fri, 2 Aug 2019 21:51:39 +0430 Subject: update --- README.md | 8 ++++++-- cgrep.cpp | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9ca3f08..b615e35 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ # cgrep `grep` for C/C++ source files.
-cgrep uses libtooling, the latest tested version of LLVM is trunk 340121.
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.
+The goal is to make the options and features as similar to `grep` as possible for ease of use.
## 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:
@@ -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.
+`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.
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.
## Usage @@ -55,3 +55,7 @@ For an up-to-date list, you can run `crep --help`.
-var - match variables only ``` `cgrep` is a clang tool, so it will accecpt all valid clang commandline options.
+ +## Known Issues +* bulding cgrep with `-j` will not work because shitty makefile.
+* the coloring is off right now and doesn't work properly.
diff --git a/cgrep.cpp b/cgrep.cpp index afd57db..cdbfe60 100644 --- a/cgrep.cpp +++ b/cgrep.cpp @@ -78,7 +78,7 @@ cl::opt CO_SYSHDR("syshdr", cl::init(false), cl::cat(CGrepCat), cl::Optional); // done cl::opt 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 CO_A( -- cgit v1.2.3