]> granicus.if.org Git - clang/commit
[MSVC] Support for __unaligned qualifier in functions
authorAndrey Bokhanko <andreybokhanko@gmail.com>
Thu, 26 May 2016 10:06:01 +0000 (10:06 +0000)
committerAndrey Bokhanko <andreybokhanko@gmail.com>
Thu, 26 May 2016 10:06:01 +0000 (10:06 +0000)
commitde5174673b83e0bae7f73be2360c32f49e168bca
treea105e14d49cdfe062a6ce86bd590a715d704cdc2
parent91adb3ec6789f9a9935e18654c620e163151dffa
[MSVC] Support for __unaligned qualifier in functions

This implements support for MS-specific __unaligned qualifier in functions and
makes the following test case both compile and mangle correctly:

struct S {
    void f() __unaligned;
};
void S::f() __unaligned {
}

Differential Revision: http://reviews.llvm.org/D20437

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270834 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Type.h
include/clang/Sema/DeclSpec.h
lib/AST/DeclCXX.cpp
lib/AST/MicrosoftMangle.cpp
lib/Sema/DeclSpec.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaType.cpp
test/CodeGenCXX/mangle-ms-cxx11.cpp
test/Sema/MicrosoftExtensions.c
test/SemaCXX/MicrosoftExtensions.cpp