Google Parsing Of LLVM's Clang Compiler Errors

Posted by Michael Larabel on November 21, 2012

Another interesting session from this month's LLVM Developers' Meeting in San Jose was about how Google manages to collect and utilize Clang diagnostics internally for software they develop at the company.

Matt Beaumont-Gay of Google talked at the LLVM compiler conference about how they parse, store, and analyze the output of diagnostics (code warnings/errors) produced by LLVM. Google's in-house build system stores the output of all shared code-bases that occur. Matt ended up writing a MapReduce and using thje LLVM/Clang output as its input. "We now have a daily batch job that crunches through all of the compiler stderr from the last day, parses out detailed, structured information about the diagnostics that Clang produced, and writes the information into a database for later analysis."

For those interested, there are PDF slides on how Google leverages LLVM/Clang diagnostics and the most common compiler errors they hit with their internal code-bases.

Discuss this article in our forums, IRC channel, or email the author. You can also follow our content via RSS and on social networks like Facebook, Identi.ca, and Twitter (@Phoronix and @MichaelLarabel). Subscribe to Phoronix Premium to view our content without advertisements, view entire articles on a single page, and experience other benefits.
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite