summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Now that GCC will have #pragma push/pop (in GCC 4.6), allow theDouglas Gregor2010-08-304-41/+19
| | | | | | | #pragma without requiring it to be in the "clang" namespace, from Louis Gerbarg! llvm-svn: 112484
* Emulate (some of) Microsoft's looser semantic checking of exceptionDouglas Gregor2010-08-303-12/+34
| | | | | | specifications, from Martin Vejnar! llvm-svn: 112482
* In Microsoft compatibility mode, don't parse the exponent as part ofDouglas Gregor2010-08-302-1/+18
| | | | | | | the pp-number in a hexadecimal floating point literal, from Francois Pichet! Fixes PR7968. llvm-svn: 112481
* Predeclare class type_info in Microsoft mode, from Francois Pichet!Douglas Gregor2010-08-302-0/+8
| | | | llvm-svn: 112478
* Add test case from PR6952, which now works (thanks to Gabor).Douglas Gregor2010-08-301-0/+18
| | | | llvm-svn: 112477
* Add redeclaration checking for static data members and fix a cornerDouglas Gregor2010-08-302-3/+86
| | | | | | | case with redeclaration checking for fields, from Faisal Vali! Fixes PR7970. llvm-svn: 112476
* Fix CMake dependenciesDouglas Gregor2010-08-301-0/+6
| | | | llvm-svn: 112475
* Straighten out target triples provided on the command lineDuncan Sands2010-08-302-2/+4
| | | | | | before using them. llvm-svn: 112468
* Two minor fixes to user-defined literals:Alexis Hunt2010-08-302-1/+4
| | | | | | | - Zero-initialize UDLData so that crashes stop - Stop complaining that we can't emit them (we most certainly can) llvm-svn: 112467
* Add some braces for sanity and GCC silence. These became unbalanced in r112122,Chandler Carruth2010-08-301-1/+2
| | | | | | so please review echristo and let me know if the logic is wrong now. llvm-svn: 112466
* Fix some test-breaking that snuck into my previous commitAlexis Hunt2010-08-292-3/+3
| | | | llvm-svn: 112460
* Implement C++0x user-defined string literals.Alexis Hunt2010-08-2928-83/+375
| | | | | | | | | | The extra data stored on user-defined literal Tokens is stored in extra allocated memory, which is managed by the PreprocessorLexer because there isn't a better place to put it that makes sure it gets deallocated, but only after it's used up. My testing has shown no significant slowdown as a result, but independent testing would be appreciated. llvm-svn: 112458
* When providing a code completion for an Objective-C message send, dropDouglas Gregor2010-08-293-45/+47
| | | | | | | | | | | | | | | | the parameter names from the completions, e.g., provide withString:(NSString *) instead of withString:(NSString *)string since the parameter name is, by convention, redundant with the selector piece that precedes it and the completions can get unnecessarily long. llvm-svn: 112456
* Improve code completion for initializer lists in constructors. InsteadDouglas Gregor2010-08-293-19/+55
| | | | | | | | | | of prioritizing just by initialization order, we bump the priority of just the *next* initializer in the list, and leave everything else at the normal priority. That way, if one intentionally skips the initialization of a base or member (to get default initialization), we'll still get ordered completion for the rest. llvm-svn: 112454
* Add missing test case for constructor-initializer code completionsDouglas Gregor2010-08-291-0/+33
| | | | llvm-svn: 112453
* ObjClang++: Allow declaration of block variable in a collectionFariborz Jahanian2010-08-292-1/+21
| | | | | | statement header (fixes radar 8295106). llvm-svn: 112443
* Add comments.Zhongxing Xu2010-08-291-0/+7
| | | | llvm-svn: 112414
* Translate NEON vaddl, vaddw, vsubl, and vsubw builtins to llvm add/subBob Wilson2010-08-291-8/+26
| | | | | | | | with zext/sext operations, instead of to llvm intrinsics. (We can also get rid of the clang builtins and handle these entirely in the arm_neon.h header if there is a way to express vector sext/zext in C.) llvm-svn: 112413
* Complain if a __pragma isn't terminated.John McCall2010-08-292-0/+6
| | | | llvm-svn: 112392
* Add support for Microsoft's __pragma in the preprocessor.John McCall2010-08-284-6/+90
| | | | | | Patch by Francois Pichet! llvm-svn: 112391
* When perform exact-qualifier-match template argument deduction,John McCall2010-08-282-1/+37
| | | | | | | properly account for the possibility that certain opaque types might be more qualified than they appear. Fixes PR7708. llvm-svn: 112390
* If filtering a lookup result leaves it ambiguous, keep the ambiguity John McCall2010-08-283-5/+29
| | | | | | kind. Fixes PR7252. llvm-svn: 112383
* Delete the relaxedLiveness object in the dtor of AnalysisContext.Ted Kremenek2010-08-281-0/+1
| | | | llvm-svn: 112380
* improve comment, patch by Vladimir Kirillov!Chris Lattner2010-08-281-2/+3
| | | | llvm-svn: 112374
* simplify by relying on cascading operator->Gabor Greif2010-08-281-3/+3
| | | | llvm-svn: 112373
* simplifyGabor Greif2010-08-281-2/+3
| | | | llvm-svn: 112372
* Fix copy+paste error in comment.Nick Lewycky2010-08-281-1/+1
| | | | llvm-svn: 112370
* add another test for PR8007Gabor Greif2010-08-281-0/+58
| | | | | | | | this is still failing, need to come up with a fix (but we are in good company as the first gcc version pass this test will be v4.6) llvm-svn: 112369
* the target of the link uses the singular form, so do we tooGabor Greif2010-08-281-1/+1
| | | | llvm-svn: 112367
* typoGabor Greif2010-08-281-1/+1
| | | | llvm-svn: 112366
* suppress annoying textual repetition as 'aka'Gabor Greif2010-08-282-5/+8
| | | | llvm-svn: 112365
* Fix the memory leak of FloatingLiteral/IntegerLiteral.Argyrios Kyrtzidis2010-08-2812-50/+156
| | | | | | | | | | | For large floats/integers, APFloat/APInt will allocate memory from the heap to represent these numbers. Unfortunately, when we use a BumpPtrAllocator to allocate IntegerLiteral/FloatingLiteral nodes the memory associated with the APFloat/APInt values will never get freed. I introduce the class 'APNumericStorage' which uses ASTContext's allocator for memory allocation and is used internally by FloatingLiteral/IntegerLiteral. Fixes rdar://7637185 llvm-svn: 112361
* That's not the right direction to compute notional accessibility in at all.John McCall2010-08-282-21/+56
| | | | llvm-svn: 112360
* Fix build. Bad me, adding last-minute assertions.John McCall2010-08-281-1/+1
| | | | llvm-svn: 112359
* When checking access control for an instance member access onJohn McCall2010-08-282-14/+153
| | | | | | | | | an object of type I, if the current access target is protected when named in a class N, consider the friends of the classes P where I <= P <= N and where a notional member of N would be non-forbidden in P. llvm-svn: 112358
* check whether sema issues a redefinition errorGabor Greif2010-08-281-5/+9
| | | | llvm-svn: 112347
* perform cheap test firstGabor Greif2010-08-281-1/+1
| | | | llvm-svn: 112346
* Ignore this flag too, Clang doesn't seem to use random numbers internally.Nick Lewycky2010-08-281-0/+1
| | | | llvm-svn: 112342
* note to self: save before committing; add PRGabor Greif2010-08-281-1/+1
| | | | llvm-svn: 112339
* fix test by applying it in top namespace: PR8007 only showed up this wayGabor Greif2010-08-281-6/+2
| | | | llvm-svn: 112338
* Update test case, with comment to later investigate the correct behavior. ↵Ted Kremenek2010-08-281-1/+4
| | | | | | Now the behavior is at least consistent. llvm-svn: 112335
* Explicitly handle CXXExprWithTemporaries during CFG construction by just ↵Ted Kremenek2010-08-282-0/+23
| | | | | | visiting the subexpression. While we don't do anything intelligent right now, this obviates a bogus -Wunreahable-code warning reported in PR 6130. llvm-svn: 112334
* fix PR8007Gabor Greif2010-08-282-2/+6
| | | | | | | reordering and redefinition issues still may linger, I plan to nail them next llvm-svn: 112333
* Basic code completion support for the base and member initializers inDouglas Gregor2010-08-283-7/+97
| | | | | | a constructor. llvm-svn: 112330
* reproduction recipe for PR8007, expected to fail for now, review welcomeGabor Greif2010-08-271-0/+49
| | | | llvm-svn: 112326
* Parser support for inline namespacesSebastian Redl2010-08-278-23/+59
| | | | llvm-svn: 112320
* Comment and move another ASTReader member.Sebastian Redl2010-08-271-3/+11
| | | | llvm-svn: 112319
* Update comment after Chandler's change.Sebastian Redl2010-08-271-1/+1
| | | | llvm-svn: 112318
* Miscellaneous found by inspection with John and SebastianDouglas Gregor2010-08-272-25/+22
| | | | llvm-svn: 112315
* Added checking of (x == x) and (x != x) to IdempotentOperationChecker and ↵Tom Care2010-08-273-3/+5
| | | | | | updated test cases flagged by it. llvm-svn: 112313
OpenPOWER on IntegriCloud