Clang tutorial

Hi All,
for my diploma-thesis i'm working on a static analysis of c-applications in order to do a semi-automatic configuration of the configurable operation-system eCos.
I think clang is a good basis for the analysis.
I'm trying to get involved with clang using this tutorial: clang tutorial
This tutorial was mentioned 10 month before:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2009-May/005167.html
I have modified the files, so that they works with the actual clang version. I compiled and linked the files with the commands:
  g++ -I [LLVM_PATH]/llvm/tools/clang/include \
  `[LLVM_PATH]/llvm/Debug/bin/llvm-config --cxxflags` \
  -fno-rtti -c tut02_pp.cpp
  g++ -o tut02 tut02_pp.o `[LLVM_PATH]/llvm/Debug/bin/llvm-config \
  --ldflags` -lCIndex
When I try to use tut02 on an input-file it ends with:
  equal '='
input01.c:5:13: warning: '/*' within block comment
tut02: TextDiagnosticPrinter.cpp:282: void clang::TextDiagnosticPrinter::
  EmitCaretDiagnostic(clang::SourceLocation, clang::SourceRange*, unsigned int, clang::SourceManager&, const clang::CodeModificationHint*, unsigned int, unsigned int): Assertion `LangOpts && "Unexpected diagnostic outside source file processing"' failed.
Aborted
What did I wrong?
Is there a better way to start with clang?
thank, Matthias

input01.c (161 Bytes)

PPContext.h (1.53 KB)

tut01_pp.cpp (235 Bytes)

tut02_pp.cpp (926 Bytes)