aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/annotate.c
AgeCommit message (Collapse)AuthorFilesLines
2013-07-30err_attribute_not_string has been subsumed by err_attribute_argument_type.Aaron Ballman1-1/+1
llvm-svn: 187400
2013-07-23Added the attribute name to the err_attribute_wrong_number_arguments ↵Aaron Ballman1-2/+2
diagnostic for clarity; updated almost all of the affected test cases. Thanks to Fariborz Jahanian for the suggestion! llvm-svn: 186980
2012-04-28Currently __builtin_annotation() only annotates an i32.Julien Lerouge1-2/+3
i32 __builtin_annotation(i32, string); Applying it to i64 (e.g., long long) generates the following IR. trunc i64 {{.*}} to i32 call i32 @llvm.annotation.i32 zext i32 {{.*}} to i64 The redundant truncation and extension make the result difficult to use. This patch makes __builtin_annotation() generic. type __builtin_annotation(type, string); For the i64 example, it simplifies the generated IR to: call i64 @llvm.annotation.i64 Patch by Xi Wang! llvm-svn: 155764
2011-09-09Bring llvm.annotation* intrinsics support back to where it was in llvm-gcc: canJulien Lerouge1-0/+3
annotate global, local variables, struct fields, or arbitrary statements (using the __builtin_annotation), rdar://8037476. llvm-svn: 139423
2011-03-02Pretty up the wrong-number-of-arguments-for-attribute diagnostic byJohn McCall1-1/+1
using a custom plural form. Split out the range diagnostics as their own message. llvm-svn: 126840
2009-12-15Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar1-1/+1
- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
2009-03-24Rename clang to clang-cc.Daniel Dunbar1-1/+1
Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
2008-02-21add a test caseNate Begeman1-0/+7
llvm-svn: 47455