Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
91208c82
Commit
91208c82
authored
Sep 27, 2010
by
Erik Verbruggen
Committed by
Robert Loehning
Sep 27, 2010
Browse files
C++: Disabled CompleteSwitchCaseStatement: needs bugfixing.
(cherry picked from commit 3ff803d7e2543b64358755702d3c74318bc01736)
parent
533685b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppquickfixes.cpp
View file @
91208c82
...
...
@@ -1338,6 +1338,13 @@ protected:
const
QList
<
LookupItem
>
results
=
typeOfExpression
(
statement
->
condition
,
state
.
document
(),
scope
);
///
/// \note FIXME: the lookup has at least two problems: the result.declaration()
/// will often be null, (i.e. when the condition is a function call)
/// and the lookups will not look through typedefs.
///
foreach
(
LookupItem
result
,
results
)
{
FullySpecifiedType
fst
=
result
.
type
();
if
(
!
result
.
declaration
())
...
...
@@ -1741,9 +1748,11 @@ void CppQuickFixCollector::registerQuickFixes(ExtensionSystem::IPlugin *plugIn)
plugIn
->
addAutoReleasedObject
(
new
TranslateStringLiteral
);
plugIn
->
addAutoReleasedObject
(
new
CStringToNSString
);
plugIn
->
addAutoReleasedObject
(
new
ConvertNumericLiteral
);
plugIn
->
addAutoReleasedObject
(
new
CompleteSwitchCaseStatement
);
// Disabled for now: see the CompleteSwitchCaseStatement class for the reason.
// plugIn->addAutoReleasedObject(new CompleteSwitchCaseStatement);
plugIn
->
addAutoReleasedObject
(
new
FixForwardDeclarationOp
);
plugIn
->
addAutoReleasedObject
(
new
AddLocalDeclarationOp
);
plugIn
->
addAutoReleasedObject
(
new
ToCamelCaseConverter
);
plugIn
->
addAutoReleasedObject
(
new
Internal
::
DeclFromDef
);
plugIn
->
addAutoReleasedObject
(
new
Internal
::
DefFromDecl
);
}
Write
Preview
Supports
Markdown
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