# SonarCloud refuses to analyse C/C++ code (Open Source Project)

**URL:** <https://community.sonarsource.com/t/sonarcloud-refuses-to-analyse-c-c-code-open-source-project/22273>\
**Category:** SonarQube Cloud\
**Created:** [March 28, 2020, 3:50pm UTC](https://community.sonarsource.com/t/sonarcloud-refuses-to-analyse-c-c-code-open-source-project/22273 "2020-03-28T15:50:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![netchild](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/netchild/32/10448_2.png) [@netchild](https://community.sonarsource.com/u/netchild)\
**Post date:** [March 28, 2020, 3:50pm UTC](https://community.sonarsource.com/t/sonarcloud-refuses-to-analyse-c-c-code-open-source-project/22273/1 "2020-03-28T15:50:00Z")

</div>

When I try to analyse a public github repositry with the free SonarCloud offering, it tells that all the C/C++ code will be ignored. Patrick McKinney from SonarSource told me this is supposed to be supported and I shall ask here. So… what did I do wrong?

- ALM used: GitHub
- CI system used: none
- Scanner command used when applicable (private details masked): none
- Languages of the repository: C/C++, Assembly, Makefile, Shell, Yacc, M4, DTrace, Awk,  
Forthm RPC, Lua, GDB
- Only if the SonarCloud project is public, the URL: [https://github.com/netchild/freebsd](https://github.com/netchild/freebsd)
- Error observed (wrap logs/code around with triple quotes ``` for proper formatting):

```auto
99.45% Lines of Code will be ignored (C, C++, Roff, Shell, Makefile, Assembly, Perl, Objective-C, Yacc, M4, DTrace, NASL, Awk, Lex, Forth, CMake, RPC, C#, Lua, Java, PLpgSQL, Raku, 1C Enterprise, AGS Script, TeX, GAP, Mathematica, Batchfile, Emacs Lisp, Starlark, Tcl, Smarty, sed, Vim script, PostScript, GDB, Turing, IGOR Pro, M, DIGITAL Command Language, Haskell, KRL, Scheme, Max, Limbo, SWIG, D, Module Management System, Rebol, Pawn, SuperCollider, Dockerfile, R, VBScript, EmberScript, Scilab, Pascal, ChucK, Terra files)

```

- Steps to reproduce:

```auto
fork FreeBSD to your github account
Login to SolarCloud via your github account
add a new project in SonarCloud
select your repo
chose the public/free tier

```

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [March 28, 2020, 6:52pm UTC](https://community.sonarsource.com/t/sonarcloud-refuses-to-analyse-c-c-code-open-source-project/22273/2 "2020-03-28T18:52:33Z")

</div>

Hey there.

Sounds like you’re trying too scan your codebase with Automatic Analysis (Autoscan) – which right now doesn’t support C/C++ code.

> The following languages are currently supported:
> 
> ABAP, Apex, CSS, Flex, Go, HTML, JS, Kotlin, PHP, Python, Ruby, Scala, Swift, TypeScript, XML.

Your code can still be scanned ([at least the languages SonarCloud supports](https://sonarcloud.io/about)), you’ll just need to configure the analysis manually and have it run as a part of your CI/CD process.

 ![Screenshot 2020-03-28 at 19.50.25](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/2/20a03553e7bb87edee8f20b35c7236a3efa1776a.png)

---

<div class="post-metadata">

**Author:** ![netchild](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/netchild/32/10448_2.png) [@netchild](https://community.sonarsource.com/u/netchild)\
**Post date:** [April 13, 2020, 12:19pm UTC](https://community.sonarsource.com/t/sonarcloud-refuses-to-analyse-c-c-code-open-source-project/22273/3 "2020-04-13T12:19:10Z")

</div>

Hi,

is the source code of the linux build wrapper available somewhere, so that I can port it to FreeBSD? The code of FreeBSD needs to be build inside FreeBSD, as such I would need a FreeBSD version of the build wrapper. If the source code is available somewhere (I didn’t find it on github, maybe I looked in the wrong project folders), I could have a look at porting it to FreeBSD.

Bye,  
Alexander.
