• Get Review Board
  • What's New
  • Products
  • Review Board Code review, image review, and document review
  • Documentation
  • Release Notes
  • Power Pack Enterprise integrations, reports, and enhanced document review
  • Try for 60 Days
  • Purchase
  • RBCommons Review Board as a Service, hosted by us
  • Pricing
  • RBTools Command line tools and Python API for Review Board
  • Documentation
  • Release Notes
  • Review Bot Automated code review, connecting tools you already use
  • Documentation
  • Release Notes
  • RB Gateway Manage Git and Mercurial repositories in your network
  • Documentation
  • Release Notes
  • Learn and Explore
  • What is Code Review?
  • Documentation
  • Frequently Asked Questions
  • Support Options
  • Third-Party Integrations
  • Demo
  • Review Board RBTools Power Pack Review Bot Djblets RB Gateway
    1. Review Bot 2.0
    2. Version 4.x
    3. Version 3.0
    4. Version 2.0
    5. Version 1.0
    6. Review Bot Tools
    7. Clang Static Analyzer
  • Home
  • Installation
  • Upgrading
  • Configuration
  • Review Bot Tools
  • BuildBot “try”
  • checkstyle
  • Clang Static Analyzer
  • Cppcheck
  • CppLint
  • doc8
  • flake8
  • JSHint
  • PMD
  • pycodestyle
  • pydocstyle
  • pyflakes
  • General Index
  • Release Notes
  • This documentation covers Review Bot 2.0. You can select a version above or view the latest documentation.

    Clang Static Analyzer¶

    The Clang Static Analyzer will attempt to compile your C, C++, or Objective C source code and then check for common programming errors.

    Installation¶

    This tool requires a modern version of the Clang compiler to be installed on the system running the Review Bot worker. This is available through most system package managers on Linux and via the XCode command line tools on Mac OS.

    Configuration¶

    This tool requires full repository access, which is available for Git repositories. Each repository you intend to use must be configured in the Review Bot worker config file. See Worker Configuration for more details.

    Because C, C++, and Objective C source code often requires numerous external dependencies or compile-time flags, the tool configuration allows you to specify additional command line arguments that will be passed to clang. It’s recommended that you set up the worker on a system which is already set up to build your software in order to ensure that the necessary build environment is available.

    Keep up with the latest Review Board releases, security updates, and helpful information.

    About
    News
    Demo
    RBCommons Hosting
    Integrations
    Happy Users
    Support Options
    Documentation
    FAQ
    User Manual
    RBTools
    Administration Guide
    Power Pack
    Release Notes
    Downloads
    Review Board
    RBTools
    Djblets
    Power Pack
    Package Store
    PGP Signatures
    Contributing
    Bug Tracker
    Submit Patches
    Development Setup
    Wiki
    Follow Us
    Mailing Lists
    Reddit
    Twitter
    Mastodon
    Facebook
    YouTube

    Copyright © 2006-2025 Beanbag, Inc. All rights reserved.

    Terms of Service — Privacy Policy — AI Ethics Policy — Branding

    On this page

    • [Top]
    • Installation
    • Configuration