summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
Commit message (Collapse)AuthorAgeFilesLines
* [c-index-test] For the '-remap-file' option use a comma for separator which ↵Argyrios Kyrtzidis2013-12-051-7/+7
| | | | | | | | is more Windows friendly than the colon. llvm-svn: 196529
* [libclang] Record ranges skipped by the preprocessor and expose them with ↵Argyrios Kyrtzidis2013-12-051-0/+14
| | | | | | | | libclang. Patch by Erik Verbruggen! llvm-svn: 196487
* [c-index-test] Enhance perform_test_reparse_source() to allow remapping a fileArgyrios Kyrtzidis2013-12-051-12/+77
| | | | | | | | at a particular reparsing iteration. Passing '-remap-file-1=from:to' will remap the files in the second iteration. llvm-svn: 196486
* [c-index-test] For the '-remap-file=' option use ':' instead of ';' for ↵Argyrios Kyrtzidis2013-12-051-7/+7
| | | | | | | | separator. lldb does not like semicolon as part of an option. llvm-svn: 196485
* [libclang] Introduce clang_Type_getCXXRefQualifier whichexposes ↵Argyrios Kyrtzidis2013-10-111-0/+5
| | | | | | | | ref-qualifier information of function type. Patch by Che-Liang Chiou! llvm-svn: 192493
* {c-index-test|c-arcmt-test}/Makefile: Update USEDLIBS along corresponding to ↵NAKAMURA Takumi2013-08-181-1/+1
| | | | | | clangIndex. llvm-svn: 188621
* Revert commit 186833 (no longer needed after the fix in 186859).Enea Zaffanella2013-07-221-83/+46
| | | | llvm-svn: 186872
* c-index-test.c: Let this C89-compliant since r186817.NAKAMURA Takumi2013-07-221-46/+83
| | | | | | warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions] llvm-svn: 186833
* c-index-test/CMakeLists.txt: Suggest -isystem to include libxml2 with ↵NAKAMURA Takumi2013-07-091-1/+1
| | | | | | include_directories(SYSTEM). llvm-svn: 185928
* c-index-test/Makefile: Use -isystem instead of -I on $(LIBXML2_INC) with ↵NAKAMURA Takumi2013-07-091-0/+8
| | | | | | | | | -Wdocumentation. -Wdocumentation won't seek -isystem. LIBXML2's headers in a certain distro might be incompatible to -Wdocumentation. FIXME: Could autoconf detect clang or availability of -isystem? llvm-svn: 185927
* [libclang] Introduce clang_Cursor_isObjCOptional, which returns whether the ↵Argyrios Kyrtzidis2013-07-051-1/+3
| | | | | | | | declaration was affected by "@optional" rdar://14348525. llvm-svn: 185722
* [Driver] Refactor clang driver to use LLVM's Option libraryReid Kleckner2013-06-141-1/+1
| | | | | | | | | | | | | | | | | | The big changes are: - Deleting Driver/(Arg|Opt)* - Rewriting includes to llvm/Option/ and re-sorting - 'using namespace llvm::opt' in clang::driver - Fixing the autoconf build by adding option everywhere As discussed in the review, this change includes using directives in header files. I'll make follow up changes to remove those in favor of name specifiers. Reviewers: espindola Differential Revision: http://llvm-reviews.chandlerc.com/D975 llvm-svn: 183989
* libclang: add a function to check whether a member function is pure virtualDmitri Gribenko2013-05-171-1/+2
| | | | | | Patch by Seth Fowler. llvm-svn: 182139
* [libclang] Introduce clang_Module_getASTFile function that returns the ↵Argyrios Kyrtzidis2013-04-261-3/+8
| | | | | | | | module file where a module object came from. rdar://13743084 llvm-svn: 180643
* [PCH/modules] Require the preprocessing record option to match the used PCH, ↵Argyrios Kyrtzidis2013-04-261-0/+1
| | | | | | | | | if modules are enabled. The preprocessing record becomes important when modules are enabled, since it is used to calculate the module cache hash. llvm-svn: 180635
* [libclang] Introduce clang_Cursor_isVariadic, which returns non-zero if the ↵Argyrios Kyrtzidis2013-04-181-0/+3
| | | | | | | | given cursor is a variadic function or method. rdar://13667150 llvm-svn: 179819
* [libclang] Introduce clang_Cursor_getObjCDeclQualifiers, to query for 'ObjC ↵Argyrios Kyrtzidis2013-04-181-0/+16
| | | | | | | | | | Qualifiers' written next to the return and parameter types in an ObjC method declarations. rdar://13676977 llvm-svn: 179816
* [libclang] Introduce clang_Cursor_getObjCPropertyAttributes to query the ↵Argyrios Kyrtzidis2013-04-181-0/+22
| | | | | | | | written attributes in a property declaration. rdar://13684512 llvm-svn: 179803
* [libclang] Have clang_getCXXAccessSpecifier() also return the access control ↵Argyrios Kyrtzidis2013-04-111-0/+17
| | | | | | | | of a C++ declaration within its parent scope. Suggested by Stefan Seefeld. llvm-svn: 179297
* [libclang] Expose record layout info via new libclang functions:Argyrios Kyrtzidis2013-04-111-0/+59
| | | | | | | | | | | clang_Type_getAlignOf clang_Type_getSizeOf clang_Type_getOffsetOf clang_Cursor_isBitField Patch by Loïc Jaquemet! llvm-svn: 179251
* [c-index-test] Enable 'display diagnostics' when using the -test-load ↵Argyrios Kyrtzidis2013-04-091-2/+2
| | | | | | functionality. llvm-svn: 179123
* [Modules] Resolve top-headers of modules lazily.Argyrios Kyrtzidis2013-03-131-2/+2
| | | | | | | | | | | This allows resolving top-header filenames of modules to FileEntries when we need them, not eagerly. Note that that this breaks ABI for libclang functions clang_Module_getTopLevelHeader / clang_Module_getNumTopLevelHeaders but this is fine because they are experimental and not widely used yet. llvm-svn: 176975
* [libclang] Fix a test and a warning on windows.Argyrios Kyrtzidis2013-03-111-1/+1
| | | | | | Patch by Guy Benyei! llvm-svn: 176806
* [libclang] Introduce clang_findIncludesInFile, that can be used to retrieve ↵Argyrios Kyrtzidis2013-03-081-1/+97
| | | | | | | | | all #import/#include directives in a specific file. It passes to the visitor, that the caller provides, CXCursor_InclusionDirective cursors for all the include directives in a particular file. llvm-svn: 176682
* Fix typos: [Dd]iagnosic -> [Dd]iagnosticStefanus Du Toit2013-03-011-8/+8
| | | | | | These all appear in comments or (ironically) diagnostics output. llvm-svn: 176383
* libclang: add clang_getTypeSpelling(CXType CT)Dmitri Gribenko2013-02-151-17/+21
| | | | | | | | | Adds a function clang_getTypeSpelling(CXType CT) that returns a CXString containing the underlying type. Patch by Ben Gertzfield. llvm-svn: 175299
* libclang: Update comment about USEDLIBS in c-*-test/Makefile.NAKAMURA Takumi2013-01-221-0/+3
| | | | | | "Note that 'USEDLIBS' must include all of the core clang libraries when -static is given to linker on cygming." llvm-svn: 173124
* Add bitreader to LINK_COMPONENTS in users of libclang, c-arcmt-test and ↵NAKAMURA Takumi2013-01-201-1/+1
| | | | | | | | c-index-test. They don't link cygclang.dll, but libclang.a on cygwin. llvm-svn: 172980
* c-index-test/Makefile: Add clangFormat to USEDLIBS for libclang-unavailable ↵NAKAMURA Takumi2012-12-201-0/+1
| | | | | | hosts. llvm-svn: 170693
* c-index-test/Makefile: Reformat.NAKAMURA Takumi2012-12-201-1/+2
| | | | llvm-svn: 170692
* [c-index-test] Fix warnings about unused results from chdir().Argyrios Kyrtzidis2012-12-171-3/+11
| | | | | | Patch from Edwin Vane! llvm-svn: 170366
* [CMake] Move libxml2 stuff from clang to llvm/cmake.NAKAMURA Takumi2012-12-141-2/+1
| | | | llvm-svn: 170225
* [libclang] Introduce a new indexing mode where we skip function bodiesArgyrios Kyrtzidis2012-12-061-1/+8
| | | | | | | | | | | | | | | that were already parsed in the same "indexing session". An indexing session is defined as using the same CXIndexAction object for multiple clang_indexSourceFile calls. Passing CXIndexOpt_SkipParsedBodiesInSession as an indexing option will enable the mode where we try to skip bodies that were already parsed in another translation unit. If a function's body was skipped, the "flags" field in the CXIdxDeclInfo structure will have "CXIdxDeclFlag_Skipped" bit was set. llvm-svn: 169539
* [c-index-test] Introduce '-index-compile-db' which accepts a compilation ↵Argyrios Kyrtzidis2012-12-051-66/+197
| | | | | | | | database file and does an '-index-file' for all compile commands in the database. llvm-svn: 169430
* c-index-test.c: Make C89-compliant.NAKAMURA Takumi2012-12-041-1/+2
| | | | llvm-svn: 169277
* libclang: Add a function to libclang for retrieving the bit width valueDmitri Gribenko2012-12-041-0/+21
| | | | | | Patch by Jyun-Yan You. llvm-svn: 169276
* Force C89 for c-index-test.cDmitri Gribenko2012-11-071-0/+7
| | | | | | | | | | | MSVC supports only C89, so it is important to keep c-index-test.c buildable with C89. However, Clang defaults to C99, so while building Clang with Clang one can introduce C99 constructs into c-index-test.c without noticing. Thanks to Nakamura Takumi for helping with MSVC bits. llvm-svn: 167561
* [c-index-test] Do install c-index-test because it's not just for tests,Argyrios Kyrtzidis2012-11-061-3/+0
| | | | | | it's also setup as 'INTERNAL_TOOL'. llvm-svn: 167432
* [libclang] Introduce clang_Cursor_getReceiverType which returns the CXType forArgyrios Kyrtzidis2012-11-011-0/+6
| | | | | | | | the receiver of an ObjC message expression. rdar://12578643 llvm-svn: 167201
* c-index-test.c: Split a format string. [-Woverlength-strings]NAKAMURA Takumi2012-10-241-1/+2
| | | | | FIXME: They are still long strings without formatter in printf(3)! llvm-svn: 166636
* [libclang] Add "-index-file-full" option that recursively indexes any importedArgyrios Kyrtzidis2012-10-241-2/+74
| | | | | | modules/PCH files. llvm-svn: 166605
* [libclang] Invoke a ppIncludedFile callback when indexing implicit module ↵Argyrios Kyrtzidis2012-10-181-1/+2
| | | | | | imports. llvm-svn: 166161
* c-index-test.c: /* Use C style comment. */NAKAMURA Takumi2012-10-121-1/+1
| | | | llvm-svn: 165797
* [libclang] Make sure the index_data.main_filename field is initializedArgyrios Kyrtzidis2012-10-111-0/+2
| | | | | | | in c-index-test. index_enteredMainFile is not invoked when indexing a module file. llvm-svn: 165735
* [libclang] Add tests for indexing modules and PCHs using modules.Argyrios Kyrtzidis2012-10-111-1/+1
| | | | llvm-svn: 165732
* [libclang] Improve AST serialization done by ASTUnit::Save().Argyrios Kyrtzidis2012-10-111-1/+5
| | | | | | | | | The ASTUnit needs to initialize an ASTWriter at the beginning of parsing to fully handle serialization of a translation unit that imports modules. Do this by introducing an option to enable it, which corresponds to CXTranslationUnit_ForSerialization on the C API side. llvm-svn: 165717
* [libclang] Now that we have a CXModule object, pass it to theArgyrios Kyrtzidis2012-10-051-5/+8
| | | | | | importedASTFile indexing callback. llvm-svn: 165281
* [libclang] Introduce new C functions that provide information about modules:Argyrios Kyrtzidis2012-10-051-0/+19
| | | | | | | | | | | clang_Cursor_getModule clang_Module_getParent clang_Module_getName clang_Module_getFullName clang_Module_getNumTopLevelHeaders clang_Module_getTopLevelHeader llvm-svn: 165280
* [libclang] Simplify indexing of module imports by handling implicitArgyrios Kyrtzidis2012-10-031-4/+3
| | | | | | imports via ImportDecls. llvm-svn: 165160
* [libclang] Even though we disable the preprocessing record during indexing,Argyrios Kyrtzidis2012-10-021-1/+2
| | | | | | make sure that it gets enabled for when a module needs to be created. llvm-svn: 165021
OpenPOWER on IntegriCloud