summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
Commit message (Collapse)AuthorAgeFilesLines
...
* [Cygwin] Work around to flush stdout in a thread, or stdout in threads won't ↵NAKAMURA Takumi2012-04-071-0/+3
| | | | | | be flushed at exit. llvm-svn: 154254
* Remove unused but set variable.Benjamin Kramer2012-03-311-3/+2
| | | | llvm-svn: 153800
* [libclang] Introduce clang_Cursor_getObjCSelectorIndex() function.Argyrios Kyrtzidis2012-03-301-0/+2
| | | | | | | | | | After getting a cursor with clang_getCursor for a particular source location, allows querying the cursor in order to find out if the location points to a selector identifier in an objc method or message expression, and which selector index it is. rdar://11158946 llvm-svn: 153781
* [libclang] Introduce clang_Cursor_getSpellingNameRange().Argyrios Kyrtzidis2012-03-301-3/+15
| | | | | | | | | | | It retrieves a source range for a piece that forms the cursors spelling name. Most of the times there is only one range for the complete spelling but for objc methods and objc message expressions, there are multiple pieces for each selector identifier. Part of rdar://11113120 llvm-svn: 153775
* [libclang] Have c-index-test output more information about a cursor with ↵Argyrios Kyrtzidis2012-03-301-0/+12
| | | | | | | | | | | | -cursor-at: -the location of the cursor -its extent -its spelling Part of radar://11113120 llvm-svn: 153707
* Introduce a new libclang API to determine the parent context of a codeDouglas Gregor2012-03-271-1/+16
| | | | | | | | | completion item. For example, if the code completion itself represents a declaration in a namespace (say, std::vector), then this API retrieves the cursor kind and name of the namespace (std). Implements <rdar://problem/11121951>. llvm-svn: 153545
* Don't include FixIts with a null replacement range. Fixes ↵Ted Kremenek2012-03-201-0/+2
| | | | | | <rdar://problem/11040133>. llvm-svn: 153122
* [c-index-test] Make it C90 compliant.Argyrios Kyrtzidis2012-03-151-1/+3
| | | | llvm-svn: 152823
* [libclang] A couple of enhancements to c-index-test.Argyrios Kyrtzidis2012-03-151-14/+35
| | | | | | | | | -When printing location avoid printing the filename if it is same as the main file, not just if it has '.h' extension. -Make sure we allocate enough bytes for storing as string a huge line number. llvm-svn: 152821
* Update library dependencies to add clangEdit on c-index-test and c-arcmt-test.NAKAMURA Takumi2012-03-111-1/+1
| | | | | | | | | To link with -static -lclang, linker tries to seek not libclang.so, clang.dll nor libclang.dll.a, but libclang.a. USEDLIBS should have correct dependencies for -static. (In contrast, USEDLIBS=libclang.so might be enough w/o -static) FYI, cygwin build (in buildbot) is using -static, due to avoiding weirdness of extremely slower startup lag of clang.exe. llvm-svn: 152539
* [libclang] When indexing an objc property, also provide information aboutArgyrios Kyrtzidis2012-02-281-0/+12
| | | | | | | | the getter/setter objc method entities that the property is associated with. rdar://10244558 llvm-svn: 151634
* Don't record nested macro expansions in the preprocessing record,Argyrios Kyrtzidis2012-02-251-2/+0
| | | | | | | | it can only bring pain when dealing with preprocessor abuse (see: boost). rdar://10898986 llvm-svn: 151427
* Implement new DiagnosticsRenderer that packages notes retrieved by ↵Ted Kremenek2012-02-141-6/+14
| | | | | | | | | clang_getDiagnosticSetFromTU() as child diagnostics of primary diagnostics. By using the DiagnosticRenderer, these Diagnostics now match with those generated for serialized diagnostics. llvm-svn: 150456
* [libclang] Add CXIndexOpt_IndexFunctionLocalSymbols indexing option to indicateArgyrios Kyrtzidis2012-01-141-8/+13
| | | | | | that one wants indexing callbacks for function-local symbols as well. llvm-svn: 148160
* [libclang] Indexing API: provide an attribute list inside CXIdxEntityInfoArgyrios Kyrtzidis2011-12-151-0/+7
| | | | | | so that we can access the attributes of an entity for a reference. llvm-svn: 146616
* [libclang] Indexing API: Fix suppressing of references in macros and suppressArgyrios Kyrtzidis2011-12-131-1/+5
| | | | | | | | @class forward references. rdar://10568080&10568103&10568119 llvm-svn: 146496
* [libclang] Indexing API: provide both the semantic and the lexical container.Argyrios Kyrtzidis2011-12-071-2/+4
| | | | | | They are generally the same except in C++ cases like out-of-line member functions. llvm-svn: 146069
* [libclang] Fix indexing of C++ bases in a C++ class.Argyrios Kyrtzidis2011-12-071-6/+18
| | | | llvm-svn: 146068
* [libclang] Introduce CXIdxEntityLanguage that indicates the languageArgyrios Kyrtzidis2011-12-071-1/+12
| | | | | | of an indexed entity. llvm-svn: 146067
* [libclang] When indexing a field in a C++ class, return an entityArgyrios Kyrtzidis2011-12-051-0/+1
| | | | | | of kind CXIdxEntity_CXXInstanceVariable. rdar://10522503. llvm-svn: 145859
* [libclang] Create a diagnostic set to pass at the end of indexing.Argyrios Kyrtzidis2011-12-011-9/+15
| | | | llvm-svn: 145557
* Install c-index-test and clang-c/Index.h as internal files. rdar://10217046Bob Wilson2011-11-281-0/+4
| | | | | | | | | Specify that these files should be installed to the optional internal install location as specified by configure's --with-internal-prefix. If that option is not used, they'll be installed to the default prefix as before. llvm-svn: 145235
* [libclang] Indexing API: If the client requested to get a CXTranslationUnit ↵Argyrios Kyrtzidis2011-11-281-1/+10
| | | | | | | | after indexing, honor all the TU options. llvm-svn: 145229
* [libclang] Indexing API: Support C++ symbols.Argyrios Kyrtzidis2011-11-221-15/+58
| | | | llvm-svn: 145058
* c-index-test.c: Fix syntax according to C.NAKAMURA Takumi2011-11-181-1/+1
| | | | llvm-svn: 144947
* [libclang] Indexing API:Argyrios Kyrtzidis2011-11-181-4/+21
| | | | | | | | | -For indexDeclaration, also pass the declaration attributes as an array of cursors. -Rename CXIndexOpt_OneRefPerFile -> CXIndexOpt_SuppressRedundantRefs, and only pass a reference if a declaration/definition does not exist in the file. -Other fixes. llvm-svn: 144942
* [libclang] Indexing API: fill the objc category info for a category ↵Argyrios Kyrtzidis2011-11-161-1/+4
| | | | | | | | implementation and do not crash if no client container is registered for a declaration context. llvm-svn: 144765
* [libclang] Indexing API: if the CXIndexOpt_OneRefPerFile option is set, only ↵Argyrios Kyrtzidis2011-11-161-2/+9
| | | | | | | | report one reference per file. llvm-svn: 144763
* [libclang] Introduce a new function to apply the indexing callbacks on an ↵Argyrios Kyrtzidis2011-11-151-3/+52
| | | | | | | | existing CXTranslationUnit, mainly to be used for indexing a PCH. llvm-svn: 144623
* [libclang] Slight changes to the indexing API and bigger internal changes ↵Argyrios Kyrtzidis2011-11-141-25/+24
| | | | | | for it. llvm-svn: 144577
* [libclang] Move the check for errors in c-index-test before the TU gets ↵Argyrios Kyrtzidis2011-11-131-3/+5
| | | | | | disposed. llvm-svn: 144514
* [libclang] for c-index-test, check for CINDEXTEST_FAILONERROR when doing ↵Argyrios Kyrtzidis2011-11-131-0/+12
| | | | | | -test-load-source-reparse llvm-svn: 144509
* [libclang] Further simplify the indexing API.Argyrios Kyrtzidis2011-11-121-125/+49
| | | | | | | That stuff can be added later on if we need them. Also add some const goodness. llvm-svn: 144446
* Silence compiler warning.Benjamin Kramer2011-11-111-0/+1
| | | | llvm-svn: 144386
* [serialized diagnostics]: add test cases for serialized diagnostics, ↵Ted Kremenek2011-11-111-3/+7
| | | | | | | | | including a test case for no issues, multiple issues, and a single issue. Along the way, tweak c-index-test -read-diagnostics output so it is easier to tell what diagnostics are child diagnostics. llvm-svn: 144349
* [libclang] Simplify the indexing API.Argyrios Kyrtzidis2011-11-111-266/+117
| | | | | | | | Cut down the number of callbacks to more generic ones. Clients can check an enum to find out what kind of declaration it is and they can call functions to get more specific information than the generic provided info. llvm-svn: 144343
* c-index-test.c: Fix a comment style. /* It is C source. */NAKAMURA Takumi2011-11-101-1/+1
| | | | llvm-svn: 144274
* c-index-test.c: Fix syntax. It is C source.NAKAMURA Takumi2011-11-101-2/+3
| | | | llvm-svn: 144272
* serialized diagnostics: implement full deserialization of clang diagnostics ↵Ted Kremenek2011-11-101-1/+154
| | | | | | | | via the libclang API. I've tested it on simple cases and it works. Test cases to follow as well as a few tweaks. llvm-svn: 144269
* [libclang] For "c-index-test -index-file", print out the names of the callbacks.Argyrios Kyrtzidis2011-11-051-29/+39
| | | | llvm-svn: 143779
* [libclang] Add missing return in clang_getExpansionLocation that resulted in ↵Argyrios Kyrtzidis2011-11-031-1/+1
| | | | | | | | | | | that function always returning a null file/line/column. Also add at least one use of clang_getExpansionLocation inside c-index-test that would have made the tests to catch that. llvm-svn: 143606
* [libclang] For c-index-test disable caching of code completion results ifArgyrios Kyrtzidis2011-11-031-0/+2
| | | | | | the CINDEXTEST_COMPLETION_NO_CACHING environment variable is present. llvm-svn: 143604
* [libclang] Introduce use of CINDEXTEST_FAILONERROR environment variable ↵Argyrios Kyrtzidis2011-10-281-2/+83
| | | | | | | | which, if set, will cause c-index-test to return as failed if a compiler error occurred. llvm-svn: 143243
* [libclang] Don't use C++-style comments in c-index-test.c.Argyrios Kyrtzidis2011-10-201-3/+3
| | | | llvm-svn: 142590
* [libclang] Index implicit property references.Argyrios Kyrtzidis2011-10-181-0/+5
| | | | llvm-svn: 142355
* [libclang] When printing the diagnostic print it with a new line.Argyrios Kyrtzidis2011-10-181-1/+1
| | | | llvm-svn: 142354
* Try fixing MSVC compiler errors.Argyrios Kyrtzidis2011-10-171-3/+9
| | | | llvm-svn: 142289
* [libclang] Introduce a new high level API for indexing clients that assumesArgyrios Kyrtzidis2011-10-171-0/+501
| | | | | | | | | more of the work involved in indexing a translation unit and simplifies client implementations. Only C/ObjC for now, C++ (and comments) to come. llvm-svn: 142233
* Added clang_getCompletionAnnotation and clang_getCompletionNumAnnotations toErik Verbruggen2011-10-141-0/+17
| | | | | | retrieve annotations from completion string. llvm-svn: 141953
* Fixed GCC (C90) and Clang warnings.Erik Verbruggen2011-10-061-6/+3
| | | | llvm-svn: 141281
OpenPOWER on IntegriCloud