# Static analyze tool for native plugin (GCC)

**URL:** <https://discuss.gradle.org/t/static-analyze-tool-for-native-plugin-gcc/11662>\
**Category:** Help/Discuss\
**Created:** [September 15, 2015, 10:25am UTC](https://discuss.gradle.org/t/static-analyze-tool-for-native-plugin-gcc/11662 "2015-09-15T10:25:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pingvvino](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pingvvino](https://discuss.gradle.org/u/pingvvino)\
**Post date:** [September 15, 2015, 10:25am UTC](https://discuss.gradle.org/t/static-analyze-tool-for-native-plugin-gcc/11662/1 "2015-09-15T10:25:29Z")

</div>

Hi,

I’d like to add static analyze tools (PRQA QAC) for analyze my C/C++ project. As a standard static analyze tool it should work like a wrapper for compilator. It should have the same compilation option and the same includes.

I have few option to handle such a thing:

1. Add parallel toolchain e.g.  
`
QAC(Gcc) {
target(“qac”){
cCompiler.executable = ‘qac.exe’
`

2. Write a plugin

3. A task, which would read all sources and one by one replace complication command from gcc to another. Something like that:  
`
task (“qac”){
allprojects{
binaries.all { binary ->
sources.withType(CSourceSet) { source ->
… do some magic to read each compilaton line
}
}
}
}
}
`

What would be the most sufficient way implement it?
