summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/load-namespaces.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Report a correct end location for nameless parameters.Benjamin Kramer2014-02-021-1/+1
| | | | | | | | | | | | | | | Ranges before: void test(void (*)(int), int, float); ~~~~~~~~~~~~~ ~~~~ ~~~~~~ Ranges after: void test(void (*)(int), int, float); ~~~~~~~~~~~~~ ~~~ ~~~~~ This does not change the actual location of the ParmVarDecl, it still points to the location where the name would be. PR17970. llvm-svn: 200640
* Fixed NamespaceDecl source range.Abramo Bagnara2011-03-081-4/+4
| | | | llvm-svn: 127242
* Fixed source range for all DeclaratorDecl's.Abramo Bagnara2011-03-081-4/+4
| | | | llvm-svn: 127225
* Replace UsingDecl's SmallPtrSet of UsingShadowDecls with a linked list to ↵Argyrios Kyrtzidis2010-11-101-1/+1
| | | | | | | | avoid leaking memory. Fixes rdar://8649963. llvm-svn: 118674
* Introduce a new kind of cursor into libclang, which covers a referenceDouglas Gregor2010-09-131-1/+1
| | | | | | | | | to an "overloaded" set of declarations. This cursor kind works for unresolved references to functions/templates (e.g., a call within a template), using declarations, and Objective-C class and protocol forward declarations. llvm-svn: 113805
* Implement basic visitation for nested name specifiers via libclangDouglas Gregor2010-09-021-0/+11
| | | | | | | | cursors. Sadly, this visitation is a hack, because we don't have proper source-location information for nested-name-specifiers in the AST. It does improve on the status quo, however. llvm-svn: 112837
* Implement libclang support for using declarations. Clang actually usesDouglas Gregor2010-09-011-0/+10
| | | | | | | | | | | | | | | | three different kinds of AST nodes to represent using declarations: UsingDecl, UnresolvedUsingValueDecl, and UnresolvedUsingTypenameDecl. These three are collapsed into a single cursor kind for using declarations, since libclang clients don't need the distinction. Several related changes here: - Cursor visitation of the three AST nodes for using declarations - Proper source-range computation for these AST nodes - Using declarations have no USRs, since they don't actually declare any entities. llvm-svn: 112730
* Implement libclang support for using directives (cursor + visitation +Douglas Gregor2010-09-011-1/+3
| | | | | | | | suppressing USRs). Also, fix up the source location information for using directives so that the declaration location refers to the namespace name. llvm-svn: 112693
* Improve location information in the representation of namespaceDouglas Gregor2010-09-011-4/+3
| | | | | | | | | | | | | | | | aliases. Previously, the location of the alias was at the "namespace" keyword. Now, it's on the identifier being declared (as is the custom for Clang), and we keep a separate source location for the "namespace" keyword. Also, added a getSourceRange() member function to NamespaceAliasDecl to correctly compute the source range. Finally, removed a bunch of setters from NamespaceAliasDecl and gave ASTReaderDecl friendship so that it could set the corresponding fields directly. llvm-svn: 112681
* Add libclang support for namespace aliases (visitation + USRs) alongDouglas Gregor2010-08-311-2/+8
| | | | | | | | | | | with a new cursor kind for a reference to a namespace. There's still some oddities in the source location information for NamespaceAliasDecl that I'll address with a separate commit, so the source locations displayed in the load-namespaces.cpp test will change. llvm-svn: 112676
* Add a simple test for indexing namespacesDouglas Gregor2010-08-311-0/+22
llvm-svn: 112598
OpenPOWER on IntegriCloud