Skip to content

Escape Characters in some Typedef outupts in C and C++ #40

@sophia-gh

Description

@sophia-gh

commas in output are escaped to avoid messing up csv output
related to line: ~418 in nameCollectorHandler.hpp in function endElement( )
fix: don't escape commas unless outputting to csv

example code and outputs:
C code example

typedef enum Color {
    RED,
    GREEN,
    BLUE
} ColorEnum;

output:

"ColorEnum is a enum Color {    RED,    GREEN,    BLUE} typedef in C file: test_typedef.c:20:3"

C++ code example

typedef struct Point {
    int x, y;
} pt;

output:

"pt is a struct Point {    int x, y;} typedef in C++ file: test_struct.cpp:31:3"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions