chrchr-github

Results 118 comments of chrchr-github

There is `isEnumScope()` in tokenize.cpp. We should probably consolidate.

Feel free to reopen once comments have been addressed.

How do we proceed here? @danmar @orbitcowboy * attribute-const and member-const are mixed up in the library, since there is only one `` for both * How will we deduce...

We could also rename to `.hpp/.hh`.

There should probably be a check for `value_size < 8` in `truncateIntValue()`, given that `bigint` is only 64 bits.

Does this fix https://trac.cppcheck.net/ticket/12742?

> > Does this fix https://trac.cppcheck.net/ticket/12742? > > I could not reproduce the bug. It looks like you are checking in C mode. You can change the file extension or...

> @chrchr-github Looking at this bug it seems that my previous bugfix triggered an existing bug. So I would be happy to fix this issue in another PR. What do...

The example in the original ticket had use-after-delete. `delete this` itself seems not that uncommon: https://github.com/search?q=%22delete+this%3B%22&type=code

We don't seem to handle any (de)allocation in subfunctions even for normal variables (in CheckLeakAutoVar): ~~~c++ void d(int* q) { delete q; } int* f() { int* p = new...