loarabia / Clang-tutorial

A collection of code samples showing usage of clang and llvm as a library
Other
754 stars 122 forks source link

Make the tutorials take command line files #3

Open loarabia opened 14 years ago

loarabia commented 14 years ago

Don't hardcode the sample file in the tutorial -- take it in as a command line argument. This just makes the tutorials easier to play with.

Basically, if no file is specified, use test.c otherwise use the file specified. This is nice to have and will make it easy to pick up.