# Is it possible to analyze a single C/C++ source code file without any compilation?

**URL:** <https://community.sonarsource.com/t/is-it-possible-to-analyze-a-single-c-c-source-code-file-without-any-compilation/30101>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube, cfamily, scanner\
**Created:** [August 26, 2020, 7:04am UTC](https://community.sonarsource.com/t/is-it-possible-to-analyze-a-single-c-c-source-code-file-without-any-compilation/30101 "2020-08-26T07:04:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaoFeng1226](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/caofeng1226/32/14551_2.png) [@CaoFeng1226](https://community.sonarsource.com/u/CaoFeng1226)\
**Post date:** [August 26, 2020, 7:04am UTC](https://community.sonarsource.com/t/is-it-possible-to-analyze-a-single-c-c-source-code-file-without-any-compilation/30101/1 "2020-08-26T07:04:20Z")

</div>

Must-share information (formatted with [Markdown](https://commonmark.org/help/)):

- SonarQube, Dev Edition, v 8.4
- analyze C/C++ source code files without any compilation.
- don’t know where to start

---

<div class="post-metadata">

**Author:** ![Abbas](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/abbas/32/5717_2.png) [@Abbas](https://community.sonarsource.com/u/Abbas)\
**Post date:** [August 26, 2020, 9:30am UTC](https://community.sonarsource.com/t/is-it-possible-to-analyze-a-single-c-c-source-code-file-without-any-compilation/30101/2 "2020-08-26T09:30:59Z")

</div>

Hello @CaoFeng1226,

> [@CaoFeng1226](#):
>
> without any compilation

You cannot analyze C and C++ without compilation. What your code means depends on how you build it. That is why wrapping your build with our `build-wrapper` is currently necessary to do the analysis.

Thanks,
