diff options
| author | Billy Donahue <BillyDonahue@users.noreply.github.com> | 2015-08-25 13:53:10 -0400 |
|---|---|---|
| committer | Billy Donahue <BillyDonahue@users.noreply.github.com> | 2015-08-25 13:53:10 -0400 |
| commit | 168ab067835ac9abd0342b9164519a61bb961a41 (patch) | |
| tree | e6827022b66316f9822015304381fe90bd19cc27 /scripts/generator/README | |
| parent | c3d8269e34b965db50385c1b2ec6d5089b500f6d (diff) | |
| parent | 06fcd9ff11705fbe0e0b5e74d062e812502edceb (diff) | |
| download | googletest-168ab067835ac9abd0342b9164519a61bb961a41.tar.gz googletest-168ab067835ac9abd0342b9164519a61bb961a41.tar.bz2 googletest-168ab067835ac9abd0342b9164519a61bb961a41.zip | |
Merge pull request #179 from BillyDonahue/wiki
Catch up with doc fixes from false-start repo
Diffstat (limited to 'scripts/generator/README')
| -rw-r--r-- | scripts/generator/README | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/scripts/generator/README b/scripts/generator/README new file mode 100644 index 00000000..d6f95974 --- /dev/null +++ b/scripts/generator/README @@ -0,0 +1,35 @@ + +The Google Mock class generator is an application that is part of cppclean. +For more information about cppclean, see the README.cppclean file or +visit http://code.google.com/p/cppclean/ + +cppclean requires Python 2.3.5 or later. If you don't have Python installed +on your system, you will also need to install it. You can download Python +from: http://www.python.org/download/releases/ + +To use the Google Mock class generator, you need to call it +on the command line passing the header file and class for which you want +to generate a Google Mock class. + +Make sure to install the scripts somewhere in your path. Then you can +run the program. + + gmock_gen.py header-file.h [ClassName]... + +If no ClassNames are specified, all classes in the file are emitted. + +To change the indentation from the default of 2, set INDENT in +the environment. For example to use an indent of 4 spaces: + +INDENT=4 gmock_gen.py header-file.h ClassName + +This version was made from SVN revision 281 in the cppclean repository. + +Known Limitations +----------------- +Not all code will be generated properly. For example, when mocking templated +classes, the template information is lost. You will need to add the template +information manually. + +Not all permutations of using multiple pointers/references will be rendered +properly. These will also have to be fixed manually. |
