> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qlty.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# C / C++ Language Support

## Summary

<table className="pretty-table">
  <thead>
    <tr>
      <th style={{ width: "35%" }}>Feature</th>
      <th style={{ width: "20%" }}>Status</th>
      <th style={{ width: "45%" }}>Notes</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>[Maintainability](/cloud/maintainability/metrics)</td>
      <td>✔</td>
      <td>Complexity, duplication, code smells</td>
    </tr>

    <tr>
      <td>[Linting](/linting)</td>
      <td>✔</td>
      <td>Via Semgrep</td>
    </tr>

    <tr>
      <td>[Custom checks](/custom-checks)</td>
      <td>✔</td>

      <td />
    </tr>

    <tr>
      <td>[Security scanning](/cloud/security/framework)</td>
      <td>✔</td>
      <td>AppSec and secrets</td>
    </tr>

    <tr>
      <td>[Code metrics](/cloud/maintainability/metrics)</td>
      <td>✔</td>

      <td />
    </tr>

    <tr>
      <td>[Code coverage](/coverage)</td>
      <td>✔</td>
      <td>Via gcov / LCOV</td>
    </tr>
  </tbody>
</table>

## Details

<table className="pretty-table">
  <tbody>
    <tr className="divider-row">
      <td style={{ width: "35%" }}>Maintainability</td>

      <td style={{ width: "20%" }} />

      <td style={{ width: "45%" }} />
    </tr>

    <tr>
      <td>[Complexity](/complexity)</td>
      <td>✔</td>
      <td>Aka cognitive complexity</td>
    </tr>

    <tr>
      <td>[Cyclomatic complexity](/complexity#difference-from-cyclomatic-complexity)</td>
      <td>✔</td>

      <td />
    </tr>

    <tr>
      <td>[Identical code duplication](/duplication)</td>
      <td>✔</td>

      <td />
    </tr>

    <tr>
      <td>[Similar code duplication](/duplication)</td>
      <td>✔</td>

      <td />
    </tr>

    <tr>
      <td>[Code smells](/code-smells)</td>
      <td>✔</td>

      <td />
    </tr>

    <tr className="divider-row">
      <td>Linters</td>

      <td />

      <td />
    </tr>

    <tr>
      <td>[Semgrep](https://semgrep.dev)</td>
      <td>✔</td>
      <td>Static analysis with a community rule library</td>
    </tr>

    <tr className="divider-row">
      <td>Custom checks</td>

      <td />

      <td />
    </tr>

    <tr>
      <td>[ast-grep](https://github.com/ast-grep/ast-grep)</td>
      <td>✔</td>

      <td />
    </tr>

    <tr>
      <td>[Semgrep](https://semgrep.dev)</td>
      <td>✔</td>

      <td />
    </tr>

    <tr>
      <td>[ripgrep](https://github.com/BurntSushi/ripgrep)</td>
      <td>✔</td>

      <td />
    </tr>

    <tr className="divider-row">
      <td>Security scanning</td>

      <td />

      <td />
    </tr>

    <tr>
      <td>[Gitleaks](https://gitleaks.io/)</td>
      <td>✔</td>
      <td>Secrets scanning</td>
    </tr>

    <tr>
      <td>[Semgrep](https://semgrep.dev)</td>
      <td>✔</td>
      <td>AppSec (SAST)</td>
    </tr>

    <tr>
      <td>[Trivy](https://trivy.dev)</td>
      <td>✔</td>
      <td>Dependency scanning (SCA) for Conan</td>
    </tr>

    <tr>
      <td>[TruffleHog](https://trufflesecurity.com/trufflehog)</td>
      <td>✔</td>
      <td>Secrets scanning</td>
    </tr>

    <tr className="divider-row">
      <td>Code coverage</td>

      <td />

      <td />
    </tr>

    <tr>
      <td>[gcov](https://gcc.gnu.org/onlinedocs/gcc/Gcov.html) / [lcov](https://github.com/linux-test-project/lcov)</td>
      <td>✔</td>

      <td />
    </tr>

    <tr>
      <td>LCOV coverage format</td>
      <td>✔</td>

      <td />
    </tr>

    <tr>
      <td>Cobertura coverage format</td>
      <td>✔</td>

      <td />
    </tr>
  </tbody>
</table>

## File extensions

By default, C files are defined as:

```
[file_types.c]
globs = ["*.c"]
```

By default, C++ files are defined as:

```
[file_types.cpp]
globs = ["*.cpp", "*.hpp", "*.cc", "*.cxx", "*.c++", "*.h", "*.h++", "*.hh", "*.hxx"]
```

These patterns can be overridden from `qlty.toml`.
