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

PP: Don't report certain error about '#' when #if'd out #3708

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

rj123-nv
Copy link
Contributor

Don't report the following error when scanning inactive code (e.g. code inside #if 0): "error: '#' : (#) can be preceded in its line only by spaces or horizontal tab" Adds a variable to PpContext to say whether we're currently skipping over an inactive #if/#ifdef/#elif/#else, and don't report the error inside scanToken if true.

fixes 3704

Don't report the following error when scanning inactive code (e.g. code inside #if 0):
"error: '#' : (#) can be preceded in its line only by spaces or horizontal tab"
Adds a variable to PpContext to say whether we're currently skipping over an inactive #if/#ifdef/#elif/#else, and don't report the error inside scanToken if true.

fixes 3704
@arcady-lunarg arcady-lunarg linked an issue Aug 27, 2024 that may be closed by this pull request
@arcady-lunarg arcady-lunarg self-requested a review August 27, 2024 23:08
@arcady-lunarg arcady-lunarg added the kokoro:run Trigger Google bot runs label Aug 28, 2024
@kokoro-team kokoro-team removed the kokoro:run Trigger Google bot runs label Aug 28, 2024
Copy link
Contributor

@arcady-lunarg arcady-lunarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks.

@arcady-lunarg arcady-lunarg merged commit 9cd7ca2 into KhronosGroup:main Sep 2, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error for '#' in middle of line but ifdef'd out
3 participants