summaryrefslogtreecommitdiff
path: root/test/Index/load-stmts.cpp
Commit message (Collapse)AuthorAge
* Expose more statement, expression, and declaration kinds in libclang,Douglas Gregor2011-10-05
| | | | | | | from Manuel Holtgrewe! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141200 91177308-0d34-0410-b5e6-96231b3b80d8
* [libclang] For getDeclFromExpr in CIndex.cpp, associate the decl ofArgyrios Kyrtzidis2011-09-12
| | | | | | | a DeclRefExpr, MemberExpr, etc. with a CastExpr if it is ImplicitCast, since the implicit cast is the one that is invisible in source code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139547 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable -fdelayed-template-parsing by default on Win32.Francois Pichet2011-09-01
| | | | | | | I had to force -fno-delayed-template-parsing on some Index tests because delayed template parsing will change the output of some tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138942 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed source range for all DeclaratorDecl's.Abramo Bagnara2011-03-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127225 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed TypedefDecl and TemplateTypeParameter source range.Abramo Bagnara2011-03-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127119 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the location of the right parenthesis of a C++ named castDouglas Gregor2011-01-12
| | | | | | | | (static_cast, dynamic_cast, reinterpret_cast, or const_cast) to improve source-location information. Fixes PR8960. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123336 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach clang_getCursorReferenced() that aDouglas Gregor2010-11-05
| | | | | | | | | CXXConstructorExpr/CXXTemporaryObjectExpr references the constructor it calls. Then, tweak clang_getCursor() to prefer such a call over a type reference to the type being called. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118297 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve the tracking of source locations for parentheses in constructor calls.Chandler Carruth2010-10-25
| | | | | | | | | | | | | This adds them where missing, and traces them through PCH. We fix at least one bug in the extents found by the Index library, and make a lot of refactoring tools which care about the exact formulation of a constructor call easier to write. Also some minor cleanups to more consistently follow the friend pattern instead of the setter pattern when rebuilding a serialized AST. Patch originally by Samuel Benzaquen. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117254 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide proper source location and range information for C++ baseDouglas Gregor2010-10-02
| | | | | | | | specifier cursors in libclang. FIXME -=2, fixes the rest of <rdar://problem/8274883>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115419 91177308-0d34-0410-b5e6-96231b3b80d8
* Add libclang support for label statements, gotos, and taking theDouglas Gregor2010-09-10
| | | | | | | | address of a label (GNU extension). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113564 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach libclang to walk the base and member initializers of aDouglas Gregor2010-09-09
| | | | | | | | | constructor, in source order. Also introduces a new reference kind for class members, which is used here (for member initializers) and will also be used for designated initializers and offsetof. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113545 91177308-0d34-0410-b5e6-96231b3b80d8
* Add proper type-source information to UnaryTypeTraitExpr, includingDouglas Gregor2010-09-09
| | | | | | | libclang visitation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113492 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide proper type-source location information forDouglas Gregor2010-09-08
| | | | | | | | | CXXTemporaryObjectExpr, CXXScalarValueInitExpr, and CXXUnresolvedConstructExpr, getting rid of a bunch of FIXMEs in the process. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113319 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve source-location information for CXXNewExpr, by hanging on toDouglas Gregor2010-09-07
| | | | | | | the TypeSourceInfo for the allocated type. Fixes PR7501. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113291 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement libclang visitation for UnresolvedMemberExpr. This is theDouglas Gregor2010-09-03
| | | | | | | | | | last of the C++-specific expressions where we have decent source information in the AST already. In particular, various object-construction expressions (CXXNewExpr, CXXTemporaryObjectExpr) still have poor source-location information that needs to be addressed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112981 91177308-0d34-0410-b5e6-96231b3b80d8
* libclang visitation for CXXDependentScopeMemberExprDouglas Gregor2010-09-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112978 91177308-0d34-0410-b5e6-96231b3b80d8
* libclang visitation for DependentScopeDeclRefExprDouglas Gregor2010-09-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112975 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach libclang to visit OverloadExprs, so that we can reuse thisDouglas Gregor2010-09-02
| | | | | | | code. Also, teach it about explicitly-specified template arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112884 91177308-0d34-0410-b5e6-96231b3b80d8
* Add libclang visitation for UnresolvedLookupExprsDouglas Gregor2010-09-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112879 91177308-0d34-0410-b5e6-96231b3b80d8
* Add libclang visitation for C++ pseudo-destructor expressions.Douglas Gregor2010-09-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112873 91177308-0d34-0410-b5e6-96231b3b80d8
* Add libclang visitation for C++ typeid expressions.Douglas Gregor2010-09-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112862 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement CXCursor support for walking C++ base specifiers. This includes ↵Ted Kremenek2010-08-27
| | | | | | | | adding the API hooks clang_isVirtualBase() and clang_getCXXAccessSpecifier() to query properties of the base specifier. Implements <rdar://problem/8274883>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112296 91177308-0d34-0410-b5e6-96231b3b80d8
* Specially handle CaseStmts in CursorVisitor because they can be nested and ↵Ted Kremenek2010-05-13
| | | | | | | | walking them can blow out the stack. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103687 91177308-0d34-0410-b5e6-96231b3b80d8
* Make test portable.Ted Kremenek2010-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103588 91177308-0d34-0410-b5e6-96231b3b80d8
* Re-apply r103581 with updated tests. It turns out we were computing bogus ↵Ted Kremenek2010-05-12
| | | | | | | | locations for many things. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103583 91177308-0d34-0410-b5e6-96231b3b80d8
* c-index-test: Unify and always print half-open extents.Daniel Dunbar2010-02-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96160 91177308-0d34-0410-b5e6-96231b3b80d8
* c-index-test: Unify syntax for printing extents. Yes, there were 4.Daniel Dunbar2010-02-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96158 91177308-0d34-0410-b5e6-96231b3b80d8
* Add test case for ? : crasherDouglas Gregor2010-01-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94429 91177308-0d34-0410-b5e6-96231b3b80d8
* Loosen preconditions for clang_getCursorSpelling(), returning an emptyDouglas Gregor2010-01-25
| | | | | | | | | string when given a cursor that does not have a name. Also, don't give silly names for statements and non-reference expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94426 91177308-0d34-0410-b5e6-96231b3b80d8
* Visit the condition variables of while and for loops; also, visit theDouglas Gregor2010-01-25
condition even when we've visited the condition variable, so that we'll see implicit conversions there. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94423 91177308-0d34-0410-b5e6-96231b3b80d8