Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xinhuang/clang-playground
This is the repository for clang-playground series.
https://github.com/xinhuang/clang-playground
Last synced: 13 days ago
JSON representation
This is the repository for clang-playground series.
- Host: GitHub
- URL: https://github.com/xinhuang/clang-playground
- Owner: xinhuang
- Created: 2014-10-19T04:02:13.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-07-23T09:24:11.000Z (over 4 years ago)
- Last Synced: 2024-08-01T19:50:58.860Z (3 months ago)
- Language: C++
- Size: 7.81 KB
- Stars: 20
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
clang-playground
================This is the repository for clang-playground series.
*I haven't follow LLVM/Clang for a long time, so this guide maybe not compile or outdated. Please take the code here for reference only.*
## How to Build
Clone LLVM source:
`git clone http://llvm.org/git/llvm.git src`Clone Clang source:
`git clone http://llvm.org/git/clang.git src/tools/clang`Clone clang-playground source:
`git clone https://github.com/xinhuang/clang-playground.git src/tools/clang/tools/clang-playground````
mkdir debug && cd debug
../src/configure
make -j
```## find-decl
Find all the declarations in a given file.
Tutor: [Clang Playground: Finding Declarations], [Clang Playground: The AST Matcher]
[Clang Playground: Finding Declarations]:https://xinhuang.github.io/posts/2014-10-19-clang-tutorial-finding-declarations.html
[Clang Playground: The AST Matcher]:https://xinhuang.github.io/posts/2015-02-08-clang-tutorial-the-ast-matcher.html