The screader is a soure code reading tool based the libclang. It is implemented by the C.
-
You must install the clang on your computer. You can follow the doc: http://clang.llvm.org/get_started.html. But after you "make", you must "make install".
-
After you install the clang, you can use "clang -v" to check your clang version.
-
Use git clone the source code of scread to you computer.
-
Make directory build under the scread directory.
-
Under the build directory, use the cmd: cmake .. make
-
Then you can get the scread under the build directory.
You must come to the directory of the scread.
-
If you want to use the scread to output all the informations of ast nodes: You can use it like that: ./scread xxx.cpp(or xxx.c, xxx.h)
-
If you just want to get the keyword information, you can use it like this: ./scread xxx.cpp keyword
-
We store some testcase under the scread/test/. So, you can use the scread like this: ./scread ../test/Node.h ./scread ../test/HelloWorld.cpp printf