inverted the relationship between expanded macros and tokens#305
inverted the relationship between expanded macros and tokens#305firewave wants to merge 2 commits into
Conversation
|
Currently just a hack but tests still pass. And this fixes https://trac.cppcheck.net/ticket/11885. |
Sorry, something went wrong.
|
I am pretty sure the hack is all wrong (too warm to think 🫠). But I think the idea is sound 🤞. Definitely needs way more tests first. |
Sorry, something went wrong.
967b360 to
a2e3610
Compare
August 24, 2023 09:46
|
These changes are better. They pass all the tests in simplecpp and Cppcheck. They do not fix that upstream issue as it hits something different now. Before After Clang 15 |
Sorry, something went wrong.
|
Unfortunately these changes case a big regression to the example in #96. Before After |
Sorry, something went wrong.
|
The clang-tidy false negative which was unearthed by this was reported upstream as llvm/llvm-project#64955. |
Sorry, something went wrong.
Instead of duplicating the macro references into each token we should just keep references to the tokens in the macros.