[libclang] Expose aligned() attribute.
authorEmilio Cobos Alvarez <emilio@crisal.io>
Wed, 13 Mar 2019 16:16:54 +0000 (16:16 +0000)
committerEmilio Cobos Alvarez <emilio@crisal.io>
Wed, 13 Mar 2019 16:16:54 +0000 (16:16 +0000)
commitcd74127d28c1dc78be18cea55e6a7c65ef382c88
treebb3a59fe5a2c0deb2c7051f565b4d8e9245a86d4
parent7d546aba6c4d6e9e82885510c16a92c0185a731c
[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
clang/bindings/python/clang/cindex.py
clang/include/clang-c/Index.h
clang/test/Index/attributes.c
clang/tools/libclang/CIndex.cpp
clang/tools/libclang/CXCursor.cpp