# How to identify the "analyzed part" in C code with different definition condition block

**URL:** <https://community.sonarsource.com/t/how-to-identify-the-analyzed-part-in-c-code-with-different-definition-condition-block/40913>\
**Category:** SonarQube Server / Community Build\
**Tags:** cfamily\
**Created:** [March 31, 2021, 2:56am UTC](https://community.sonarsource.com/t/how-to-identify-the-analyzed-part-in-c-code-with-different-definition-condition-block/40913 "2021-03-31T02:56:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deron.chen](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@deron.chen](https://community.sonarsource.com/u/deron.chen)\
**Post date:** [March 31, 2021, 2:56am UTC](https://community.sonarsource.com/t/how-to-identify-the-analyzed-part-in-c-code-with-different-definition-condition-block/40913/1 "2021-03-31T02:56:05Z")

</div>

Hi all,

I’m now using SonarQube 8.5 to analyze our C code projects.  
as [THIS](https://community.sonarsource.com/t/effect-of-ifdef-on-the-scan/5219) mentioned, SonarQube only analyzes those “included” parts in C.

Although SonarQube only analyzes the “included” part, It still lists all parts of the code on the website.  
Is there any way to “hide” those “un-included” codes or any method to identify the “analyzed” part instead of identifying them by the “test coverage” red/green bar?

Thanks.

---

<div class="post-metadata">

**Author:** ![JolyLoic](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jolyloic/32/199_2.png) [@JolyLoic](https://community.sonarsource.com/u/JolyLoic)\
**Post date:** [April 9, 2021, 5:49pm UTC](https://community.sonarsource.com/t/how-to-identify-the-analyzed-part-in-c-code-with-different-definition-condition-block/40913/2 "2021-04-09T17:49:57Z")

</div>

Hello @deron.chen,

There is currently no way to do that. I can understand the interest for such a feature, and will forward this suggestion.

---

<div class="post-metadata">

**Author:** ![deron.chen](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@deron.chen](https://community.sonarsource.com/u/deron.chen)\
**Post date:** [April 12, 2021, 1:52am UTC](https://community.sonarsource.com/t/how-to-identify-the-analyzed-part-in-c-code-with-different-definition-condition-block/40913/4 "2021-04-12T01:52:32Z")

</div>

Thanks for answering. 😁

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [April 19, 2021, 1:53am UTC](https://community.sonarsource.com/t/how-to-identify-the-analyzed-part-in-c-code-with-different-definition-condition-block/40913/5 "2021-04-19T01:53:12Z")

</div>

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