diff options
| author | Emilio Cobos Alvarez <emilio@crisal.io> | 2019-03-13 16:16:54 +0000 |
|---|---|---|
| committer | Emilio Cobos Alvarez <emilio@crisal.io> | 2019-03-13 16:16:54 +0000 |
| commit | cd74127d28c1dc78be18cea55e6a7c65ef382c88 (patch) | |
| tree | bb3a59fe5a2c0deb2c7051f565b4d8e9245a86d4 /clang/tools/libclang/CXCursor.cpp | |
| parent | 7d546aba6c4d6e9e82885510c16a92c0185a731c (diff) | |
| download | bcm5719-llvm-cd74127d28c1dc78be18cea55e6a7c65ef382c88.tar.gz bcm5719-llvm-cd74127d28c1dc78be18cea55e6a7c65ef382c88.zip | |
[libclang] Expose aligned() attribute.
Summary:
This is useful because otherwise there's no easy way to distinguish #pragma
packed(N) from attribute(packed, aligned(N)) that isn't looking at field
offsets (since pragma packed() also creates a packed attribute).
Reviewers: Anastasia, arphaman, serge-sans-paille
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D59299
llvm-svn: 356062
Diffstat (limited to 'clang/tools/libclang/CXCursor.cpp')
| -rw-r--r-- | clang/tools/libclang/CXCursor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/libclang/CXCursor.cpp b/clang/tools/libclang/CXCursor.cpp index e4a0291f140..907f8cf1cdf 100644 --- a/clang/tools/libclang/CXCursor.cpp +++ b/clang/tools/libclang/CXCursor.cpp @@ -81,6 +81,7 @@ static CXCursorKind GetCursorKind(const Attr *A) { case attr::Convergent: return CXCursor_ConvergentAttr; case attr::WarnUnused: return CXCursor_WarnUnusedAttr; case attr::WarnUnusedResult: return CXCursor_WarnUnusedResultAttr; + case attr::Aligned: return CXCursor_AlignedAttr; } return CXCursor_UnexposedAttr; |

