This is an archive of the discontinued LLVM Phabricator instance.

[scudo][NFC] Rename local variables to avoid shadowing class members
AbandonedPublic

Authored by ddcc on Mar 16 2022, 2:06 PM.

Diff Detail

Event Timeline

ddcc created this revision.Mar 16 2022, 2:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2022, 2:06 PM
ddcc requested review of this revision.Mar 16 2022, 2:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2022, 2:06 PM
vitalybuka added inline comments.Mar 16 2022, 5:38 PM
compiler-rt/lib/scudo/standalone/release.h
21

LLVM use this very often, I would rather disable this warning

ddcc added a comment.Mar 17 2022, 10:39 AM

That's fair, we're building the standalone version out-of-tree with -Weverything -Werror among other things in our build system, which is why I've been seeing more warnings. Not sure if anything needs to be done then for the in-tree standalone build, since -Wall isn't documented to include -Wshadow?

That's fair, we're building the standalone version out-of-tree with -Weverything -Werror among other things in our build system, which is why I've been seeing more warnings. Not sure if anything needs to be done then for the in-tree standalone build, since -Wall isn't documented to include -Wshadow?

I am not sure it's practical to enforce such rules on dependencies.
Can you use -isystem to include SCUDO to avoid warnings there?

ddcc abandoned this revision.Mar 18 2022, 12:53 PM

Ok, we can workaround this locally.