llvm-project/clang/test
Ulrich Weigand ef5aa29e12 Support alternate attribute spelling __enable_if__
Attribute names usually support an alternate spelling that uses double
underscores before and after the attribute name, like e.g. attribute
((__aligned__)) for attribute ((aligned)). This is necessary to allow
use of attributes in system headers without polluting the name space.

However, for attribute ((enable_if)) that alternate spelling does not
work correctly. This is because of code in Parser::ParseGNUAttributeArgs
(ParseDecl.cpp) that specifically checks for the "enable_if" spelling
without allowing the alternate spelling.

Similar code in ParseDecl.cpp uses the normalizeAttrName helper to allow
both spellings. This patch adds use of that helper for the "enable_if"
check as well, which fixes attribute ((__enable_if__)).

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

llvm-svn: 242029
2015-07-13 14:13:01 +00:00
..
ARCMT Revert "Revert r241620 and follow-up commits" and move the initialization 2015-07-08 01:00:30 +00:00
ASTMerge [Hexagon] Reapply 238773 after fix to LLVM. 2015-06-03 17:34:22 +00:00
Analysis [analyzer] When forced to fake a block type, do it correctly. 2015-07-10 21:41:59 +00:00
CXX Revert "Revert r241620 and follow-up commits" and move the initialization 2015-07-08 01:00:30 +00:00
CodeCompletion [Preprocessor] Iterating over all macros should include those from modules. 2015-06-24 19:27:02 +00:00
CodeGen [MS ABI] Don't generates code for unreferenced inline definitions of library builtins 2015-07-10 20:55:38 +00:00
CodeGenCUDA [cuda] Fixed test case failure on s390x 2015-05-11 18:35:58 +00:00
CodeGenCXX Set the linkage before setting the visibility. 2015-07-13 06:07:58 +00:00
CodeGenObjC Substitute type arguments into uses of Objective-C interface members. 2015-07-07 03:57:53 +00:00
CodeGenObjCXX Implement the Objective-C __kindof type qualifier. 2015-07-07 03:58:42 +00:00
CodeGenOpenCL Account for calling convention specifiers in function definitions in IR test cases 2015-06-29 17:29:50 +00:00
Coverage
CoverageMapping InstrProf: Pack the coverage mapping structs that we write out 2015-07-02 00:42:32 +00:00
Driver Disable C++ EH by default for clang-cl and MSVC environments 2015-07-10 22:25:44 +00:00
FixIt Replace __double_underscored type nullability qualifiers with _Uppercase_underscored 2015-06-24 22:02:08 +00:00
Format Disable style-on-command-line test on Windows 2015-06-09 17:47:59 +00:00
Frontend Revert "Revert r241620 and follow-up commits" and move the initialization 2015-07-08 01:00:30 +00:00
Headers Revert "Revert r241620 and follow-up commits" and move the initialization 2015-07-08 01:00:30 +00:00
Index Try to fix the test harder, it still fails on windows for unknown reasons. 2015-07-10 13:04:41 +00:00
Integration
Layout __declspec is not a core Clang language extension. Instead, require -fms-extensions or -fborland to enable the language extension. 2015-05-26 19:44:52 +00:00
Lexer [ASan] Initial support for Kernel AddressSanitizer 2015-06-19 12:19:07 +00:00
Misc Reenable Misc/interpreter.c as r239388 correctly handles such targets 2015-06-09 06:33:13 +00:00
Modules [modules] When checking the include guard for a header, check whether it's 2015-07-10 22:27:17 +00:00
OpenMP Revert "Revert r241620 and follow-up commits" and move the initialization 2015-07-08 01:00:30 +00:00
PCH Revert "Revert r241620 and follow-up commits" and move the initialization 2015-07-08 01:00:30 +00:00
Parser Revert "parser: wordsmith diagnostic message" and "parser: diagnose empty attribute blocks" 2015-07-08 05:55:00 +00:00
Preprocessor Avoid false positive/negative test results from line directive interference.NFC. 2015-06-26 17:49:10 +00:00
Profile Tweak a couple of -fprofile tests in clang/test to accept backslash in path. 2015-07-10 13:11:08 +00:00
Rewriter __declspec is not a core Clang language extension. Instead, require -fms-extensions or -fborland to enable the language extension. 2015-05-26 19:44:52 +00:00
Sema Support alternate attribute spelling __enable_if__ 2015-07-13 14:13:01 +00:00
SemaCUDA [cuda] Preserve TLS storage class of host variable even if it's a 2015-04-28 20:31:49 +00:00
SemaCXX [Sema] If lvalue to rvalue reference cast is valid don't emit diagnostic. 2015-07-12 22:10:56 +00:00
SemaObjC s/__nonnull/_Nonnull in a test for Objective-C __kindof. 2015-07-07 06:20:41 +00:00
SemaObjCXX Implement variance for Objective-C type parameters. 2015-07-07 03:58:54 +00:00
SemaOpenCL Restores r228382, which was reverted in r228406. 2015-02-25 05:48:23 +00:00
SemaTemplate DR1909: Diagnose all invalid cases of a class member sharing its name with the class. 2015-07-06 01:45:27 +00:00
TableGen
Tooling Change the expectation for test/Tooling/ms-asm-no-target.cpp since 2015-07-08 01:39:38 +00:00
Unit
VFS Commit some test changes somehow missed in r239789. 2015-06-16 00:19:29 +00:00
.clang-format
CMakeLists.txt Revert "Revert r241620 and follow-up commits" and move the initialization 2015-07-08 01:00:30 +00:00
Makefile
TestRunner.sh
cxx-sections.data
lit.cfg test: Set lit features appropriately when using asan and ubsan together 2015-06-22 18:47:10 +00:00
lit.site.cfg.in Check for backtraces in tests which are verifying pretty stack traces from a crashing clang. 2015-02-10 19:53:38 +00:00
make_test_dirs.pl