Menu

#567 Astyle doesn't recognize C++ 17 hexdecimal floating-point literal

closed-fixed
None
2024-05-09
2024-04-25
Roy Qu
No

Astyle doesn't recognize C++ 17 hexdecimal floating-point literal , like "0x1.23ffp-10“.
Astyle will wrongly add spaces around "-".
The following is a simple demo.

int main() {
    double x = 0x1.23ffp-11;
}

Discussion

  • w-peuker

    w-peuker - 2024-04-25

    That's imprecise, astyle doesn't add spaces unless you tell it to with the --pad-oper option.

     
  • André Simon

    André Simon - 2024-04-26
    • status: open --> open-accepted
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2024-05-09
    • status: open-accepted --> closed-fixed
     
  • André Simon

    André Simon - 2024-05-09

    Fixed in 3.4.15

     

Log in to post a comment.