summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang
Commit message (Collapse)AuthorAgeFilesLines
...
* [libclang] Move implementation of functions for manipulation ↵Ted Kremenek2011-10-313-226/+271
| | | | | | CXSourceLocations and CXSourceRanges into a separate file. llvm-svn: 143370
* [libclang] Add CXDiagnosticImpl to represent a super class for the ↵Ted Kremenek2011-10-314-93/+238
| | | | | | | | implementation backing a CXDiagnostic. This allows CXStoredDiagnostic to be just one possible implementation of a CXDiagnostic. llvm-svn: 143368
* [libclang] Rename VisitIncludedPreprocessingEntries -> VisitIncludedEntitiesArgyrios Kyrtzidis2011-10-311-10/+10
| | | | llvm-svn: 143337
* Use LIBCLANG_NOTHREADS instead of CINDEXTEST_NOTHREADS inside libclang,Argyrios Kyrtzidis2011-10-292-2/+2
| | | | | | so the c-index-test one can be enabled without affecting libclang. llvm-svn: 143288
* [libclang] Check for environment variable CINDEXTEST_NOTHREADS in ↵Argyrios Kyrtzidis2011-10-281-0/+6
| | | | | | clang_reparseTranslationUnit. llvm-svn: 143242
* Use const_cast to make it obvious that it's just removing constness (and ↵Benjamin Kramer2011-10-282-4/+6
| | | | | | silence warnings). llvm-svn: 143193
* Implement support for dependent Microsoft __if_exists/__if_not_existsDouglas Gregor2011-10-252-1/+17
| | | | | | | | | | statements. As noted in the documentation for the AST node, the semantics of __if_exists/__if_not_exists are somewhat different from the way Visual C++ implements them, because our parsed-template representation can't accommodate VC++ semantics without serious contortions. Hopefully this implementation is "good enough". llvm-svn: 142901
* [PCH] When visiting preprocessed entities, make it possible to avoid ↵Argyrios Kyrtzidis2011-10-251-14/+82
| | | | | | | | | | | | | | | deserializing preprocessed entities that are #included in the range that we are interested. This is useful when we are interested in preprocessed entities of a specific file, e.g when we are annotating tokens. There is also an optimization where we cache the last result of PreprocessingRecord::getPreprocessedEntitiesInRange and we re-use it if there is a call with the same range as before. rdar://10313365 llvm-svn: 142887
* More metaprogramming with builtin types.John McCall2011-10-182-31/+10
| | | | llvm-svn: 142433
* [libclang] Make sure we do a correct invalid check in ↵Argyrios Kyrtzidis2011-10-181-1/+1
| | | | | | clang_getExpansionLocation. llvm-svn: 142430
* Macro metaprogramming for builtin types.John McCall2011-10-181-1/+1
| | | | llvm-svn: 142420
* [libclang] Since an objc extension semantically continues the interface of ↵Argyrios Kyrtzidis2011-10-181-4/+2
| | | | | | | | | the class don't use unique USRs for them, otherwise we fail to associate @implementation methods with the methods in extensions. llvm-svn: 142361
* [libclang] Index implicit property references.Argyrios Kyrtzidis2011-10-183-3/+21
| | | | llvm-svn: 142355
* [libclang] Index method references.Argyrios Kyrtzidis2011-10-181-0/+6
| | | | llvm-svn: 142353
* Silence a -Wc++0x-narrowing warningMatt Beaumont-Gay2011-10-171-1/+1
| | | | llvm-svn: 142292
* [libclang] Introduce a new high level API for indexing clients that assumesArgyrios Kyrtzidis2011-10-1713-13/+1807
| | | | | | | | | 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
* Add a new placeholder type to represent "unbridged"John McCall2011-10-172-0/+2
| | | | | | | | casts in ARC. No semantic analysis yet. llvm-svn: 142208
* Provide half floating point support as a storage only type.Anton Korobeynikov2011-10-142-0/+3
| | | | | | Lack of half FP was a regression compared to llvm-gcc. llvm-svn: 142016
* Change operator<< for raw_ostream and NamedDecl to take a reference instead ↵Benjamin Kramer2011-10-141-1/+1
| | | | | | | | of a pointer. Passing a pointer was a bad idea as it collides with the overload for void*. llvm-svn: 141971
* Added clang_getCompletionAnnotation and clang_getCompletionNumAnnotations toErik Verbruggen2011-10-142-0/+16
| | | | | | retrieve annotations from completion string. llvm-svn: 141953
* Allow for annotate attributes after access specifiers. When suchErik Verbruggen2011-10-132-0/+8
| | | | | | attributes are found, propagate them to subsequent declarations. llvm-svn: 141861
* [libclang] Allow using getDeclCursorUSR function with a Decl* and not a cursor.Argyrios Kyrtzidis2011-10-122-30/+41
| | | | llvm-svn: 141770
* [libclang] Make MakeCXTranslationUnit usable outside CIndex.cpp.Argyrios Kyrtzidis2011-10-122-1/+11
| | | | llvm-svn: 141769
* Initial implementation of __atomic_* (everything except __atomic_is_lock_free).Eli Friedman2011-10-111-0/+1
| | | | llvm-svn: 141632
* Make sure we initialize the "extra" data within the libclang codeDouglas Gregor2011-10-101-1/+6
| | | | | | | | | completion context, in case we end up having no code-completion callback. Individual instances of this problem are always bugs that need to be fixed, but it's better to make sure we have initialized data here. llvm-svn: 141598
* [libclang] Do ConcurrencyCheck for clang_getLocation as well.Argyrios Kyrtzidis2011-10-101-0/+1
| | | | llvm-svn: 141583
* Rename TagDecl::isDefinition -> isCompleteDefinitionJohn McCall2011-10-071-1/+1
| | | | | | | for better self-documenting code, since the semantics are subtly different from getDefinition(). llvm-svn: 141355
* Support for C1x _Atomic specifier (see testcase). This is primarily being ↵Eli Friedman2011-10-061-0/+4
| | | | | | | | committed at the moment to help support C++0x <atomic>, but it should be a solid base for implementing the full specification of C1x _Atomic. Thanks to Jeffrey Yasskin for the thorough review! llvm-svn: 141330
* [libclang] Introduce clang_findReferencesInFile which accepts a cursor, a file,Argyrios Kyrtzidis2011-10-067-53/+561
| | | | | | | | and a callback and finds all identifier references of the cursor in the file. rdar://7948304 llvm-svn: 141277
* [libclang] Move the bulk of clang_getOverriddenCursors intoArgyrios Kyrtzidis2011-10-063-95/+95
| | | | | | | a cxcursor::getOverriddenCursors C++ function, because SmallVectors are groovier that malloc'ing buffers. llvm-svn: 141276
* Expose more statement, expression, and declaration kinds in libclang,Douglas Gregor2011-10-052-97/+427
| | | | | | from Manuel Holtgrewe! llvm-svn: 141200
* Improve location fidelity of objc decls.Argyrios Kyrtzidis2011-10-041-2/+0
| | | | | | | | -Add the location of the class name to all objc container decls, not just ObjCInterfaceDecl. -Make objc decls consistent with the rest of the NamedDecls and have getLocation() point to the class name, not the location of '@'. llvm-svn: 141061
* [libclang] Introduce CXCursor_CXXAccessSpecifier for C++'s ↵Argyrios Kyrtzidis2011-09-302-3/+10
| | | | | | | | public:/private:/protected: specifiers. Patch by Paolo Capriotti! llvm-svn: 140864
* [libclang] Introduce clang_Range_isNull.Argyrios Kyrtzidis2011-09-282-0/+6
| | | | llvm-svn: 140706
* When 'bool' is not a built-in type but is defined as a macro, printDouglas Gregor2011-09-271-1/+1
| | | | | | | 'bool' rather than '_Bool' within types, to make things a bit more readable. Fixes <rdar://problem/10063263>. llvm-svn: 140650
* [libclang] Expose array size and element type, patch by Vinay Sajip!Argyrios Kyrtzidis2011-09-272-0/+38
| | | | llvm-svn: 140614
* MSVC is stuck in the 80s.Argyrios Kyrtzidis2011-09-272-0/+9
| | | | llvm-svn: 140597
* [libclang] Refactor the important stuff in clang_getCursor into a ↵Argyrios Kyrtzidis2011-09-272-23/+34
| | | | | | cxcursor::getCursor(CXTranslationUnit, SourceLocation) function. llvm-svn: 140588
* [libclang] Introduce clang_Cursor_isNull and clang_Cursor_getTranslationUnit ↵Argyrios Kyrtzidis2011-09-272-0/+9
| | | | | | functions. llvm-svn: 140587
* [libclang] Report implicit objc methods for properties when indexing.Argyrios Kyrtzidis2011-09-261-1/+10
| | | | | | Related to rdar://10087069. llvm-svn: 140551
* Don't map a file:line:col triplet that is inside the preamble range toArgyrios Kyrtzidis2011-09-262-86/+114
| | | | | | | | | | | | | | 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
* Rename Diagnostic to DiagnosticsEngine as per issue 5397David Blaikie2011-09-253-11/+11
| | | | llvm-svn: 140478
* Removing a bunch of dead returns/breaks after llvm_unreachables.David Blaikie2011-09-231-1/+1
| | | | llvm-svn: 140407
* Switch assert(0/false) llvm_unreachable.David Blaikie2011-09-234-4/+4
| | | | llvm-svn: 140367
* Rename ExplicitTemplateArgumentList -> ASTTemplateArgumentListInfo, no ↵Argyrios Kyrtzidis2011-09-221-6/+6
| | | | | | functionality change. llvm-svn: 140330
* [libclang] When pointing at a macro expansion inside a macro argument,Argyrios Kyrtzidis2011-09-201-6/+0
| | | | | | return a cursor for the inner macro. llvm-svn: 140207
* Sort exports list.Ted Kremenek2011-09-201-7/+7
| | | | llvm-svn: 140171
* In libclang, when visiting preprocessed entities in a source range, useArgyrios Kyrtzidis2011-09-191-56/+9
| | | | | | | | | | PreprocessingRecord's getPreprocessedEntitiesInRange. Also remove all the stuff that were added in ASTUnit that are unnecessary now that we do a binary search for preprocessed entities and deserialize only what is necessary. llvm-svn: 140063
* [libclang] When getting a source location from a file:line:col tripletArgyrios Kyrtzidis2011-09-191-10/+3
| | | | | | | check whether the requested location points inside the precompiled preamble, in which case the returned source location will be a "loaded" one. llvm-svn: 140060
* Rename SourceLocation::getFileLocWithOffset -> getLocWithOffset.Argyrios Kyrtzidis2011-09-191-2/+2
| | | | | | It already works (and is useful with) macro locs as well. llvm-svn: 140057
OpenPOWER on IntegriCloud