summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Remove 'default' case in switch statement in clang_getCursorKindSpelling(). ↵Ted Kremenek2010-01-162-23/+25
| | | | | | This identified a missing case (warned by the compiler) and identified that CXCursor_FirstDecl didn't actually correspond to the first decl. llvm-svn: 93622
* Remove TranslateKind and centralize Decl -> CXCursorKind in GetCursorKind(). ↵Ted Kremenek2010-01-168-79/+75
| | | | | | This revealed a bunch of inconsistencies in how CXCursorKinds were being computed. llvm-svn: 93618
* Add codgen for BI__builtin_llvm_memory_barrier.Tanya Lattner2010-01-161-0/+12
| | | | llvm-svn: 93611
* The codegen for these builtins was removed long ago, but their definitions ↵Tanya Lattner2010-01-161-6/+0
| | | | | | remained. Removing them totally. llvm-svn: 93607
* Fix crash generating debug info for constructor for anonymous struct.Eli Friedman2010-01-162-1/+7
| | | | llvm-svn: 93601
* Migrate Decl* -> cursorkind logic into CXCursor.cpp, and drastically tighten ↵Ted Kremenek2010-01-163-69/+53
| | | | | | TUVisitor. llvm-svn: 93599
* Make the AST explicitly represent the cast of the first operand of a Eli Friedman2010-01-162-3/+16
| | | | | | pointer-to-member operator. llvm-svn: 93592
* Remove unused code.Ted Kremenek2010-01-151-36/+0
| | | | llvm-svn: 93586
* Refactor USR logic for EnumDecls and RecordDecls so that both handle ↵Ted Kremenek2010-01-151-15/+16
| | | | | | 'anonymous' declarations in the same way. llvm-svn: 93585
* Generalize handling for unreachable code warnings to all binary operators.Mike Stump2010-01-152-20/+17
| | | | llvm-svn: 93584
* Candidates with arity mismatches are extra-special non-viable and need toJohn McCall2010-01-151-16/+32
| | | | | | | | stand at the back of the line. Thanks to Oliver Hunt for reminding me to do this. llvm-svn: 93583
* Refine location reporting for unreachable code warnings for comma expressions.Mike Stump2010-01-152-12/+101
| | | | llvm-svn: 93574
* USR generation: look at the typedef of an anonymous struct (if any) when ↵Ted Kremenek2010-01-151-2/+6
| | | | | | trying to generate a USR. llvm-svn: 93572
* define __weak to null in rewritten source for Fariborz Jahanian2010-01-151-0/+1
| | | | | | -fms-extensions as well. llvm-svn: 93569
* Make CXCursor's data opaque.Douglas Gregor2010-01-155-48/+82
| | | | llvm-svn: 93561
* Make LookupResult::resolveKind() robust against NotFoundInCurrentInstantiation.John McCall2010-01-151-1/+1
| | | | | | Fixes PR 6049. llvm-svn: 93557
* Add CXCursor.[h,cpp]. These files will centralize the logic for ↵Ted Kremenek2010-01-154-12/+63
| | | | | | creating/probing CXCursors. llvm-svn: 93547
* Fix a couple bugs in copy assignment operator synthesis.Eli Friedman2010-01-152-19/+25
| | | | llvm-svn: 93546
* Add USR generation for enums.Ted Kremenek2010-01-151-0/+11
| | | | llvm-svn: 93543
* Add -cursor-at=file:line:column command line option to c-index-test,Douglas Gregor2010-01-153-16/+88
| | | | | | | | to directly check the results of clang_getCursor(). Also, start migrating some index-test tests over to c-index test [*] and some grep-using tests over to FileCheck. llvm-svn: 93537
* Preserve type source information for C++ named casts through templateJohn McCall2010-01-153-23/+39
| | | | | | instantiation. llvm-svn: 93533
* Don't lose type source information when rebuilding C-style cast expressions.John McCall2010-01-153-13/+25
| | | | | | Also we don't need to recheck for altivec initializers, I think. llvm-svn: 93529
* Preserve type source information in explicit cast expressions.John McCall2010-01-159-159/+157
| | | | | | Patch by Enea Zaffanella. llvm-svn: 93522
* getLocationFromCursor: If a cursor is a reference and has a referringDecl, ↵Ted Kremenek2010-01-151-0/+4
| | | | | | using the referringDecl for the location. llvm-svn: 93520
* Do not do the block-specific rewrite when there is no block literals.Fariborz Jahanian2010-01-152-1/+9
| | | | | | Fixes radar 7546096. llvm-svn: 93519
* When determining whether a DeclRefExpr is value-dependent when itDouglas Gregor2010-01-152-4/+25
| | | | | | | | references a const variable of integral type, the initializer may be in a different declaration than the one that name-lookup saw. Find the initializer anyway. Fixes PR6045. llvm-svn: 93514
* When determining whether the type is the current instantiation, stripDouglas Gregor2010-01-152-2/+22
| | | | | | qualifiers. Fixes PR6021. llvm-svn: 93513
* Convert the type of the LValue offset variable in APValue to CharUnits, movingKen Dyck2010-01-154-59/+84
| | | | | | the LValue-related methods of APValue out of line to avoid header file leaching. llvm-svn: 93512
* Don't repeat lookup when instantiating resolved member expressions.John McCall2010-01-154-20/+70
| | | | | | | | | | Adjust BuildMemberReferenceExpr to perform the inheritance check on implicit member accesses, which can arise from unqualified lookups and therefore may reference decls from enclosing class scopes. Fixes PR 5838. llvm-svn: 93510
* Don't suggest the developer use 'arc4random' instead of 'rand' when that ↵Ted Kremenek2010-01-152-3/+48
| | | | | | function is not available. Fixes PR 6012. llvm-svn: 93508
* Teach BugReporter to "escape" the occurance of '%' characters in diagnostic ↵Ted Kremenek2010-01-152-2/+27
| | | | | | messages when emitted results to the standard Diagnostics output. Fixes PR 6033. llvm-svn: 93507
* Convert a few more uses of std::string& to llvm::StringRef.Ted Kremenek2010-01-152-4/+4
| | | | llvm-svn: 93506
* Add testcase for recent checkin.Mike Stump2010-01-151-0/+20
| | | | llvm-svn: 93503
* Refine unreachable warnings. WIP.Mike Stump2010-01-151-4/+87
| | | | llvm-svn: 93500
* When performing qualified name lookup into the current instantiation,Douglas Gregor2010-01-156-33/+73
| | | | | | | | | | | | | do not look into base classes if there are any dependent base classes. Instead, note in the lookup result that we couldn't look into any dependent bases. Use that new result kind to detect when this case occurs, so that we can fall back to treating the type/value/etc. as a member of an unknown specialization. Fixes an issue where we were resolving lookup at template definition time and then missing an ambiguity at template instantiation time. llvm-svn: 93497
* Fix Release-Asserts for the time being.Mike Stump2010-01-151-352/+351
| | | | llvm-svn: 93493
* Patch to avoid duplicate declaration of byref structsFariborz Jahanian2010-01-142-9/+70
| | | | | | | for __block variables of same name declared in multiple scopes. Fixes radar 7540194 llvm-svn: 93474
* Emit linkage name even if it matches regular name. The code generator uses ↵Devang Patel2010-01-141-3/+3
| | | | | | linkage name to find subprogram entry for the current function. llvm-svn: 93461
* Forgot to commit theseAnton Korobeynikov2010-01-142-12/+12
| | | | llvm-svn: 93458
* fix grammaroChris Lattner2010-01-141-1/+1
| | | | llvm-svn: 93452
* long long is 64 bits on msp430Anton Korobeynikov2010-01-141-1/+2
| | | | llvm-svn: 93451
* Pre-emptive bugfixes in the diagnostics code: allow arbitrary punctuationJohn McCall2010-01-141-8/+35
| | | | | | | characters to be escaped and implement a scan-forward function which properly respects brace nesting. llvm-svn: 93447
* Simplify test case. This test case also applies to PR 6013.Ted Kremenek2010-01-141-9/+5
| | | | llvm-svn: 93444
* Associate test case with Bugzilla PR.Ted Kremenek2010-01-141-7/+8
| | | | llvm-svn: 93440
* Document the extensions I made to the diagnostics-formatting system yesterday.John McCall2010-01-141-2/+12
| | | | llvm-svn: 93439
* After dyn_cast'ing, it generally makes sense to check the *output* ofDouglas Gregor2010-01-142-1/+19
| | | | | | the dyn_cast against NULL rather than the *input*. Fixes PR6025. llvm-svn: 93435
* Add comment.Devang Patel2010-01-141-0/+3
| | | | llvm-svn: 93434
* When qualified lookup into the current instantiation fails (because itDouglas Gregor2010-01-147-4/+118
| | | | | | | | finds nothing), and the current instantiation has dependent base classes, treat the qualified lookup as if it referred to an unknown specialization. Fixes PR6031. llvm-svn: 93433
* Switch a few callers of MaybeAddResult over to AddResult, when theDouglas Gregor2010-01-141-10/+12
| | | | | | declarations we're adding do not need any name-hiding checks. llvm-svn: 93431
* Switch code-completion's ivar lookup over to LookupVisibleDecls,Douglas Gregor2010-01-141-5/+11
| | | | | | eliminating yet one more ResultBuilder::MaybeAddResult caller. llvm-svn: 93430
OpenPOWER on IntegriCloud