Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
2ebaf3fe
Commit
2ebaf3fe
authored
Aug 11, 2010
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of the #warning directives.
parent
f34fd810
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
12 deletions
+15
-12
src/libs/cplusplus/LookupContext.cpp
src/libs/cplusplus/LookupContext.cpp
+2
-2
src/libs/cplusplus/ResolveExpression.cpp
src/libs/cplusplus/ResolveExpression.cpp
+4
-3
src/plugins/cpptools/cppcodecompletion.cpp
src/plugins/cpptools/cppcodecompletion.cpp
+1
-1
src/plugins/debugger/watchutils.cpp
src/plugins/debugger/watchutils.cpp
+1
-2
src/shared/cplusplus/CheckExpression.cpp
src/shared/cplusplus/CheckExpression.cpp
+4
-1
src/shared/cplusplus/Symbols.cpp
src/shared/cplusplus/Symbols.cpp
+1
-1
tests/auto/cplusplus/ast/tst_ast.cpp
tests/auto/cplusplus/ast/tst_ast.cpp
+1
-1
tests/auto/cplusplus/semantic/tst_semantic.cpp
tests/auto/cplusplus/semantic/tst_semantic.cpp
+1
-1
No files found.
src/libs/cplusplus/LookupContext.cpp
View file @
2ebaf3fe
...
...
@@ -283,7 +283,7 @@ QList<LookupItem> LookupContext::lookup(const Name *name, Scope *scope) const
}
else
if
(
Function
*
fun
=
scope
->
asFunction
())
{
bindings
()
->
lookupInScope
(
name
,
fun
,
&
candidates
,
/*templateId = */
0
,
/*binding=*/
0
);
#warning robe: lookup in template parameters
// ### port me
#if 0
for (TemplateParameters *it = fun->templateParameters(); it && candidates.isEmpty(); it = it->previous())
bindings()->lookupInScope(name, it->scope(), &candidates, /* templateId = */ 0, /*binding=*/ 0);
...
...
@@ -310,7 +310,7 @@ QList<LookupItem> LookupContext::lookup(const Name *name, Scope *scope) const
break
;
// it's a formal argument.
}
else
if
(
Class
*
klass
=
scope
->
asClass
())
{
#warning robe: lookup in template parameters
// ### port me
#if 0
for (TemplateParameters *it = klass->templateParameters(); it && candidates.isEmpty(); it = it->previous())
bindings()->lookupInScope(name, it->scope(), &candidates, /* templateId = */ 0, /*binding=*/ 0);
...
...
src/libs/cplusplus/ResolveExpression.cpp
View file @
2ebaf3fe
...
...
@@ -50,8 +50,6 @@ using namespace CPlusPlus;
namespace
{
const
bool
debug
=
!
qgetenv
(
"CPLUSPLUS_DEBUG"
).
isEmpty
();
template
<
typename
_Tp
>
static
QList
<
_Tp
>
removeDuplicates
(
const
QList
<
_Tp
>
&
results
)
{
...
...
@@ -549,8 +547,11 @@ bool ResolveExpression::visit(ArrayAccessAST *ast)
QList
<
LookupItem
>
ResolveExpression
::
getMembers
(
ClassOrNamespace
*
binding
,
const
Name
*
memberName
)
const
{
Q_UNUSED
(
binding
);
Q_UNUSED
(
memberName
);
// ### port me
QList
<
LookupItem
>
members
;
#warning robe: enable template instantiation
#if 0
const QList<LookupItem> originalMembers = binding->find(memberName);
...
...
src/plugins/cpptools/cppcodecompletion.cpp
View file @
2ebaf3fe
...
...
@@ -1852,7 +1852,7 @@ void CppCodeCompletion::complete(const TextEditor::CompletionItem &item, QChar t
if
(
!
function
->
hasReturnType
()
&&
(
function
->
identity
()
&&
!
function
->
identity
()
->
isDestructorNameId
()))
{
// Don't insert any magic, since the user might have just wanted to select the class
#warning robe: "don't insert matching ( when the selected symbol is a template"
/// ### port me
#if 0
} else if (function->templateParameterCount() != 0 && typedChar != QLatin1Char('(')) {
// If there are no arguments, then we need the template specification
...
...
src/plugins/debugger/watchutils.cpp
View file @
2ebaf3fe
...
...
@@ -124,8 +124,7 @@ QDebug operator<<(QDebug d, const Scope &scope)
str
<<
" function"
;
if
(
scope
.
isFunction
())
str
<<
" prototype"
;
#warning robe fix me
#if 0
#if 0 // ### port me
if (const Symbol *owner = &scope) {
str << " owner: ";
debugCppSymbolRecursion(str, o, *owner, false, 0);
...
...
src/shared/cplusplus/CheckExpression.cpp
View file @
2ebaf3fe
...
...
@@ -312,8 +312,10 @@ bool CheckExpression::visit(UnaryExpressionAST *ast)
bool
CheckExpression
::
visit
(
QtMethodAST
*
ast
)
{
(
void
)
ast
;
// ### port this code
#if 0
const Name *name = 0;
#warning robe set a valid scope
Scope *dummy = 0;
FullySpecifiedType methTy = semantic()->check(ast->declarator, FullySpecifiedType(),
dummy, &name);
...
...
@@ -328,6 +330,7 @@ bool CheckExpression::visit(QtMethodAST *ast)
"argument should be anonymous");
}
}
#endif
return
false
;
}
...
...
src/shared/cplusplus/Symbols.cpp
View file @
2ebaf3fe
...
...
@@ -963,7 +963,7 @@ bool ObjCMethod::hasReturnType() const
unsigned
ObjCMethod
::
argumentCount
()
const
{
#warning robe implemen
t me
// ### por
t me
return
memberCount
();
}
...
...
tests/auto/cplusplus/ast/tst_ast.cpp
View file @
2ebaf3fe
...
...
@@ -22,7 +22,7 @@ public:
bool
blockErrors
=
false
,
bool
qtMocRun
=
false
)
{
const
StringLiteral
*
fileId
=
control
.
findOrInsertS
tringLiteral
(
"<stdin>"
);
const
StringLiteral
*
fileId
=
control
.
s
tringLiteral
(
"<stdin>"
);
TranslationUnit
*
unit
=
new
TranslationUnit
(
&
control
,
fileId
);
unit
->
setObjCEnabled
(
true
);
unit
->
setQtMocRunEnabled
(
qtMocRun
);
...
...
tests/auto/cplusplus/semantic/tst_semantic.cpp
View file @
2ebaf3fe
...
...
@@ -38,7 +38,7 @@ public:
bool
enableObjc
,
bool
qtMocRun
)
{
const
StringLiteral
*
fileId
=
control
->
findOrInsertS
tringLiteral
(
"<stdin>"
);
const
StringLiteral
*
fileId
=
control
->
s
tringLiteral
(
"<stdin>"
);
TranslationUnit
*
unit
=
new
TranslationUnit
(
control
.
data
(),
fileId
);
unit
->
setSource
(
source
.
constData
(),
source
.
length
());
unit
->
setObjCEnabled
(
enableObjc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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