summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
Commit message (Collapse)AuthorAgeFilesLines
...
* [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
* Added CXAvailability_NotAccessible to indicate that a declaration is ↵Erik Verbruggen2011-10-061-0/+8
| | | | | | available, but not accessible from the current code completion context. llvm-svn: 141278
* [libclang] Introduce clang_findReferencesInFile which accepts a cursor, a file,Argyrios Kyrtzidis2011-10-061-9/+108
| | | | | | | | and a callback and finds all identifier references of the cursor in the file. rdar://7948304 llvm-svn: 141277
* Install c-index-test also on CMake build, following up r140681.NAKAMURA Takumi2011-09-281-0/+1
| | | | llvm-svn: 140694
* Install c-index-test as part of install-clang-c Makefile rule.Ted Kremenek2011-09-281-3/+0
| | | | llvm-svn: 140681
* Don't map a file:line:col triplet that is inside the preamble range toArgyrios Kyrtzidis2011-09-261-0/+11
| | | | | | | | | | | | | | a "loaded" location of the precompiled preamble. Instead, handle specially locations of preprocessed entities: -When looking up for preprocessed entities, map main file locations inside the preamble range to a preamble loaded location. -When getting the source range of a preprocessing cursor, map preamble loaded locations back to main file locations. Fixes rdar://10175093 & http://llvm.org/PR10999 llvm-svn: 140519
* [libclang] Make c-index-test check CINDEXTEST_REMAP_AFTER_TRIAL environment ↵Argyrios Kyrtzidis2011-09-121-1/+10
| | | | | | | | | variable, which when set it determines the trial number after which the remapping of files should take effect. llvm-svn: 139511
* Fix type mismatch in initialization (caught by -Wliteral-conversion)Matt Beaumont-Gay2011-08-291-1/+1
| | | | llvm-svn: 138736
* Add a new libclang API to return a CXCompletionString for an arbitraryDouglas Gregor2011-08-041-0/+6
| | | | | | cursor, from Connor Wakamo! Addresses <rdar://problem/9087798>. llvm-svn: 136911
* Add new libclang API, clang_codeCompleteGetObjCSelector(), whichDouglas Gregor2011-07-261-1/+11
| | | | | | | provides the partial Objective-C selector used in a code completion. From Connor Wakamo! llvm-svn: 136084
* Added clang_getCursorReferenceNameRange to libclang to to retrieve parts ofDouglas Gregor2011-07-251-12/+39
| | | | | | a cursor reference, from Erik Verbruggen! llvm-svn: 135920
* New libclang API to expose container type for code completion, fromDouglas Gregor2011-07-211-1/+23
| | | | | | Connor Wakamo! llvm-svn: 135651
* NestedMacroInstantiations -> NestedMacroExpansionsChandler Carruth2011-07-141-1/+1
| | | | | | | | | | | | | | | | This is switches all the interfaces points (and most of the commenst / local variables I saw on my way through) regarding the NestedMacroInstantiations bit. The libclang enums corresponding to this state were renamed, but a legacy enum was added with the old name, and the same value to keep existing clients working. I've added a documentation blurb for it, but let me know if there is a canonical way to document legacy elemenst of the libclang interface. No functionality changed here, even in tests. llvm-svn: 135141
* Fix linker problem in buildbot.Argyrios Kyrtzidis2011-07-091-1/+1
| | | | llvm-svn: 134849
* Introduce a new libclang aPI function,Douglas Gregor2011-07-071-0/+78
| | | | | | | | | clang_codeCompleteGetContexts(), that provides the client with information about the context in which code completion has occurred and what kinds of entities make sense as completions at that point. Patch by Connor Wakamo! llvm-svn: 134615
* MSVC doesn't like mixing declarations and statements in a C file.Francois Pichet2011-07-061-2/+1
| | | | llvm-svn: 134550
* libclang: Allow callers of clang_saveTranslationUnit() to distinguishDouglas Gregor2011-07-061-3/+27
| | | | | | | between different classes of errors. Addresses most of <rdar://problem/9660328>. llvm-svn: 134495
* Remove ARCMigrate from more builds that it isn't needed in now that theChandler Carruth2011-06-161-2/+1
| | | | | | layering problem has been addressed. llvm-svn: 133217
* c-index-test also depends on ARCMigrate, oh boyJohn McCall2011-06-161-2/+3
| | | | llvm-svn: 133147
* Add c-index-test printing and tests for static and virtual methodDouglas Gregor2011-05-131-0/+5
| | | | | | query functions, from Erik Verbruggen! llvm-svn: 131295
* Introduce a new libclang parsing flag,Douglas Gregor2011-05-061-10/+13
| | | | | | | | | | | | | CXTranslationUnit_NestedMacroInstantiations, which indicates whether we want to see "nested" macro instantiations (e.g., those that occur inside other macro instantiations) within the detailed preprocessing record. Many clients (e.g., those that only care about visible tokens) don't care about this information, and in code that uses preprocessor metaprogramming, this information can have a very high cost. Addresses <rdar://problem/9389320>. llvm-svn: 130990
* Introduce a new libclang API, clang_isFileMultipleIncludeGuarded(),Douglas Gregor2011-05-041-10/+16
| | | | | | | | which determines whether a particular file is actually a header that is intended to be guarded from multiple inclusions within the same translation unit. llvm-svn: 130808
* Rename 'CXTUMemoryUsage…' to 'CXTUResourceUsage…'.Ted Kremenek2011-04-201-3/+3
| | | | llvm-svn: 129857
OpenPOWER on IntegriCloud