clang-tlb-import: misc

rework some comments+prints, remove unused parts, break too long lines.

hopefully no functional changes.

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
clang-tlb-importer: deactivate consts.h

causes an error currently...

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
tlb/import: better error-message on import error

did try to "load" a non-existing file and got no clear error message.

still not nice... the read-file-and-pass-content-as-stream hack causes
using the empty string "" as source-id ... which will break all later
error-messages

maybe add "source_id" as fourth parameter to "Importer::load()" with
empty default value? would have to change all load() implementations...

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
clang-tlb-import: rename variables for clarity

nothing serious. but tripped over this the second time. a variable
called "...Type" should be a Type!

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
clang-tlb-import: completely rework NamingConversions

left no stone on the other...

template-tokenization is now done based on clang-type informations
instead of string-manipulation. makes the behaviour a lot more stable on
"weird" (but legal) variable naming.

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
clang-tlb-import: remove "test-naming-conventions" test

looked like a good idea at the time... not needed if
template-tokenization is done via clang instead of string manipulation

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
clang-tlb-import: adopt to changed signature of cxxToTypelibName()

now the TypelibBuilder gives clang-datatypes into the naming-conversion.
no need anymore to extract the string inside this source-file.

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
clang-tlb-import: fill meta-data with "setHeaderPathForTypeFromDecl()"

before, for types coming from a macro-expansion, two locs where printed
by the SourceManager (and after that entered into the meta-data): the
locations of the macro and the expansion. now doing it manually just for
the expansion.

also now a pointer instead of a reference is given. makes the code
easier, because all other places use pointers to "Typelib::Type"
objects.

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
clang-tlb-import: fill meta-data with "setBaseClassesForTypeFromDecl()"

extracts all bases for the given decl and notes them in the
Typelib::Type

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
clang-tlb-import: fill meta-data with "setDocStringForTypeFromDecl()"

based on the old "printCommentForDecl()" proof of concept

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
clang-tlb-import: rework function "lookupOpaque()"

renamed to "registerOpaque()".

now way shorter and easier to read.

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
clang-tlb-import: remove superfluous function overload

not really needed overloading makes the code more difficult to read.
removing it makes the code easier to read.

Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>