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
Marco Bubke
flatpak-qt-creator
Commits
2ee75bac
Commit
2ee75bac
authored
Jul 05, 2010
by
Roberto Raggi
Browse files
Get rid of CheckUndefinedSymbol::Use.
parent
04960f9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppcheckundefinedsymbols.h
View file @
2ee75bac
...
...
@@ -30,6 +30,8 @@
#ifndef CPLUSPLUS_CHECKUNDEFINEDSYMBOLS_H
#define CPLUSPLUS_CHECKUNDEFINEDSYMBOLS_H
#include
"cppsemanticinfo.h"
#include
<cplusplus/CppDocument.h>
#include
<cplusplus/LookupContext.h>
#include
<ASTVisitor.h>
...
...
@@ -45,14 +47,7 @@ public:
QList
<
Document
::
DiagnosticMessage
>
operator
()(
AST
*
ast
);
struct
Use
{
// ### remove me
unsigned
line
;
unsigned
column
;
unsigned
length
;
Use
(
unsigned
line
=
0
,
unsigned
column
=
0
,
unsigned
length
=
0
)
:
line
(
line
),
column
(
column
),
length
(
length
)
{}
};
typedef
CppEditor
::
Internal
::
SemanticInfo
::
Use
Use
;
QList
<
Use
>
typeUsages
()
const
;
...
...
src/plugins/cppeditor/cppeditor.cpp
View file @
2ee75bac
...
...
@@ -2062,11 +2062,9 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source)
if
(
TranslationUnit
*
unit
=
doc
->
translationUnit
())
{
CheckUndefinedSymbols
checkUndefinedSymbols
(
unit
,
context
);
diagnosticMessages
=
checkUndefinedSymbols
(
unit
->
ast
());
typeUsages
.
clear
();
foreach
(
const
CheckUndefinedSymbols
::
Use
&
use
,
checkUndefinedSymbols
.
typeUsages
())
// ### remove me
typeUsages
.
append
(
SemanticInfo
::
Use
(
use
.
line
,
use
.
column
,
use
.
length
));
typeUsages
=
checkUndefinedSymbols
.
typeUsages
();
FindObjCKeywords
findObjCKeywords
(
unit
);
FindObjCKeywords
findObjCKeywords
(
unit
);
// ### remove me
objcKeywords
=
findObjCKeywords
();
}
}
...
...
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