summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/usrs.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang][Index] Visit UsingDecls and generate USRs for themKadir Cetinkaya2019-02-261-1/+1
| | | | | | | | | | | | | | | | | Summary: Add indexing of UsingDecl itself. Also enable generation of USRs for UsingDecls, using the qualified name of the decl. Reviewers: ilya-biryukov, akyrtzi Subscribers: arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D58340 llvm-svn: 354878
* [index] Handle vector types in USR generatorAlex Lorenz2017-04-281-0/+11
| | | | | | rdar://25339187 llvm-svn: 301635
* clang/test/Index/usrs.cpp: Appease targeting msvc.NAKAMURA Takumi2014-12-081-1/+1
| | | | llvm-svn: 223649
* [libclang] Encode InjectedClassNameType in the USR.Argyrios Kyrtzidis2014-12-081-0/+7
| | | | llvm-svn: 223634
* [libclang] Encode location info for anonymous embedded tag decls.Argyrios Kyrtzidis2014-12-081-0/+6
| | | | | | Otherwise the USR will conflict with different embedded tag decls. llvm-svn: 223633
* [libclang] Use same USR encoding for 'class' as 'struct'.Argyrios Kyrtzidis2014-12-081-26/+26
| | | | | | | | 'class' and 'struct' can be used interchangebly for forward references. Use the same encoding otherwise we may get into a weird situation where the USR for the same declaration is different based on whether the definition of the tag reference is visible or not. llvm-svn: 223632
* [libclang] Reflect in USR generation that 'signed char' and 'unsigned char' ↵Argyrios Kyrtzidis2014-12-081-0/+9
| | | | | | can overload a 'char' in C++, by giving them distinct encodings. llvm-svn: 223629
* [libclang] Function templates can be 'overloaded' by return type, so encode ↵Argyrios Kyrtzidis2014-12-081-1/+7
| | | | | | | | the return type in the USR and handle DependentNameType in order to be able to distinguish them. llvm-svn: 223628
* [Index] Make the USRs more stable.Argyrios Kyrtzidis2014-02-231-7/+7
| | | | | | | | | - Only include offsets with local (in function scope) symbols, where we don't encode scoping - Only include the filename with non-system symbols. Presumably the system headers will not provide conflicting definitions. rdar://15976823 llvm-svn: 201990
* [libclang] Declarations inside anonymous namespaces have internal linkage soArgyrios Kyrtzidis2012-12-071-3/+3
| | | | | | | | | their USR should contain a location. This uniques them from other declarations with the same name but in different translation units. rdar://10546541 llvm-svn: 169647
* Use the canonical decl when generating the locations for USRs.Ted Kremenek2011-05-031-0/+22
| | | | llvm-svn: 130748
* Fixed type and declaration source range in presence of typeQuals.Abramo Bagnara2011-03-121-1/+1
| | | | llvm-svn: 127535
* Fixed NamespaceDecl source range.Abramo Bagnara2011-03-081-7/+7
| | | | llvm-svn: 127242
* Fixed source range for all DeclaratorDecl's.Abramo Bagnara2011-03-081-17/+17
| | | | llvm-svn: 127225
* Fixed TypedefDecl and TemplateTypeParameter source range.Abramo Bagnara2011-03-061-1/+1
| | | | llvm-svn: 127119
* Implement libclang support for using declarations. Clang actually usesDouglas Gregor2010-09-011-0/+6
| | | | | | | | | | | | | | | | 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
* Add test for nothing... i.e., the contents of a USR for using directivesDouglas Gregor2010-09-011-0/+4
| | | | llvm-svn: 112716
* Implement libclang support for using directives (cursor + visitation +Douglas Gregor2010-09-011-0/+2
| | | | | | | | 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
* Add libclang support for namespace aliases (visitation + USRs) alongDouglas Gregor2010-08-311-1/+3
| | | | | | | | | | | 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
* Update test case to include USRs containing offsets instead of line/columns.Ted Kremenek2010-07-221-17/+20
| | | | llvm-svn: 109096
* Extend C++ usrs to include type mangling for tag decl arguments, indicating ↵Ted Kremenek2010-05-071-26/+37
| | | | | | | | whether a method is static, and mangling in the qualifers of the method. llvm-svn: 103289
* Add initial USR support for mangling in the types of C++ functions and methods.Ted Kremenek2010-05-071-19/+24
| | | | llvm-svn: 103225
* Add USR test case for C++ operator methods.Ted Kremenek2010-05-071-0/+18
| | | | llvm-svn: 103223
* Add USR support for C++ namespaces, and unify mangling of location ↵Ted Kremenek2010-05-061-0/+73
information in USRs for anonymous symbols. llvm-svn: 103212
OpenPOWER on IntegriCloud