Another attempt to create a ruleset on when to update a declaration and when not to
author Sven Brauch
()
committer Sven Brauch
()
commit 9b31ac98e6957354d397b6abfb1d34ebb663b54c
tree 21ca4c392d696c93b8d3aa9ff90e73a0d3d17979
parent 500280baf52e9dceb332d02cc0ab661bd8e4832b
Another attempt to create a ruleset on when to update a declaration and when not to

The DUChain won't allow a FunctionDeclaration to have a non-function type, and
won't allow a non-FunctionDeclaration to have a function type. That's a problem
for code like this:
foo = 3
def foo(): pass
There's a set of ugly workarounds (which got changed in this commit), but a proper fix
is needed urgently.
duchain/contextbuilder.cpp
duchain/declarationbuilder.cpp
duchain/declarationbuilder.h
duchain/types/hintedtype.cpp