Merge: Improve loader
authorJean Privat <jean@pryen.org>
Thu, 2 Apr 2015 04:10:22 +0000 (11:10 +0700)
committerJean Privat <jean@pryen.org>
Thu, 2 Apr 2015 07:55:58 +0000 (14:55 +0700)
commit3bdbd3403c23320ab59634dff8ae5286ff2dbbb1
tree358139e39216459e9f4209f487ba516ee130170e
parent59e1e4080f6ba85f50c150cf5a3d825ae1aad353
parent4d8c87e3218b35f353992ad6e25da36ab724040c
Merge: Improve loader

This PR improves the loader that can now accepts

* directories of projects: to load all modules of all projects (eg `contrib`)
* root directories of groups: to load all modules of the groups (eg `contrib/benitlux`).
  Previously, this worked if there was no `src` subdirectory)

This works for tools that rely on full_parse (basically all tools except the engines).

~~~sh
$ ./test_test_phase ../lib -q
It works
I have 89 projects
I have 285 modules
I have 1038 classes
For 1366 definitions of classes
I have 7101 methods
For 9098 definitions of methods
~~~

Note that if any files has an error most tools will just stop.

Pull-Request: #1229
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>