Details
- Reviewers
dvyukov
Diff Detail
Event Timeline
lib/sanitizer_common/sanitizer_suppressions.h | ||
---|---|---|
2 | please use 'svn cp' to copy these files, it should preserve history and minimize diffs | |
26 | remove this for now | |
31 | this does not look right that users need to spell this name either make it an opaque pointer: struct SuppressionContext { ... }; void SuppressionInit(SuppressionContext *ctx, ...); or make a static global variable in sanitizer_suppressions.cc, so that users do not need to pass it at all (this may require SuppressionReset() function for tests). Both options will allow to e.g. add an additional variable to suppression state, something that is not possible now. | |
32 | this is for testing, right? | |
35 | this should return Suppression* |
lib/sanitizer_common/sanitizer_suppressions.h | ||
---|---|---|
22 | I think this is better and cleaner than having to pass strings around. It's awkward to not have the string-enum correspondence encapsulated in this module. I also don't see any good reasons why tools can't share this enum. (We're already sharing the Suppression struct, after all - and that is also tool-specific to some extent.) At some point we might even want to read suppressions for several tools out of one file. | |
37 | ok | |
43 | I think explicit is better than implicit, but ok. | |
46 | PrintMatched() *is* tool-specific. |
lib/sanitizer_common/sanitizer_suppressions.h | ||
---|---|---|
46 | How will it be different for lsan? |
lib/sanitizer_common/sanitizer_suppressions.h | ||
---|---|---|
46 | It will print the # of bytes leaked, at least. |
lib/sanitizer_common/sanitizer_suppressions.h | ||
---|---|---|
46 | just don't print it if it's zero |
lib/sanitizer_common/sanitizer_suppressions.h | ||
---|---|---|
46 | The output format will probably be different too. I would really prefer to not have to care about TSan compatibility while I'm figuring it out. |
lib/sanitizer_common/sanitizer_suppressions.h | ||
---|---|---|
46 | there is value for end users in a single format, e.g. chromium has scripts that parse matched suppressions |
please use 'svn cp' to copy these files, it should preserve history and minimize diffs