summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/address_spaces.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve diagnostics when we fail to convert from a source type to aDouglas Gregor2010-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | destination type for initialization, assignment, parameter-passing, etc. The main issue fixed here is that we used rather confusing wording for diagnostics such as t.c:2:9: warning: initializing 'char const [2]' discards qualifiers, expected 'char *' [-pedantic] char *name = __func__; ^ ~~~~~~~~ We're not initializing a 'char const [2]', we're initializing a 'char *' with an expression of type 'char const [2]'. Similar problems existed for other diagnostics in this area, so I've normalized them all with more precise descriptive text to say what we're initializing/converting/assigning/etc. from and to. The warning for the code above is now: t.c:2:9: warning: initializing 'char *' from an expression of type 'char const [2]' discards qualifiers [-pedantic] char *name = __func__; ^ ~~~~~~~~ Fixes <rdar://problem/7447179>. llvm-svn: 100832
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-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
* Add an error for function parameters that have a qualified address space ↵Tanya Lattner2009-09-301-2/+6
| | | | | | since this is not allowed by the embedded c extension spec. llvm-svn: 83165
* Refactor the representation of qualifiers to bring ExtQualType out of theJohn McCall2009-09-241-1/+1
| | | | | | | | Type hierarchy. Demote 'volatile' to extended-qualifier status. Audit our use of qualifiers and fix a few places that weren't dealing with qualifiers quite right; many more remain. llvm-svn: 82705
* Bounds checking for address spaces.John McCall2009-07-281-0/+6
| | | | llvm-svn: 77303
* fix rdar://6774906, a crash handling implicit conversions between pointersChris Lattner2009-04-131-0/+8
| | | | | | in different address spaces. llvm-svn: 68941
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* upgrade various 'implicit int' warnings from an ext-warn to warning when notChris Lattner2009-02-271-1/+1
| | | | | | | | in C89 mode. This makes it enabled by default instead of only enabled with -pedantic. Clang defaults to c99 mode, so people will see this more often than with GCC, but they can always use -std=c89 if they really want c89. llvm-svn: 65647
* testcase that works now with r62061Chris Lattner2009-01-121-0/+5
| | | | llvm-svn: 62062
* Extend QualType::getAddressSpace to do the right thing for array types, and inNate Begeman2008-03-251-1/+2
| | | | | | the future, RecordTypes. llvm-svn: 48784
* Correctly error on arrays with automatic storage full of objects with Nate Begeman2008-03-141-2/+3
| | | | | | | non-default address space, and fix comment. Add a test for this. llvm-svn: 48366
* ISO/IEC TR 18037 Nate Begeman2008-03-141-0/+2
| | | | | | | | An address space name cannot be used to qualify an object that has automatic storage duration. Still not catching ASQual'd allocas of array type, just scalars at the moment. llvm-svn: 48350
* add some semantic checks for address spaces.Chris Lattner2008-02-211-0/+15
llvm-svn: 47423
OpenPOWER on IntegriCloud