fix #14034: AST broken for 'or' keyword#7698
fix #14034: AST broken for 'or' keyword#7698danmar merged 2 commits intocppcheck-opensource:mainfrom
Conversation
danmar
left a comment
There was a problem hiding this comment.
In C it's not a keyword. It's a macro defined in iso646.h. So ideally we should be a bit careful.
In C++ I believe we can treat it as a keyword.
In C it would be good to check if iso646 is included or if the token is used as an operator or variable name..
I believe the current approach is to always simplify it if it's used as an operator. I think it's fine without looking for the |
|
ah yes.. I looked too quickly I thought you were doing something in the AST. This looks fine however there is some unhappy CI. |



No description provided.