PDA

View Full Version : Grep? Effective c++ Violations with Xcode


vbuser1338
2006.04.21, 07:02 PM
I want to enable Effective c++ violations for my project but I have tons of warnings when I compile my project. I get around 900 warnings which makes it really hard to look for warnings that are created by my code. Most of the warnings are comming from the Standard Headers so I have a hard time trying to find the warnings I am looking for. In the Project Settings window in Xcode it says:
If you use this option, you should be aware that the standard library headers do not obey all of these guidelines; you can use grep -v to filter out those warnings.
I have searched around google and there seems to be lots of documentation about finding text in files from the command line with grep but I can't figure out how to filter warnings. Could someone help me figure out how to filter my warnings?
Thanks,
vbuser

OneSadCookie
2006.04.22, 02:46 AM
I'm not aware of any way to do it within Xcode. You can copy and paste the build command from the detailed build log into a Terminal window, run it yourself, and filter the results with grep.

vbuser1338
2006.04.22, 09:59 AM
Thanks for the help. I wish there was a way through Xcode but I guess there isn't.