summaryrefslogtreecommitdiffstats
path: root/clang/tools/CIndex/CIndexer.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename 'CIndex' to 'libclang', since it has basically become our stable publicDaniel Dunbar2010-04-301-78/+0
| | | | | | (C) API, and will likely grow further in this direction in the future. llvm-svn: 102779
* Prune includes.Benjamin Kramer2010-04-121-4/+0
| | | | llvm-svn: 101059
* Revert 98439. There is a bad race condition in sys::Path::makeUnique on win32.Benjamin Kramer2010-03-131-3/+0
| | | | llvm-svn: 98452
* Make getTemporaryPath a static member of CIndexer and use it to replace ↵Benjamin Kramer2010-03-131-0/+3
| | | | | | | | tmpnam calls. This fixes linker warnings on linux. llvm-svn: 98439
* Re-apply my diagnostics-capture patch for CIndex, with some tweaks toDouglas Gregor2010-02-181-2/+10
| | | | | | try to address the msvc failures. llvm-svn: 96624
* Revert my CIndex diagnostic changes (r96603, 96606, 96607), which wereDouglas Gregor2010-02-181-10/+2
| | | | | | breaking the msvc9 builder for unknown reasons. llvm-svn: 96618
* Resurrect the displayDiagnostics parameter to clang_createIndex(), andDouglas Gregor2010-02-181-2/+10
| | | | | | | display captured diagnostics when we can't return an invalid CXTranslationUnit. llvm-svn: 96606
* Move createCXString() functions out of CIndexer and into the clang::cxstring ↵Ted Kremenek2010-02-171-4/+7
| | | | | | | | | | | | namespace. We can much more succinctly refer to these functions this way. Also change the default behavior of createCXString(StringRef&) to duplicate the string. This is almost always what we want. The other case is where we pass a constant c-string, which uses the other version of createCXString(). llvm-svn: 96423
* Switch the remaining diagnostic printing in CIndex over to theDouglas Gregor2010-01-281-9/+1
| | | | | | | | | diagnostic callback mechanism, so all diagnostics now go through that callback. Also, eliminate the displayDiagnostics flag to clang_createIndex(), since it is no longer necessary: the client determines whether to display diagnostics or not. llvm-svn: 94714
* Implement a diagnostics callback for the C interface to Clang, so thatDouglas Gregor2010-01-281-21/+3
| | | | | | | | | | | | | | | | | | | | | | | | | clients can format diagnostics as they wish rather than having to parse standard error. All of the important parts of the front end's diagnostics are exposed: text, severity, location, source ranges, and fix-its. The diagnostics callback is now available with clang_createTranslationUnitFromSource() and clang_createTranslationUnit(). As part of this change, CXSourceLocation and CXSourceRange got one pointer larger, since we need to hold on to the SourceManager and LangOptions structures in the source location. This is the minimum amount of information needed for the functions that operate on source locations and ranges (as implemented now). Previously we held on to the ASTContext, but the diagnostics callback can end up with source locations when there is no ASTContext (or preprocessor). Still to do: - Code completion needs to support the diagnostics callback, once we have the ability to (de-)serialize diagnostics. - Eliminate the "displayDiagnostics" argument to createIndex; we'll always pass diagnostics to the callback and let it deal with display. llvm-svn: 94709
* Introduce a CIndex API for lexing the raw tokens within a given sourceDouglas Gregor2010-01-261-0/+3
| | | | | | range. The token-annotation function does nothing, yet. llvm-svn: 94551
* Extend clang_createTranslationUnitFromSourceFile() to support creatingDouglas Gregor2010-01-231-0/+14
| | | | | | translation units that include unsaved files. llvm-svn: 94258
* Eliminate CIndex's dependency on the Clang Index library, since weDouglas Gregor2010-01-221-12/+4
| | | | | | weren't actually using any of its facilities. llvm-svn: 94210
* Make createCXString() a static member function of class CIndex.Ted Kremenek2010-01-121-0/+2
| | | | llvm-svn: 93212
* Split code in CIndex.cpp into multiple source files, and remove some ↵Ted Kremenek2010-01-051-0/+86
unnecessary #includes. llvm-svn: 92756
OpenPOWER on IntegriCloud