summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/load-stmts.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add -frtti/-fexceptions to some more tests that assume they're onFilipe Cabecinhas2015-02-261-1/+1
| | | | llvm-svn: 230656
* Expose more statement, expression, and declaration kinds in libclang,Douglas Gregor2011-10-051-5/+5
| | | | | | from Manuel Holtgrewe! llvm-svn: 141200
* [libclang] For getDeclFromExpr in CIndex.cpp, associate the decl ofArgyrios Kyrtzidis2011-09-121-2/+4
| | | | | | | a DeclRefExpr, MemberExpr, etc. with a CastExpr if it is ImplicitCast, since the implicit cast is the one that is invisible in source code. llvm-svn: 139547
* Enable -fdelayed-template-parsing by default on Win32.Francois Pichet2011-09-011-1/+1
| | | | | | I had to force -fno-delayed-template-parsing on some Index tests because delayed template parsing will change the output of some tests. llvm-svn: 138942
* Fixed source range for all DeclaratorDecl's.Abramo Bagnara2011-03-081-6/+6
| | | | llvm-svn: 127225
* Fixed TypedefDecl and TemplateTypeParameter source range.Abramo Bagnara2011-03-061-2/+2
| | | | llvm-svn: 127119
* Add the location of the right parenthesis of a C++ named castDouglas Gregor2011-01-121-0/+6
| | | | | | | (static_cast, dynamic_cast, reinterpret_cast, or const_cast) to improve source-location information. Fixes PR8960. llvm-svn: 123336
* Teach clang_getCursorReferenced() that aDouglas Gregor2010-11-051-1/+1
| | | | | | | | 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. llvm-svn: 118297
* Improve the tracking of source locations for parentheses in constructor calls.Chandler Carruth2010-10-251-1/+1
| | | | | | | | | | | | 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. llvm-svn: 117254
* Provide proper source location and range information for C++ baseDouglas Gregor2010-10-021-4/+4
| | | | | | | specifier cursors in libclang. FIXME -=2, fixes the rest of <rdar://problem/8274883>. llvm-svn: 115419
* Add libclang support for label statements, gotos, and taking theDouglas Gregor2010-09-101-12/+13
| | | | | | address of a label (GNU extension). llvm-svn: 113564
* Teach libclang to walk the base and member initializers of aDouglas Gregor2010-09-091-0/+22
| | | | | | | | 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. llvm-svn: 113545
* Add proper type-source information to UnaryTypeTraitExpr, includingDouglas Gregor2010-09-091-0/+3
| | | | | | libclang visitation. llvm-svn: 113492
* Provide proper type-source location information forDouglas Gregor2010-09-081-0/+20
| | | | | | | | CXXTemporaryObjectExpr, CXXScalarValueInitExpr, and CXXUnresolvedConstructExpr, getting rid of a bunch of FIXMEs in the process. llvm-svn: 113319
* Improve source-location information for CXXNewExpr, by hanging on toDouglas Gregor2010-09-071-0/+15
| | | | | | the TypeSourceInfo for the allocated type. Fixes PR7501. llvm-svn: 113291
* Implement libclang visitation for UnresolvedMemberExpr. This is theDouglas Gregor2010-09-031-0/+24
| | | | | | | | | 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. llvm-svn: 112981
* libclang visitation for CXXDependentScopeMemberExprDouglas Gregor2010-09-031-0/+4
| | | | llvm-svn: 112978
* libclang visitation for DependentScopeDeclRefExprDouglas Gregor2010-09-031-0/+5
| | | | llvm-svn: 112975
* Teach libclang to visit OverloadExprs, so that we can reuse thisDouglas Gregor2010-09-021-4/+14
| | | | | | code. Also, teach it about explicitly-specified template arguments. llvm-svn: 112884
* Add libclang visitation for UnresolvedLookupExprsDouglas Gregor2010-09-021-0/+14
| | | | llvm-svn: 112879
* Add libclang visitation for C++ pseudo-destructor expressions.Douglas Gregor2010-09-021-0/+8
| | | | llvm-svn: 112873
* Add libclang visitation for C++ typeid expressions.Douglas Gregor2010-09-021-1/+13
| | | | llvm-svn: 112862
* Implement CXCursor support for walking C++ base specifiers. This includes ↵Ted Kremenek2010-08-271-0/+26
| | | | | | | | adding the API hooks clang_isVirtualBase() and clang_getCXXAccessSpecifier() to query properties of the base specifier. Implements <rdar://problem/8274883>. llvm-svn: 112296
* Specially handle CaseStmts in CursorVisitor because they can be nested and ↵Ted Kremenek2010-05-131-1/+1
| | | | | | | | walking them can blow out the stack. llvm-svn: 103687
* Make test portable.Ted Kremenek2010-05-121-11/+0
| | | | llvm-svn: 103588
* Re-apply r103581 with updated tests. It turns out we were computing bogus ↵Ted Kremenek2010-05-121-11/+30
| | | | | | | | locations for many things. llvm-svn: 103583
* c-index-test: Unify and always print half-open extents.Daniel Dunbar2010-02-141-38/+38
| | | | llvm-svn: 96160
* c-index-test: Unify syntax for printing extents. Yes, there were 4.Daniel Dunbar2010-02-141-38/+38
| | | | llvm-svn: 96158
* Add test case for ? : crasherDouglas Gregor2010-01-251-1/+0
| | | | llvm-svn: 94429
* Loosen preconditions for clang_getCursorSpelling(), returning an emptyDouglas Gregor2010-01-251-12/+12
| | | | | | | string when given a cursor that does not have a name. Also, don't give silly names for statements and non-reference expressions. llvm-svn: 94426
* Visit the condition variables of while and for loops; also, visit theDouglas Gregor2010-01-251-0/+52
condition even when we've visited the condition variable, so that we'll see implicit conversions there. llvm-svn: 94423
OpenPOWER on IntegriCloud