summaryrefslogtreecommitdiffstats
path: root/clang/tools/CIndex/CXSourceLocation.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename 'CIndex' to 'libclang', since it has basically become our stable publicDaniel Dunbar2010-04-301-75/+0
| | | | | | (C) API, and will likely grow further in this direction in the future. llvm-svn: 102779
* Prune includes.Benjamin Kramer2010-04-121-3/+2
| | | | llvm-svn: 101059
* Rename translateSourceRange(CXSourceRange) translateCXSourceRange, instead ofDaniel Dunbar2010-02-141-1/+1
| | | | | | having overloaded functions with inverse semantics. llvm-svn: 96155
* CIndex: Kill off CXSourceLocationPtr, and AtEnd arguments.Daniel Dunbar2010-02-141-10/+5
| | | | llvm-svn: 96145
* CIndex: Stop hiding magic end bit in CXSourceRange locations where clients can'tDaniel Dunbar2010-02-141-9/+9
| | | | | | | | | see it. Instead, translate the locations up-front when we create a CXSourceRange. - This is part of a move to make CXSourceRange a pure half-open range, which is a more natural API for clients to deal with. More cleanups to follow. llvm-svn: 96144
* Implement a diagnostics callback for the C interface to Clang, so thatDouglas Gregor2010-01-281-6/+29
| | | | | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | | | | range. The token-annotation function does nothing, yet. llvm-svn: 94551
* Pull functions that translate from CXSourceLocation to SourceLocation (and ↵Ted Kremenek2010-01-251-0/+58
back) to a separate header file. llvm-svn: 94462
OpenPOWER on IntegriCloud