Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDevPlatform
Commits
ad827b58
Commit
ad827b58
authored
Oct 10, 2015
by
Sven Brauch
Browse files
document declaration: use DUChainUtils to get the arguments context
This works for Python as well, then. BUG:330725
parent
5de77e13
Changes
1
Hide whitespace changes
Inline
Side-by-side
language/codegen/codedescription.cpp
View file @
ad827b58
...
...
@@ -19,6 +19,7 @@
#include
"codedescription.h"
#include
"util/debug.h"
#include
<language/duchain/duchainutils.h>
#include
<language/duchain/duchainlock.h>
#include
<language/duchain/duchain.h>
#include
<language/duchain/declaration.h>
...
...
@@ -105,9 +106,9 @@ FunctionDescription::FunctionDescription(const DeclarationPointer& declaration)
DUContext
*
context
=
declaration
->
internalContext
();
DUChainPointer
<
FunctionDeclaration
>
function
=
declaration
.
dynamicCast
<
FunctionDeclaration
>
();
if
(
function
&&
function
->
internalFunctionContext
()
)
if
(
function
)
{
context
=
function
->
internalFunctionContext
(
);
context
=
DUChainUtils
::
getArgumentContext
(
declaration
.
data
()
);
}
DUChainPointer
<
ClassFunctionDeclaration
>
method
=
declaration
.
dynamicCast
<
ClassFunctionDeclaration
>
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment