clang/lib/Sema
David Majnemer c9301cf73a AST: Don't ignore alignas on EnumDecls when calculating alignment
We didn't consider any alignment attributes on an EnumDecl when
calculating alignment.

While we are here, ignore alignment specifications on typedef types if
one is used as the underlying type.  Otherwise, weird things happen:

enum Y : int;
Y y;

typedef int __attribute__((aligned(64))) u;
enum Y : u {};

What is the alignment of 'Y'?  It would be more consistent with the
overall design of enums with fixed underlying types to consider the
underlying type's UnqualifiedDesugaredType.

This fixes PR22279.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226653 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-21 10:54:38 +00:00
..
AnalysisBasedWarnings.cpp Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept. 2014-11-19 07:49:47 +00:00
AttributeList.cpp Automate attribute argument count semantic checking when there are variadic or optional arguments present. With this, the only time you should have to manually check attribute argument counts is when HasCustomParsing is set to true, or when you have variadic arguments that aren't really variadic (like ownership_holds and friends). 2014-07-31 16:37:04 +00:00
CMakeLists.txt Split off CUDA-specific Sema parts to a new file 2014-09-03 15:27:03 +00:00
CodeCompleteConsumer.cpp [C++11] Use 'nullptr'. Sema edition. 2014-05-26 06:22:03 +00:00
DeclSpec.cpp [OpenCL] Generic address space has been added in OpenCL v2.0. 2014-11-26 14:10:06 +00:00
DelayedDiagnostic.cpp Objective-C. Diagnose when property access is using declared 2014-06-16 17:25:41 +00:00
IdentifierResolver.cpp PR20769: Fix confusion when checking whether a prior default argument was in 2014-08-27 22:31:34 +00:00
JumpDiagnostics.cpp ms-inline-asm: Scope inline asm labels to functions 2014-09-22 02:21:54 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
MultiplexExternalSemaSource.cpp Add -Wunused-local-typedef, a warning that finds unused local typedefs. 2014-09-06 01:25:55 +00:00
Scope.cpp Revert r213437 2014-07-25 20:52:51 +00:00
ScopeInfo.cpp Objective-C ARC. Fixes a crash when checking for 'weak' propery 2014-11-21 21:12:11 +00:00
Sema.cpp Delay checking overrides for exception specifications if the overridden 2014-11-22 03:09:05 +00:00
SemaAccess.cpp Don't assume friended C++ method decls have qualifiers 2014-12-17 23:40:46 +00:00
SemaAttr.cpp MS Compat: mark globals emitted in read-only sections const 2014-10-16 20:52:46 +00:00
SemaCUDA.cpp Consider calls from implict host device functions as valid in SemaCUDA. 2014-12-16 20:12:38 +00:00
SemaCXXScopeSpec.cpp Handle unscoped enumeration in nested name specifier. 2015-01-18 20:04:35 +00:00
SemaCast.cpp Sema: Check value dependent casts when possible 2014-12-16 00:46:30 +00:00
SemaChecking.cpp [x86] Teach Sema to check size of comparison immediate on avx512 cmpps/cmppd buitins. 2015-01-19 01:18:22 +00:00
SemaCodeComplete.cpp PR13699: Include friend declarations in code completion results if they had a 2015-01-15 02:27:20 +00:00
SemaConsumer.cpp Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch 2011-12-20 02:48:34 +00:00
SemaDecl.cpp Revert "Sema: err_after_alias is unreachable, remove it" 2015-01-21 01:30:40 +00:00
SemaDeclAttr.cpp AST: Don't ignore alignas on EnumDecls when calculating alignment 2015-01-21 10:54:38 +00:00
SemaDeclCXX.cpp SemaDeclCXX.cpp: Suppress a warning. [-Wunused-variable] 2015-01-19 09:49:59 +00:00
SemaDeclObjC.cpp Objective-C: Tweak unavailability warning. 2014-12-27 07:09:37 +00:00
SemaExceptionSpec.cpp Delay checking overrides for exception specifications if the overridden 2014-11-22 03:09:05 +00:00
SemaExpr.cpp Fix crashes on missing @interface for category 2015-01-20 20:41:36 +00:00
SemaExprCXX.cpp Fix crash-on-invalid and name lookup when recovering from ~X::X() typo. 2015-01-15 00:48:52 +00:00
SemaExprMember.cpp [cleanup] Re-sort *all* #include lines with llvm/utils/sort_includes.py 2015-01-14 11:29:14 +00:00
SemaExprObjC.cpp Patch fixes PR21932 crash on invalid code. Using 2015-01-20 16:53:34 +00:00
SemaFixItUtils.cpp PR17290: Use 'false' macro in fix-it hint for initializing a variable of type 2013-09-20 00:27:40 +00:00
SemaInit.cpp Fix temporary lifetime extension from an initializer using braced "functional" 2015-01-10 01:28:13 +00:00
SemaLambda.cpp DR1048: drop top-level cv-qualifiers when deducing the return type of a 2014-12-19 22:10:51 +00:00
SemaLookup.cpp Fix a case where delayed typo correction should have resolved an 2015-01-16 22:11:04 +00:00
SemaObjCProperty.cpp Suggest objc_method_family(none) for a property named -newFoo or similar. 2015-01-16 23:04:31 +00:00
SemaOpenMP.cpp [OPENMP] Fixed DSA processing for predetermined shared variables. 2015-01-20 07:03:46 +00:00
SemaOverload.cpp Extend the self move warning to record types. 2015-01-13 02:32:02 +00:00
SemaPseudoObject.cpp Objective-C. Prevents a crash generating AST for a 2014-09-15 21:19:39 +00:00
SemaStmt.cpp Rename RefersToCapturedVariable to RefersToEnclosingVariableOrCapture, NFC 2015-01-12 10:17:46 +00:00
SemaStmtAsm.cpp Sema: analyze I,J,K,M,N,O constraints 2015-01-06 04:26:34 +00:00
SemaStmtAttr.cpp Allow constant expressions in pragma loop hints. 2014-10-12 20:46:07 +00:00
SemaTemplate.cpp Warn about dllexported explicit class template instantiation declarations (PR22035) 2015-01-15 21:18:30 +00:00
SemaTemplateDeduction.cpp restore fix for 18645, buildbot apparently gave a false positive. 2015-01-16 15:20:14 +00:00
SemaTemplateInstantiate.cpp PR22117: Fix a case where we would get confused about which function parameter 2015-01-09 01:19:56 +00:00
SemaTemplateInstantiateDecl.cpp Address review feedback from r215780: Use a flag insteda of the heap. No behavior change. 2015-01-18 01:50:35 +00:00
SemaTemplateVariadic.cpp Don't crash on an invalid trailing return type on a function before a '...' 2014-12-30 02:06:40 +00:00
SemaType.cpp Re-apply "r226548 - Introduce SPIR calling conventions" reverted in r226558. 2015-01-20 11:20:41 +00:00
TreeTransform.h Handle errors in lambda prototype instantiation correctly 2014-12-15 21:07:16 +00:00
TypeLocBuilder.cpp [C++11] Use 'nullptr'. Sema edition. 2014-05-26 06:22:03 +00:00
TypeLocBuilder.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00