fix CSharpTemp.TestDestructors

TestDestructors test cannot be run twice as a static variable holds data from
the first run.

Add an init function to set the static variable to a known state.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
CppParser: remove unnecessary #includes

Use forward declarations to avoid the need to include lots of clang headers.

This drops the compilation time for CppParser from 17.8 seconds to 14.1 seconds
for me.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
CppParser: fix compile warnings

Fix trivial switch/case compile warnings like the one below by adding default
case where suitable, or adding the missing cases when that makes more sense.

enumerator 'LastPreprocessingDirective' in switch of enum 'clang::PreprocessedEntity::EntityKind' is not handled

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
Parser: fix compile warnings

Fix trivial switch/case compile warnings like the one below by adding default
case where suitable, or adding the missing cases when that makes more sense.

enumerator 'LastPreprocessingDirective' in switch of enum 'clang::PreprocessedEntity::EntityKind' is not handled

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
Basic: fix compile warning

'operator|' : recursive on all control paths, function will cause runtime stack overflow

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
Merge pull request #258 from tomba/remove-includes

CppParser: remove unnecessary #includes
Merge pull request #255 from tomba/fix-warnings

Fix trivial warnings
Merge pull request #257 from tomba/fix-test

fix CSharpTemp.TestDestructors