This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Renaming PackStack to AlignPackStack
ClosedPublic

Authored by Xiangling_L on Dec 29 2020, 7:41 AM.

Details

Summary

This patch renames PackStack and related variable names to also contain align across Clang. As it is right now, Clang already uses one stack to record the information from both #pragma align and #pragma pack. Leaving it as PackStack is confusing, and could cause people to ignore #pragma align when developing code that interacts with PackStack.

Diff Detail

Event Timeline

Xiangling_L requested review of this revision.Dec 29 2020, 7:41 AM
Xiangling_L created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 29 2020, 7:41 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hubert.reinterpretcast edited the summary of this revision. (Show Details)Jan 2 2021, 7:31 AM
clang/lib/Sema/SemaAttr.cpp
65–71

Remove extra space; add missing "the".

365–367

It may be helpful to pre-commit tests with the incorrect behaviour as part of the NFC patch.

385–387

Same comment re: pre-committing tests.

Xiangling_L marked 3 inline comments as done.

Add pre-committing tests with the incorrect behaviour as part of the NFC patch.

This revision is now accepted and ready to land.Jan 6 2021, 1:14 PM
This revision was automatically updated to reflect the committed changes.