How do I check syntax in Visual Studio 2008?
-
I used to be able to do this in my earlier version but can't work out how to do it now. It was a quick and useful way to check the syntax of an individual file was OK before compiling. Thanks Greg
-
I used to be able to do this in my earlier version but can't work out how to do it now. It was a quick and useful way to check the syntax of an individual file was OK before compiling. Thanks Greg
Member 868926 wrote:
...check the syntax of an individual file was OK before compiling.
Maybe I'm missing something, but the compiler is checking the syntax. :confused:
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Member 868926 wrote:
...check the syntax of an individual file was OK before compiling.
Maybe I'm missing something, but the compiler is checking the syntax. :confused:
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
It's probably a third party macro or something similar. I remember having written a program that parses all .CPP and .H files in a folder and its sub-folders to check for syntax. It even did a little formatting.
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
It's probably a third party macro or something similar. I remember having written a program that parses all .CPP and .H files in a folder and its sub-folders to check for syntax. It even did a little formatting.
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)«_Superman_» wrote:
...a program that parses all .CPP and .H files in a folder and its sub-folders to check for syntax.
So wouldn't that be a C/C++ compiler but without the resulting .obj file(s)?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
I used to be able to do this in my earlier version but can't work out how to do it now. It was a quick and useful way to check the syntax of an individual file was OK before compiling. Thanks Greg
Unless it's an esoteric add in, the only thing I can think of is that 2008 does not have a "compile this active document" button - so you're doing a compile all instead. I customised 2008 and added the toolbar button myself. I think ctrl-f7 does the same job. Iain.
I have now moved to Sweden for love (awwww).
-
«_Superman_» wrote:
...a program that parses all .CPP and .H files in a folder and its sub-folders to check for syntax.
So wouldn't that be a C/C++ compiler but without the resulting .obj file(s)?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
and without a project and a solution. Let's call it
Parformatter
(Parser + Formatter). :)«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)