Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle unknown MAROs more tolerant #1697

Closed
guwirth opened this issue Mar 26, 2019 · 2 comments
Closed

Handle unknown MAROs more tolerant #1697

guwirth opened this issue Mar 26, 2019 · 2 comments

Comments

@guwirth
Copy link
Collaborator

guwirth commented Mar 26, 2019

Handle unknown MACOSs more tolerant in case of string concatenation. In case not all headers are available this should be handled without syntax error.

In case below MACRO could be e.g. replaced by blank:

    string Getter() const
    {
         return "aaa" MACRO "bbb";
    }
@guwirth
Copy link
Collaborator Author

guwirth commented May 28, 2022

Idea:

 "aaa" MACRO "bbb"

is after preprocessing

 "aaa" 0 "bbb"

Add a special case for string concatenation?

@guwirth guwirth pinned this issue Jun 2, 2022
@guwirth guwirth unpinned this issue Jun 2, 2022
@guwirth
Copy link
Collaborator Author

guwirth commented Jan 24, 2023

The string concatenation takes place in the preprocessor. However, not all type information is available here in order to be able to react correctly in the event of an error.

There are also cases like encoding prefixes which has to be taken into account: L"Δx = %" PRId16.

Not solvable in the preprocessor.

@guwirth guwirth closed this as completed Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant