Menu

#373 Trailing characters after #include can cause chaos

closed-fixed
None
2017-04-09
2015-08-14
Roddy Pratt
No

This code:-

include <stdio>"</stdio>

void foo()
{
printf("Hello: {0} %d",42);
};

...formats like this...

include <stdio>"</stdio>

void foo()
{
printf("Hello:
{
0
} %d",42);
};

The problem is the spurious doublequoute on the include line. My compiler happily ignores it, but astyle gets out of sync with its literal strings.

1 Attachments

Discussion

  • Roddy Pratt

    Roddy Pratt - 2015-08-14

    Gah. Markdown...

    #include <stdio>"
    void foo()
    {
      printf("Hello: {0} %d",42);
    };
    
     
  • Jim Pattee

    Jim Pattee - 2017-02-22
    • status: open --> open-fixed
    • assigned_to: Jim Pattee
     
  • Jim Pattee

    Jim Pattee - 2017-02-22

    Fixed.

     
  • Jim Pattee

    Jim Pattee - 2017-04-09
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Auth0 Logo