ERROR: unsupported declarator at

Hi teams,
I have a problem.
I got this is log after I scan source code. The source is C++ and C#, C++ is main

17:16:08  ERROR: unsupported declarator at 135
17:16:08  ERROR: unsupported declarator at 140
17:16:08  ERROR: unsupported declarator at 144
17:16:11  ERROR: unsupported declarator at 437
17:17:21  ERROR: unsupported declarator at 228
17:17:21  ERROR: unsupported declarator at 237
17:17:21  ERROR: unsupported declarator at 709
17:17:21  ERROR: unsupported declarator at 738
17:17:21  ERROR: unsupported declarator at 753
17:17:21  ERROR: unsupported declarator at 768
17:17:21  ERROR: unsupported declarator at 957
17:19:55  ERROR: unsupported declarator at 403
17:19:55  ERROR: unsupported declarator at 406
17:19:55  ERROR: unsupported declarator at 410
17:19:55  ERROR: unsupported declarator at 413
17:24:21  WARN: Cannot parse '#elif ', ignoring...
17:25:20  ERROR: unsupported declarator at 2021
17:27:57  WARN: Cannot parse '#elif ', ignoring...

Comment code has Japan languages and encoding UTF8-BOM. I am confused that don’t know that’s the cause or not ?
I want ask to you how to fix this.

Thanks!!

Hey there.

As requested in the the template post – what version of SonarQube are you using, and what edition?

Hi Colin
I’m using version sonar scanner 4.6.2 for windows

I mean the version of your SonarQube server, it can be found in the footer of your instance.

I’m using Community Edition - Version 9.9 build 65466

Well, without more logs, I have to assume that a Community Edition analyzing C++ is using GitHub - SonarOpenCommunity/sonar-cxx: SonarQube C++ Community plugin (cxx plugin): This plugin adds C++ support to SonarQube with the focus on integration of existing C++ tools.

And you probably want to raise an issue on their repo.

Hi Colin
I send to you log
log.txt (136.4 KB)

13:00:58 INFO: Sensor CXX [cxx]

Yep, it’s the Community C/C++ plugin. You should reach out to the maintainer. :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.