X Tutup
Skip to content

Ticket #5373: delete can match %type% in C (take #2)#257

Merged
danmar merged 1 commit intodanmar:masterfrom
simartin:ticket_5373_2
Mar 9, 2014
Merged

Ticket #5373: delete can match %type% in C (take #2)#257
danmar merged 1 commit intodanmar:masterfrom
simartin:ticket_5373_2

Conversation

@simartin
Copy link
Copy Markdown
Contributor

@simartin simartin commented Mar 8, 2014

Hi,

This is an alternative to PR#248 that implements the suggestion to add a flag to Token to know whether we're processing a C++ file or not. Thanks to consider pulling.

Cheers,
Simon

…le to properly handle %type% in Token::Match with "delete"
danmar added a commit that referenced this pull request Mar 9, 2014
Ticket #5373: delete can match %type% in C (take #2)
@danmar danmar merged commit c7f09d4 into danmar:master Mar 9, 2014
@simartin
Copy link
Copy Markdown
Contributor Author

The forked process will get the same value as the forking process, but both will have their own life cycle as they're fully independent. But anyway, with threads they're truly shared, and we have an issue on Windows that uses threads and not processes. Should we therefore go back to my initial proposal in PR#248?

@danmar
Copy link
Copy Markdown
Owner

danmar commented Mar 16, 2014

ok.

Should we therefore go back to my initial proposal in PR#248?

In PR#248 every token has a pointer to tokenizer. This is excessive since Token is only interested to know if the code is cpp.

Can the pointer tokenizer in #248 be changed to a bool isCPP instead?

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.

3 participants

X Tutup