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
Morten Volden
kdevelop
Commits
92471fc1
Commit
92471fc1
authored
Jun 30, 2016
by
Kevin Funk
☕
Browse files
Minor: Turn comments into proper apidoc
parent
a9ae20b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
languages/clang/duchain/unknowndeclarationproblem.cpp
View file @
92471fc1
...
...
@@ -52,7 +52,7 @@
using
namespace
KDevelop
;
namespace
{
/* Under some conditions, such as when looking up suggestions
/*
*
Under some conditions, such as when looking up suggestions
* for the undeclared namespace 'std' we will get an awful lot
* of suggestions. This parameter limits how many suggestions
* will pop up, as rarely more than a few will be relevant anyways
...
...
@@ -106,7 +106,7 @@ QStringList scanIncludePaths( const QString& identifier, const QDir& dir, int ma
return
candidates
;
}
/*
/*
*
* Find files in dir that match the given identifier. Matches common C++ header file extensions only.
*/
QStringList
scanIncludePaths
(
const
QualifiedIdentifier
&
identifier
,
const
KDevelop
::
Path
::
List
&
includes
)
...
...
@@ -122,7 +122,7 @@ QStringList scanIncludePaths( const QualifiedIdentifier& identifier, const KDeve
return
candidates
;
}
/*
/*
*
* Determine how much path is shared between two includes.
* boost/tr1/unordered_map
* boost/tr1/unordered_set
...
...
@@ -334,7 +334,7 @@ QStringList duchainCandidates( const QualifiedIdentifier& identifier, const KDev
return
candidates
;
}
/*
/*
*
* Takes a filepath and the include paths and determines what directive to use.
*/
ClangFixit
directiveForFile
(
const
QString
&
includefile
,
const
KDevelop
::
Path
::
List
&
includepaths
,
const
KDevelop
::
Path
&
source
)
...
...
@@ -385,16 +385,14 @@ ClangFixit directiveForFile( const QString& includefile, const KDevelop::Path::L
KDevelop
::
Path
::
List
includePaths
(
const
KDevelop
::
Path
&
file
)
{
/*
* Find project's custom include paths
*/
// Find project's custom include paths
const
auto
source
=
file
.
toLocalFile
();
const
auto
item
=
ICore
::
self
()
->
projectController
()
->
projectModel
()
->
itemForPath
(
KDevelop
::
IndexedString
(
source
)
);
return
IDefinesAndIncludesManager
::
manager
()
->
includes
(
item
);
}
/*
/*
*
* Return a list of header files viable for inclusions. All elements will be unique
*/
QStringList
includeFiles
(
const
QualifiedIdentifier
&
identifier
,
const
KDevelop
::
Path
&
file
,
const
KDevelop
::
DocumentRange
&
range
)
...
...
@@ -416,7 +414,7 @@ QStringList includeFiles( const QualifiedIdentifier& identifier, const KDevelop:
return
scanIncludePaths
(
identifier
,
includes
);
}
/*
/*
*
* Construct viable forward declarations for the type name.
*
* Currently we're not able to determine what is namespaces, class names etc
...
...
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