Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Code Warrior > Command-line op...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 457 of 537
Post > Topic >>

Command-line options for strict language conformance [repost]

by "Jonathan Turkanis" <technews@[EMAIL PROTECTED] > Jun 10, 2005 at 05:11 PM

[I'm reposting this because my previous message appeared as a reply to
another
message]

Hi all,

I'm trying to figure out how the command line options for strict ANSI
conformance map to the options under "C/C++ Language" on the Target
Settings
Window.

Specifically, is it correct that:

* "-ansi strict" is the same as "ANSI Strict"
* "-stdkeywords" on is the same as "ANSI Keywords Only"
* "-enum int" is the same as "Enums Always Int
* "-iso_templates" on is the same as "ISO C++ Template Parser"

If so, does this mean there is no IDE counterpart to "-strict on"?

Also, why is enum size tied to ANSI conformance? I know there are
requirements
on the size of enums, but the standard doesn't require that enums always
have
the size of int.

Finally, what's the relation between "-iso_templates" and the pragmas
"parse_func_templ", "parse_mfunc_templ" and "warn_no_typename"?

Best Regards,
Jonathan
 




 2 Posts in Topic:
Command-line options for strict language conformance [repost]
"Jonathan Turkanis&q  2005-06-10 17:11:26 
Re: Command-line options for strict language conformance [repost
MW Ron <mwron@[EMAIL P  2005-06-20 11:16:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 1:15:15 CDT 2008.