summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Enabled relaxed LiveVariables analysis in the path-sensitive engine to ↵Tom Care2010-08-277-38/+42
| | | | | | | | | | | increase the coverage of bugs. Primarily affects IdempotentOperationChecker. - Migrated a temporarily separated test back to its original file (bug has been fixed, null-deref-ps-temp.c -> null-deref-ps.c) - Changed SymbolManager to use relaxed LiveVariables - Updated several test cases that the IdempotentOperationChecker class now flags - Added test case to test relaxed LiveVariables use by the IdempotentOperationChecker llvm-svn: 112312
* Remove an assertion in UnreachableCodeChecker that can be triggered by bugs ↵Tom Care2010-08-271-2/+5
| | | | | | in other checkers. llvm-svn: 112310
* Fix bug in IdempotentOperationChecker where an assumption would not get ↵Tom Care2010-08-271-0/+4
| | | | | | updated properly. llvm-svn: 112309
* handle :: in selectors in objc++ mode, rdar://8366474Chris Lattner2010-08-272-3/+11
| | | | llvm-svn: 112307
* Add alternate version of LiveVariables analysis that does not kill liveness ↵Tom Care2010-08-274-9/+28
| | | | | | | | | at assignments. This 'relaxed' liveness is useful in path sensitive analysis for situations where the resulting extended liveness allows us to find some bugs. - Added killAtAssign flag to LiveVariables - Added relaxed LiveVariables to AnalysisContext with an accessor llvm-svn: 112306
* Add source file I meant to include in my previous commit.Ted Kremenek2010-08-271-0/+48
| | | | llvm-svn: 112303
* Improve wording of diagnostic complaining about a non-void* pointer as the ↵Douglas Gregor2010-08-272-1/+11
| | | | | | first parameter of operator delete llvm-svn: 112298
* Implement CXCursor support for walking C++ base specifiers. This includes ↵Ted Kremenek2010-08-279-5/+132
| | | | | | | | adding the API hooks clang_isVirtualBase() and clang_getCXXAccessSpecifier() to query properties of the base specifier. Implements <rdar://problem/8274883>. llvm-svn: 112296
* Fix copy-paste in doxygen comment.Ted Kremenek2010-08-271-1/+1
| | | | llvm-svn: 112295
* Implement the "call super" code completion for C++. If the virtualDouglas Gregor2010-08-272-5/+125
| | | | | | | | member function you're typing in overrides another virtual function, this fills in a (qualified!) call to that virtual function to make such delegation easy. llvm-svn: 112294
* Teach clang_codeComplete to always sort its code-completion resultsDouglas Gregor2010-08-271-0/+1
| | | | llvm-svn: 112292
* fix incorrect MM_HINT_ definitions, PR8011Chris Lattner2010-08-271-2/+2
| | | | llvm-svn: 112283
* Continue to instantiate sub-statements in a CompoundStmt as long asJohn McCall2010-08-276-13/+64
| | | | | | | we don't see a DeclStmt (failure to instantiate which generally causes panic). llvm-svn: 112282
* Debug info for friends!Devang Patel2010-08-273-13/+66
| | | | | | Patch originally by Alexander Herz. llvm-svn: 112275
* Suggest "const" and "volatile" code completions after a functionDouglas Gregor2010-08-276-1/+34
| | | | | | declarator, the very definition of "low-hanging fruit". llvm-svn: 112274
* Add the new alignment arguments for NEON load/store intrinsics, based on theBob Wilson2010-08-271-3/+40
| | | | | | types of the pointer address expressions used with those intrinsics. llvm-svn: 112272
* createMainFileID doesn't need its IncludePos argument, sinceDan Gohman2010-08-272-4/+3
| | | | | | | the main file isn't an included file, and the IncludePos is always SourceLocation(). llvm-svn: 112269
* When code-completing inside an Objective-C method, give a slightDouglas Gregor2010-08-273-3/+55
| | | | | | priority boost to methods with the same selector. llvm-svn: 112268
* Add a super-cool code completion for send-to-super. When we're typingDouglas Gregor2010-08-274-5/+210
| | | | | | | | | a message send to "super" from a method that appears to be meant to override a superclass method (same kind, same selector, same argument types), provide a "super" completion that fills in the selector along with forwarding the method's arguments (as placeholders). llvm-svn: 112263
* Fix CMake dependencies, from Fernando Pelliccioni!Douglas Gregor2010-08-271-1/+1
| | | | llvm-svn: 112261
* Propagate whether an id-expression is the immediate argument ofJohn McCall2010-08-2712-88/+200
| | | | | | | | | | | | | | | | | | | an '&' expression from the second caller of ActOnIdExpression. Teach template argument deduction that an overloaded id-expression doesn't give a valid type for deduction purposes to a non-static member function unless the expression has the correct syntactic form. Teach ActOnIdExpression that it shouldn't try to create implicit member expressions for '&function', because this isn't a permitted form of use for member functions. Teach CheckAddressOfOperand to diagnose these more carefully. Some of these cases aren't reachable right now because earlier diagnostics interrupt them. llvm-svn: 112258
* Don't recurse twice when we can recurse onceDouglas Gregor2010-08-271-3/+4
| | | | llvm-svn: 112246
* One who seeks knowledge learns something new every day.John McCall2010-08-2637-4079/+990
| | | | | | | | | One who seeks the Tao unlearns something new every day. Less and less remains until you arrive at non-action. When you arrive at non-action, nothing will be left undone. llvm-svn: 112244
* test case for r112238.Devang Patel2010-08-261-0/+31
| | | | llvm-svn: 112239
* Fix horrible GRExprEngine bug where switch statements with no 'case:' ↵Ted Kremenek2010-08-263-3/+17
| | | | | | statements would cause the path to get prematurely aborted. Fixes <rdar://problem/8360854>. llvm-svn: 112233
* Remove redundant cast<...>.Ted Kremenek2010-08-261-1/+1
| | | | llvm-svn: 112229
* Fix a typo.Dan Gohman2010-08-261-1/+1
| | | | llvm-svn: 112219
* improve comments.Chris Lattner2010-08-261-5/+2
| | | | llvm-svn: 112214
OpenPOWER on IntegriCloud