Author Topic: Issue in 1TBS code example  (Read 505 times)

Offline mimi89999

  • Multiple posting newcomer
  • *
  • Posts: 45
Issue in 1TBS code example
« on: April 02, 2020, 12:58:37 pm »
The example code is:
```
int Foo(bool isBar)
{
    if (isFoo) {
        bar();
        return 1;
    } else {
        return 0;
    }
}
```

It's of course wrong. It should be `if (isBar) {`

OS: Debian GNU/Linux bullseye/sid 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1 (2020-02-13)
C::B version: 20.03-r11983

Offline mimi89999

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: Issue in 1TBS code example
« Reply #1 on: April 02, 2020, 03:23:31 pm »
I made a patch for this: https://sourceforge.net/p/codeblocks/tickets/938/

I hope that it's correct.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9609
Re: Issue in 1TBS code example
« Reply #2 on: April 02, 2020, 04:45:40 pm »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ