summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix for PR5714: make sure globals that will be modified aren't marked const.Eli Friedman2009-12-111-0/+10
| | | | llvm-svn: 91156
* Reorganize testcase.John McCall2009-12-111-61/+52
| | | | llvm-svn: 91153
* Fix linkage of type info and vtable for classes without linkage.Eli Friedman2009-12-111-0/+8
| | | | llvm-svn: 91152
* Make sure mangling doesn't crash in another case. Add some more tests.Eli Friedman2009-12-112-8/+39
| | | | llvm-svn: 91149
* Don't enter a new scope for a namespace-qualified declarator unless we'reJohn McCall2009-12-111-0/+11
| | | | | | | in a file context. In well-formed code, only happens with friend functions. Fixes PR 5760. llvm-svn: 91146
* Add a function's cv-qualifiers to the code-completion results as anDouglas Gregor2009-12-111-2/+2
| | | | | | informative chunk. llvm-svn: 91139
* Teach code completion to instantiate templates when it needs toDouglas Gregor2009-12-111-5/+17
| | | | llvm-svn: 91138
* Member function templates can occur after . or ->Douglas Gregor2009-12-111-3/+12
| | | | llvm-svn: 91137
* Fix for PR5706: let mangleName deal with mangling names without identifiersEli Friedman2009-12-111-0/+8
| | | | | | correctly. llvm-svn: 91136
* Tweak code-completion results by suppressing class templateDouglas Gregor2009-12-112-5/+4
| | | | | | | | | specializations and class template partial specializations (they're never named directly). Also, member access expressions only refer to value declarations (fields, functions, enumerators, etc.) and Objective-C property declarations; filter out everything else. llvm-svn: 91133
* XFAIL this for now, fixing linkage bugs causes the order of globals to ↵Anders Carlsson2009-12-111-0/+1
| | | | | | change. Will fix later today. llvm-svn: 91130
* Use GetAddrOfRTTI when getting the RTTI pointer for a base class.Anders Carlsson2009-12-111-0/+16
| | | | llvm-svn: 91127
* Class template (partial) specializations should not show up in code ↵Douglas Gregor2009-12-111-3/+3
| | | | | | completion results llvm-svn: 91125
* Move the code for converting a member pointer to a bool so that it is usableEli Friedman2009-12-111-0/+15
| | | | | | for logical not. llvm-svn: 91112
* Fix for PR5718: implement equality comparisons for member function pointers.Eli Friedman2009-12-111-0/+8
| | | | llvm-svn: 91108
* Enhance understanding of VarRegions referenced by a block whose declarations ↵Ted Kremenek2009-12-111-2/+37
| | | | | | are outside the current stack frame. Fixes <rdar://problem/7462324>. llvm-svn: 91107
* Test member template using hiding.John McCall2009-12-111-2/+45
| | | | llvm-svn: 91099
* Improve linkage of RTTI data structures. Introduce ↵Anders Carlsson2009-12-113-10/+13
| | | | | | CodeGenModule::GetAddrOfRTTI which figures out the right linkage of the RTTI information for the given type and whether it should be defined or not. I will migrate clients over to GetAddrOfRTTI in subsequent commits (with tests). llvm-svn: 91098
* Fix a recent regression from the initialization changes.Eli Friedman2009-12-111-0/+9
| | | | llvm-svn: 91097
* Check if the target of a using decl is already declared in this scope beforeJohn McCall2009-12-111-0/+14
| | | | | | | doing any of the other redeclaration checks. We were missing a few cases. Fixes PR 5752. llvm-svn: 91096
* Implement access declarations. Most of the work here is parsing them, whichJohn McCall2009-12-111-0/+199
| | | | | | | | | | | | is difficult because they're so terribly, terribly ambiguous. We implement access declarations in terms of using declarations, which is quite reasonable. However, we should really persist the access/using distinction in the AST and use the appropriate name in diagnostics. This isn't a priority, so I'll just file a PR and hope someone else does it. :) llvm-svn: 91095
* Give the "cannot pass object of non-POD type 'class C' through variadic ↵Chris Lattner2009-12-113-7/+7
| | | | | | constructor; call will abort at runtime" warning a -W flag (non-pod-varargs) and default it being an error by default. There is no good reason to allow users to get bitten by this sort of thing by default. llvm-svn: 91094
* Fix the handling of dependent enums per C++ DR 502.Eli Friedman2009-12-111-0/+9
| | | | llvm-svn: 91089
* When an exception needs to be freed by calling __cxa_exception_free, make ↵Anders Carlsson2009-12-112-0/+24
| | | | | | | | sure to stash away the exception pointer somewhere. This fixes an "Instruction does not dominate all uses!" verification error when compiling TableGen. llvm-svn: 91084
* Remove this test for now, it is flaky.Daniel Dunbar2009-12-111-15/+0
| | | | llvm-svn: 91083
* Patch to fix a crash trying to access a category name inFariborz Jahanian2009-12-112-1/+10
| | | | | | | objective-c++ mode and also removed dead-code in this area. (fixes radar 7456710). llvm-svn: 91081
* Testcase for recent checkin.Mike Stump2009-12-111-1/+1
| | | | llvm-svn: 91080
* Don't complain about falling off the end of a function with an asmMike Stump2009-12-101-0/+4
| | | | | | | block, if the function is supposed to return a value as we don't know exactly what the asm code does. llvm-svn: 91073
* Support unary type traits in a scalar context. Not that I've actually seenEli Friedman2009-12-101-0/+3
| | | | | | this construct, but might as well for completeness. llvm-svn: 91071
* Clean up enum constants so that they're finally sane. Fixes PR3173 and aEli Friedman2009-12-101-0/+4
| | | | | | recently introduced crash. llvm-svn: 91070
* Make sure that explicitly instantiated functions get the right linkage.Anders Carlsson2009-12-101-0/+24
| | | | llvm-svn: 91069
* Actually try to trigger the last diagnostic in the declaration-collision ↵John McCall2009-12-101-4/+9
| | | | | | | | | test case. Surprisingly, we *do* diagnose one of them. Since we don't really track scopes into instantiation, this has to signal some kind of bug. llvm-svn: 91063
* No need to add -x objecitve-c++Fariborz Jahanian2009-12-101-1/+1
| | | | llvm-svn: 91060
* Add support for finding composite type of twp objective-c pointersFariborz Jahanian2009-12-101-0/+67
| | | | | | in objective-c++ mode. llvm-svn: 91059
* Improve the diagnostic when a new declaration conflicts with a using shadowJohn McCall2009-12-101-0/+89
| | | | | | | | declaration. Rename note_using_decl to note_using, which is possibly less confusing. Add a test for non-class-scope using decl collisions and be sure to note the case we can't diagnose yet. llvm-svn: 91057
* Implement C++ DR437, which involves exception-specifications that nameDouglas Gregor2009-12-101-2/+15
| | | | | | a type currently being defined, from Nicola Gigante! llvm-svn: 91052
* Move initialization via initializer list over to InitializationSequences.Douglas Gregor2009-12-101-0/+5
| | | | llvm-svn: 91050
* Implement redeclaration checking and hiding semantics for using ↵John McCall2009-12-103-0/+190
| | | | | | | | | | | declarations. There are a couple of O(n^2) operations in this, some analogous to the usual O(n^2) redeclaration problem and some not. In particular, retroactively removing shadow declarations when they're hidden by later decls is pretty unfortunate. I'm not yet convinced it's worse than the alternative, though. llvm-svn: 91045
* Fix for PR5515: allow "merging" array bounds both forwards and backwards.Eli Friedman2009-12-101-0/+9
| | | | llvm-svn: 91044
* Test for r90950.Eli Friedman2009-12-101-0/+7
| | | | llvm-svn: 91043
* Mangle static variables inside Objective-C methods in Objective-C++. We ↵Anders Carlsson2009-12-101-0/+32
| | | | | | currently mangle them the same way as gcc does. llvm-svn: 91042
* If we enter parens, colons can become un-sacred, allowing us to emitChris Lattner2009-12-101-1/+7
| | | | | | a better diagnostic in the second example. llvm-svn: 91040
* fix a more evil case of : / :: confusion arising in ?:.Chris Lattner2009-12-101-1/+7
| | | | llvm-svn: 91039
* fix incorrect parsing of bitfields pointed out by Doug. I choseChris Lattner2009-12-101-0/+9
| | | | | | | to use ColonProtectionRAIIObject in the C codepath even though it won't matter for consistency. llvm-svn: 91037
* Handle emitting static variables that have reference type.Anders Carlsson2009-12-101-4/+8
| | | | llvm-svn: 91027
* fix PR5740: a colon is sacred when parsing case statement expressions!Chris Lattner2009-12-101-3/+16
| | | | llvm-svn: 91016
* rename testcaseChris Lattner2009-12-101-0/+0
| | | | llvm-svn: 91015
* Code gen for ObjCIsaExpr AST used as lvalue.Fariborz Jahanian2009-12-091-2/+5
| | | | | | (fixes radar 7457534). llvm-svn: 90995
* Add terminate handler for copy constructors for thrown objects. WIP.Mike Stump2009-12-091-2/+3
| | | | llvm-svn: 90994
* Fix null dereference in OSAtomicChecker and special case SymbolicRegions. ↵Ted Kremenek2009-12-092-4/+135
| | | | | | We still aren't handling them correctly; I've added to failing test cases to test/Analysis/NSString-failed-cases.m that should pass and then be merged in to test/Analysis/NSString.m. llvm-svn: 90993
OpenPOWER on IntegriCloud