[umbrello] [Bug 478198] Umbrello import wizard does not recognize the 'override' C++ keyword
"Oliver Kellogg" <[email protected]> Sun, 10 Dec 2023 08:36:35 +0000
| Newsgroups | gmane.linux.umbrello.devel |
|---|---|
| Message-ID | <[email protected]/> |
https://bugs.kde.org/show_bug.cgi?id=478198 Oliver Kellogg <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REPORTED |CONFIRMED Ever confirmed|0 |1 --- Comment #5 from Oliver Kellogg <[email protected]> --- 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.