Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Proof of concept for generating clang's LibTooling documentation.
C++ Perl
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ClangCheck.cpp
LibTooling.html
LibTooling.html.src
Makefile
README
codewalk

README

# Proof of concept for generating clang's LibTooling documentation.
#
# Code snippets in the documentation are taken from real code, which is
# compiled during the normal clang build/test process, so the documentation
# never contains invalid code.
#
# Inspired by Go's codewalks: http://golang.org/doc/codewalk/
#
# Run with:
#   LLVM_SRC=path/to/llvm/source LLVM_BUILD=path/to/llvm/build make

LibTooling.html: LibTooling.html.src ClangCheck.cpp codewalk
	@[ -n "$$LLVM_SRC" -a -n "$$LLVM_BUILD" ] || \
	  { echo "Error: You must set LLVM_SRC and LLVM_BUILD" >&2; exit 1; }
	cat $< | ./codewalk > $@

clean:
	rm -f LibTooling.html
.PHONY: clean

.DELETE_ON_ERROR:
Something went wrong with that request. Please try again.