liangdaxian / make-it-so

Automatically exported from code.google.com/p/make-it-so
0 stars 0 forks source link

Additional common C++ source file extensions... #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a C++ project with source files not using ".cpp" or ".c".
2. ???
3. Profit

What is the expected output? What do you see instead?
The expected output is "proper" makefiles. The actual output is "improper" 
makefiles.

What version of the product are you using? On what operating system?
Visual Studio 2008, Windows XP 

Please provide any additional information below.
The parsing for C++ projects checks if the file extensions match:
.c
.cpp

Unfortunately, common C++ source file extensions include (according to "man 
g++"):
.cc
.cp
.cxx
.cpp
.CPP
.c++
.C

I modified the code to include the following extensions:
.cxx
.cc
Note I made the changes mostly as a quick fix for my own purposes -- A more 
complete fix might include the common extensions and allow additional 
extensions from the config file?

Original issue reported on code.google.com by root...@gmail.com on 5 Jan 2012 at 1:32

Attachments:

GoogleCodeExporter commented 8 years ago
I've fixed this - though Visual Studio doesn't seem to like .c++ or .cp files. 
I added a test for this ('FileExtensions'), including testing .c files, which I 
had been meaning to do for a while.

I had to change the makefile-generator for C files to use gcc instead of g++. 
These now work, so it's two fixes for the price of one.

Richard

Original comment by richard....@gmail.com on 6 Jan 2012 at 12:35

GoogleCodeExporter commented 8 years ago
I'll release this with my next release. This will be the 1.2 release which will 
include VS2010 conversion. It's almost ready - probably released around 15th 
Jan.

Thank you for reporting the bug. I hope that make-it-so is working for you 
apart from this!

Richard

Original comment by richard....@gmail.com on 6 Jan 2012 at 12:37