OSDN Git Service

[NFC] Renaming PackStack to AlignPackStack
authorXiangling Liao <Xiangling.Liao@ibm.com>
Thu, 7 Jan 2021 22:16:33 +0000 (17:16 -0500)
committerXiangling Liao <Xiangling.Liao@ibm.com>
Fri, 8 Jan 2021 14:15:11 +0000 (09:15 -0500)
commite97071d7952068bbb5fee7bf9e46f304044d4aee
treec7d5475b2c2010fe7d3bd049b003402ad663c24a
parent7b9f541c1edb24a676508906cfbcaaf228cc6a2e
[NFC] Renaming PackStack to AlignPackStack

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.

Differential Revision: https://reviews.llvm.org/D93901
clang/include/clang/Sema/Sema.h
clang/include/clang/Serialization/ASTBitCodes.h
clang/include/clang/Serialization/ASTReader.h
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaAttr.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/test/Sema/Inputs/pragma-align-pack1.h [new file with mode: 0644]
clang/test/Sema/misleading-pragma-align-pack-diagnostics.c [new file with mode: 0644]