Skip to content

A clang tool to extract methods/functions boundaries from source files. Support c/c++/objc/objc++.

License

Notifications You must be signed in to change notification settings

xuzhaocheng/clang-pudge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

clang-pudge

A clang tool to extract methods/functions boundaries from source files. Support c/c++/objc/objc++.

Usage

$ clang-pudge -p <build_path> -output-file <output_json_file> <source0> ...

The output JSON format is as below:

{
  <file_path>: [
  {
    "name": <mangled_name>,
    "start": <fucntion_start_line_number>,
    "end": <function_end_line_number>
  },
  ...
  ]
}

How to Build from Source

  1. Clone llvm-project from https://github.com/llvm/llvm-project, or you can choose apple fork version or other fork.
  2. Create a directory named clang-pudge under clang/clang-tools-extra.
  3. Add new line add_subdirectory(clang-pudge) to clang-tools-extra/CMakeLists.txt.
  4. Follow Getting Started with LLVM to build, or you can refer to this guide

About

A clang tool to extract methods/functions boundaries from source files. Support c/c++/objc/objc++.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published