This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Make the cert/uppercase-literal-suffix-integer fully hermetic.
ClosedPublic

Authored by hokein on Jun 24 2022, 2:42 AM.

Details

Summary

after the test-reorg commit (89a1d03e2b379e325daa5249411e414bbd995b5e), the
cert/uppercase test starts to fail in our internal environment -- it accesses
a header file from "../readability", which is not a friendly to a hermetic test environment.

This change makes the test full hermetic, and does some cleanup on the
uppercase header (I think it is better to move it the share
Inputs/Header directory, and rename it)

Diff Detail

Event Timeline

hokein created this revision.Jun 24 2022, 2:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2022, 2:42 AM
Herald added a subscriber: xazax.hun. · View Herald Transcript
hokein requested review of this revision.Jun 24 2022, 2:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2022, 2:42 AM
This revision is now accepted and ready to land.Jun 24 2022, 4:50 AM
clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/integral_constant.h
1

Identifiers beginning with _ followed by an uppercase letter are reserved for the implementation.

Include guards should never include double underscores or begin with an underscore.