Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Don't include FixIts with a null replacement range. Fixes ↵ | Ted Kremenek | 2012-03-20 | 1 | -0/+2 | |
| | | | | | | <rdar://problem/11040133>. llvm-svn: 153122 | |||||
* | [c-index-test] Make it C90 compliant. | Argyrios Kyrtzidis | 2012-03-15 | 1 | -1/+3 | |
| | | | | llvm-svn: 152823 | |||||
* | [libclang] A couple of enhancements to c-index-test. | Argyrios Kyrtzidis | 2012-03-15 | 1 | -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 | |||||
* | [libclang] When indexing an objc property, also provide information about | Argyrios Kyrtzidis | 2012-02-28 | 1 | -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 Kyrtzidis | 2012-02-25 | 1 | -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 Kremenek | 2012-02-14 | 1 | -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 indicate | Argyrios Kyrtzidis | 2012-01-14 | 1 | -8/+13 | |
| | | | | | | that one wants indexing callbacks for function-local symbols as well. llvm-svn: 148160 | |||||
* | [libclang] Indexing API: provide an attribute list inside CXIdxEntityInfo | Argyrios Kyrtzidis | 2011-12-15 | 1 | -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 suppress | Argyrios Kyrtzidis | 2011-12-13 | 1 | -1/+5 | |
| | | | | | | | | @class forward references. rdar://10568080&10568103&10568119 llvm-svn: 146496 | |||||
* | [libclang] Indexing API: provide both the semantic and the lexical container. | Argyrios Kyrtzidis | 2011-12-07 | 1 | -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 Kyrtzidis | 2011-12-07 | 1 | -6/+18 | |
| | | | | llvm-svn: 146068 | |||||
* | [libclang] Introduce CXIdxEntityLanguage that indicates the language | Argyrios Kyrtzidis | 2011-12-07 | 1 | -1/+12 | |
| | | | | | | of an indexed entity. llvm-svn: 146067 | |||||
* | [libclang] When indexing a field in a C++ class, return an entity | Argyrios Kyrtzidis | 2011-12-05 | 1 | -0/+1 | |
| | | | | | | of kind CXIdxEntity_CXXInstanceVariable. rdar://10522503. llvm-svn: 145859 | |||||
* | [libclang] Create a diagnostic set to pass at the end of indexing. | Argyrios Kyrtzidis | 2011-12-01 | 1 | -9/+15 | |
| | | | | llvm-svn: 145557 | |||||
* | [libclang] Indexing API: If the client requested to get a CXTranslationUnit ↵ | Argyrios Kyrtzidis | 2011-11-28 | 1 | -1/+10 | |
| | | | | | | | | after indexing, honor all the TU options. llvm-svn: 145229 | |||||
* | [libclang] Indexing API: Support C++ symbols. | Argyrios Kyrtzidis | 2011-11-22 | 1 | -15/+58 | |
| | | | | llvm-svn: 145058 | |||||
* | c-index-test.c: Fix syntax according to C. | NAKAMURA Takumi | 2011-11-18 | 1 | -1/+1 | |
| | | | | llvm-svn: 144947 | |||||
* | [libclang] Indexing API: | Argyrios Kyrtzidis | 2011-11-18 | 1 | -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 Kyrtzidis | 2011-11-16 | 1 | -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 Kyrtzidis | 2011-11-16 | 1 | -2/+9 | |
| | | | | | | | | report one reference per file. llvm-svn: 144763 | |||||
* | [libclang] Introduce a new function to apply the indexing callbacks on an ↵ | Argyrios Kyrtzidis | 2011-11-15 | 1 | -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 Kyrtzidis | 2011-11-14 | 1 | -25/+24 | |
| | | | | | | for it. llvm-svn: 144577 | |||||
* | [libclang] Move the check for errors in c-index-test before the TU gets ↵ | Argyrios Kyrtzidis | 2011-11-13 | 1 | -3/+5 | |
| | | | | | | disposed. llvm-svn: 144514 | |||||
* | [libclang] for c-index-test, check for CINDEXTEST_FAILONERROR when doing ↵ | Argyrios Kyrtzidis | 2011-11-13 | 1 | -0/+12 | |
| | | | | | | -test-load-source-reparse llvm-svn: 144509 | |||||
* | [libclang] Further simplify the indexing API. | Argyrios Kyrtzidis | 2011-11-12 | 1 | -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 Kramer | 2011-11-11 | 1 | -0/+1 | |
| | | | | llvm-svn: 144386 | |||||
* | [serialized diagnostics]: add test cases for serialized diagnostics, ↵ | Ted Kremenek | 2011-11-11 | 1 | -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 Kyrtzidis | 2011-11-11 | 1 | -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 Takumi | 2011-11-10 | 1 | -1/+1 | |
| | | | | llvm-svn: 144274 | |||||
* | c-index-test.c: Fix syntax. It is C source. | NAKAMURA Takumi | 2011-11-10 | 1 | -2/+3 | |
| | | | | llvm-svn: 144272 | |||||
* | serialized diagnostics: implement full deserialization of clang diagnostics ↵ | Ted Kremenek | 2011-11-10 | 1 | -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 Kyrtzidis | 2011-11-05 | 1 | -29/+39 | |
| | | | | llvm-svn: 143779 | |||||
* | [libclang] Add missing return in clang_getExpansionLocation that resulted in ↵ | Argyrios Kyrtzidis | 2011-11-03 | 1 | -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 if | Argyrios Kyrtzidis | 2011-11-03 | 1 | -0/+2 | |
| | | | | | | the CINDEXTEST_COMPLETION_NO_CACHING environment variable is present. llvm-svn: 143604 | |||||
* | [libclang] Introduce use of CINDEXTEST_FAILONERROR environment variable ↵ | Argyrios Kyrtzidis | 2011-10-28 | 1 | -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 Kyrtzidis | 2011-10-20 | 1 | -3/+3 | |
| | | | | llvm-svn: 142590 | |||||
* | [libclang] Index implicit property references. | Argyrios Kyrtzidis | 2011-10-18 | 1 | -0/+5 | |
| | | | | llvm-svn: 142355 | |||||
* | [libclang] When printing the diagnostic print it with a new line. | Argyrios Kyrtzidis | 2011-10-18 | 1 | -1/+1 | |
| | | | | llvm-svn: 142354 | |||||
* | Try fixing MSVC compiler errors. | Argyrios Kyrtzidis | 2011-10-17 | 1 | -3/+9 | |
| | | | | llvm-svn: 142289 | |||||
* | [libclang] Introduce a new high level API for indexing clients that assumes | Argyrios Kyrtzidis | 2011-10-17 | 1 | -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 to | Erik Verbruggen | 2011-10-14 | 1 | -0/+17 | |
| | | | | | | retrieve annotations from completion string. llvm-svn: 141953 | |||||
* | Fixed GCC (C90) and Clang warnings. | Erik Verbruggen | 2011-10-06 | 1 | -6/+3 | |
| | | | | llvm-svn: 141281 | |||||
* | Added CXAvailability_NotAccessible to indicate that a declaration is ↵ | Erik Verbruggen | 2011-10-06 | 1 | -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 Kyrtzidis | 2011-10-06 | 1 | -9/+108 | |
| | | | | | | | | and a callback and finds all identifier references of the cursor in the file. rdar://7948304 llvm-svn: 141277 | |||||
* | Don't map a file:line:col triplet that is inside the preamble range to | Argyrios Kyrtzidis | 2011-09-26 | 1 | -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 Kyrtzidis | 2011-09-12 | 1 | -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-Gay | 2011-08-29 | 1 | -1/+1 | |
| | | | | llvm-svn: 138736 | |||||
* | Add a new libclang API to return a CXCompletionString for an arbitrary | Douglas Gregor | 2011-08-04 | 1 | -0/+6 | |
| | | | | | | cursor, from Connor Wakamo! Addresses <rdar://problem/9087798>. llvm-svn: 136911 | |||||
* | Add new libclang API, clang_codeCompleteGetObjCSelector(), which | Douglas Gregor | 2011-07-26 | 1 | -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 of | Douglas Gregor | 2011-07-25 | 1 | -12/+39 | |
| | | | | | | a cursor reference, from Erik Verbruggen! llvm-svn: 135920 |