<div dir="ltr">hi All,<div><br></div><div>would like to know is it possible to get the same warning while run the analyzer as it was produce by simple compilation?</div><div><br></div><div>when i give this input `test.c`</div>
<div><br></div><div>| typedef int __attribute__((visibility("default"))) bar;</div><div><br></div><div>and run Clang against it, i get this warning...</div><div><br></div><div><div>| $ clang -c test.c </div><div>
| test.c:1:28: warning: 'visibility' attribute ignored [-Wignored-attributes]</div><div>| typedef int __attribute__((visibility("default"))) bar;</div><div>|                           ^</div><div>| 1 warning generated.</div>
</div><div><br></div><div>but when i run the analyzer, i got nothing like that</div><div><br></div><div><div>| $ clang -### --analyze -x c test.c </div><div><br></div></div><div>then i execute the last line of this output</div>
<div><br></div><div>| $ "clang" "-cc1" ....</div><div><br></div><div>and it does not generate the warning. my question would be: is it possible to get that warning by passing some extra flags? or it will never appear during the analysis? thanks for any help.</div>
<div><br></div><div>regards,</div><div>Laszlo</div></div>