sandboxed-api/sandboxed_api/tools/generator2
Maciej Szawłowski edd6b437ae Filter functions based on files we scan.
Currently we extract all functions from the compilation unit - it doesn't really make sense as it will try to process functions in included files too.
As we require sapi_in flag, we have information which files are of interest.

This change stores the top path in _TranslationUnit and uses it when looking for function definitions to filter only functions from the path we provided.

PiperOrigin-RevId: 297342507
Change-Id: Ie411321d375168f413f9f153a606c1113f55e79a
2020-02-26 06:02:15 -08:00
..
testdata Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
BUILD Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
build_test.sh Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
code_test_util.py Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
code_test.py Filter functions based on files we scan. 2020-02-26 06:02:15 -08:00
code.py Filter functions based on files we scan. 2020-02-26 06:02:15 -08:00
sapi_generator.py Filter functions based on files we scan. 2020-02-26 06:02:15 -08:00