Fixup colorization of class members for clang's DUChain structure.

Authored by mwolff on Feb 14 2016, 11:15 PM.

Description

Fixup colorization of class members for clang's DUChain structure.

The code in CodeHighlightingInstance::localClassFromCodeContext did
not work for the DUContext hierarchy build by kdev-clang: It puts
the function-body Other contexts into the Function context that
contains the arguments. This is very convenient, but was not supported
by the code that looks for the accompanying class during highlighting.

With this patch applied, we finally get the orangish colors for
members back! They no longer are colored like other globals!

Details

Committed
mwolffFeb 14 2016, 11:28 PM
Parents
R32:d3695ca9f075: Remove duplicated check.
Branches
Unknown
Tags
Unknown