summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CIndexHigh.cpp
Commit message (Collapse)AuthorAgeFilesLines
* libclang: factor out the frequent pattern static_cast<ASTUnit *>(TU->TUData)Dmitri Gribenko2013-01-261-4/+3
| | | | | | into a getter cxtu::getASTUnit(TU) llvm-svn: 173585
* libclang: change return type of getCursorDecl() to 'const Decl *'Dmitri Gribenko2013-01-231-13/+14
| | | | llvm-svn: 173278
* Re-sort all the headers. Lots of regressions have crept in here.Chandler Carruth2013-01-191-1/+1
| | | | | | | | | | Manually fix the order of UnwrappedLineParser.cpp as that one didn't have its associated header as the first header. This also uncovered a subtle inclusion order dependency as CLog.h didn't include LLVM.h to pick up using declarations it relied upon. llvm-svn: 172892
* Replace more usages of __func__ with LLVM_FUNCTION_NAMEDmitri Gribenko2013-01-111-1/+2
| | | | llvm-svn: 172161
* [libclang] Enhance logging capabilities of libclang.Argyrios Kyrtzidis2013-01-101-12/+13
| | | | | | | | | -provide a "raw_ostream'ish" class to make it convenient to output logging info. -use macros to automate a bit the logging functionality inside libclang functions -when logging, print a stack trace if "LIBCLANG_LOGGING=2" environment is set. -add logging to more functions. llvm-svn: 172089
* [libclang] When getting the cursor for an identifier inside a macro ↵Argyrios Kyrtzidis2013-01-071-2/+2
| | | | | | | | | | | | | | | definition, check if this was ever a macro name and return a specific CXCursor_MacroExpansion cursor in such a case, instead of the generic CXCursor_MacroDefinition. Checking for macro name makes sure the identifier is not part of the identifier list in a function macro. While, in general, resolving identifiers in macro definitions to other macros may not be completely accurate, it greatly improves functionality such as give-me-the-definition-of-this, which was not working at all inside macro definitions. llvm-svn: 171773
* Sort #include lines for tools/...Chandler Carruth2012-12-041-2/+1
| | | | | | Completely automated with sort_includes.py llvm-svn: 169240
* [libclang] Add defensive checks to make sure we don't try to dereferenceArgyrios Kyrtzidis2011-12-101-0/+5
| | | | | | a null pointer after getCursorDecl() is called. rdar://10298421. llvm-svn: 146312
* [libclang] Make sure we don't try to handle a CXCursor_NoDeclFoundArgyrios Kyrtzidis2011-12-091-0/+5
| | | | | | passed to clang_findReferencesInFile. llvm-svn: 146211
* [libclang] When doing clang_findReferencesInFile, make sure we don't crashArgyrios Kyrtzidis2011-12-081-3/+15
| | | | | | | | if we come up against a null Decl. No test case unfortunately. rdar://10457799. llvm-svn: 146127
* [libclang] Do the ConcurrencyCheck at the beginning of ↵Argyrios Kyrtzidis2011-11-291-3/+6
| | | | | | clang_findReferencesInFile. llvm-svn: 145455
* [libclang] Make clang_findReferencesInFile also work on macros (find all ↵Argyrios Kyrtzidis2011-11-291-4/+108
| | | | | | | | | | | | | expansions/definition of a macro in a file). As a bonus, also make searching for declarations more efficient by ignoring preprocessing entities when we know that we are looking for a declaration. Fixes rdar://10427411. llvm-svn: 145369
* [libclang] Make clang_findReferencesInFile use "file-targeted" ↵Argyrios Kyrtzidis2011-11-161-30/+9
| | | | | | | | deserialization and avoid unnecessary deserializations. llvm-svn: 144791
* [libclang] Introduce clang_findReferencesInFile which accepts a cursor, a file,Argyrios Kyrtzidis2011-10-061-0/+315
and a callback and finds all identifier references of the cursor in the file. rdar://7948304 llvm-svn: 141277
OpenPOWER on IntegriCloud