[umbrello] [Bug 478198] Umbrello import wizard does not recognize the 'override' C++ keyword
Oliver Kellogg
bugzilla_noreply at kde.org
Sun Dec 10 08:36:35 GMT 2023
https://bugs.kde.org/show_bug.cgi?id=478198
Oliver Kellogg <okellogg at users.sourceforge.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REPORTED |CONFIRMED
Ever confirmed|0 |1
--- Comment #5 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
Your full header file is helpful indeed, I can now reproduce problems.
Here is the current status of import:
class COUTC : public std::ostream { OK
class Configurable /*: public IConfigurable*/ { NOT IMPORTED
class IAlgorithm : public Configurable { OK
class Algorithm : public IAlgorithm { OK
class ConcreteAlgorithm : public Algorithm { OK
class AlgoSequenceDecorator; OK
class IAlgoExecutor { OK
class PlainAlgoExecutor : public IAlgoExecutor { OK
class AlgoExecutorDecorator : public IAlgoExecutor { OK
class IAlgoScheduler { OK
class SequentialScheduler : public IAlgoScheduler { NOT IMPORTED
class MTScheduler : public IAlgoScheduler { NOT IMPORTED
class IAlgoSequence : public IAlgorithm { OK
class AlgoSequence : public IAlgoSequence { NOT IMPORTED
class AlgoSequenceDecorator : public IAlgoSequence { NOT IMPORTED
class SchedulerDecorator : public IAlgoScheduler { OK
class GarbageCollectorDecorator : public AlgoSequenceDecorator { NOT IMPORTED
class GarbageCollectorScheduler : public SchedulerDecorator { NOT IMPORTED
class GarbageCollectorExecutor : public AlgoExecutorDecorator { OK
Messages in Log window:
test.h:58:109: error: ';' expected found '}'
test.h:58:110: error: Syntax error before ')'
test.h:59:14: error: ';' expected found 'GetParameter'
test.h:68:0: error: Syntax error before 'private'
test.h:70:0: error: Syntax error before '}'
Those lines are in class Configurable:
58: template <class T> void SetParameter(std::string name, T val) {
_params.push_back({name, typeid(val).name()}); }
59: std::string GetParameter(std::string name) /* override*/ {
The actual problem is
_params.push_back({name, typeid(val).name()});
where the parser is not handling the ad hoc pair construct
{name, typeid(val).name()}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list