Articles tagged with clang

Error Messages in clang

One of the requirements for clang — the new C++ compiler — was to provide the user with detailed information about errors. Let’s look at a small example.

[]double UniversalGravitation(double G, double mass1, double mass2, double distance) {     double F = G * ((mass1 * mass2)/(distance * dsitance));     return F; }

There’s a typo …

Threw Out a Chunk of Code

Today I removed the old C++ parser from the project. Thanks to a fellow graduate (almost), who talked some sense into me about doing this. I decided to integrate clang — an open-source C++ compiler. It’s written in C++, compiles to the llvm intermediate representation, and is also supposedly faster …