| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
CXDiagnostics, and we shouldn't
have an API around that cannot be implemented correctly yet.
llvm-svn: 104849
|
|
|
|
| |
llvm-svn: 104751
|
|
|
|
|
|
| |
SourceManager::isFromMainFile()).
llvm-svn: 104208
|
|
|
|
|
|
| |
in the debugger.
llvm-svn: 104171
|
|
|
|
|
|
| |
provided by clang_isCursorDefinition().
llvm-svn: 104138
|
|
|
|
| |
llvm-svn: 104135
|
|
|
|
|
|
|
|
| |
distinguish between
forward declarations and definitions of structs/classes/enums.
llvm-svn: 104075
|
|
|
|
|
|
| |
is declared static.
llvm-svn: 103963
|
|
|
|
|
|
|
|
|
| |
exposes details of
Clang's representation of the C type system to clients. It is nowhere near complete, and will
be expanded on demand.
llvm-svn: 103809
|
|
|
|
| |
llvm-svn: 103224
|
|
|
|
| |
llvm-svn: 103211
|
|
|
|
|
|
| |
CXLanguageKind.
llvm-svn: 101287
|
|
|
|
| |
llvm-svn: 101193
|
|
|
|
|
|
| |
(e.g., distinguish between C and Objective-C language features). Currently this only returns results for declarations.
llvm-svn: 101070
|
|
|
|
|
|
| |
arguments.
llvm-svn: 101054
|
|
|
|
| |
llvm-svn: 100989
|
|
|
|
| |
llvm-svn: 98981
|
|
|
|
|
|
| |
generated by clang_annotateTokens().
llvm-svn: 98837
|
|
|
|
|
|
|
| |
token sequence to detect macro instantiations (that produce at least
token). WIP.
llvm-svn: 98826
|
|
|
|
|
|
|
|
| |
directives while annotating tokens in CIndex. This functionality
should probably be factored out of this routine, but we're not there
yet.
llvm-svn: 98786
|
|
|
|
|
|
| |
(there was a missing 'C').
llvm-svn: 98554
|
|
|
|
|
|
| |
instead of AST elements.
llvm-svn: 98421
|
|
|
|
|
|
| |
unexposed AST elements.
llvm-svn: 97985
|
|
|
|
|
|
|
| |
underlying linkage for the entity referred to by a
CXCursor.
llvm-svn: 97646
|
|
|
|
|
|
|
|
|
|
| |
copy the source buffers provided rather than referencing them
directly, so that the caller can free those buffers immediately after
calling clang_createTranslationUnitFromSourceFile(). Otherwise, we
risk hitting those buffers later (when building source ranges, forming
diagnostics, etc.).
llvm-svn: 97296
|
|
|
|
|
|
|
| |
the diagnostics to a FILE*, return a CXString containing the formatted
diagnostic.
llvm-svn: 96823
|
|
|
|
| |
llvm-svn: 96685
|
|
|
|
|
|
| |
try to address the msvc failures.
llvm-svn: 96624
|
|
|
|
|
|
| |
breaking the msvc9 builder for unknown reasons.
llvm-svn: 96618
|
|
|
|
|
|
|
| |
CIndex, so that c-index-test to use it to call
lvm::sys::PrintStackTraceOnErrorSignal().
llvm-svn: 96607
|
|
|
|
|
|
|
| |
display captured diagnostics when we can't return an invalid
CXTranslationUnit.
llvm-svn: 96606
|
|
|
|
|
|
|
|
|
|
|
| |
knobs to control formatting. Eventually, I'd like to merge the
implementation of this code with the TextDiagnosticPrinter, so that
it's easy for CIndex clients to produce beautiful diagnostics like the
clang compiler does.
Use this new function to display diagnostics within c-index-test.
llvm-svn: 96603
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
we attach diagnostics to translation units and code-completion
results, so they can be queried at any time.
To facilitate this, the new StoredDiagnostic class stores a diagnostic
in a serializable/deserializable form, and ASTUnit knows how to
capture diagnostics in this stored form. CIndex's CXDiagnostic is a
thin wrapper around StoredDiagnostic, providing a C interface to
stored or de-serialized diagnostics.
I've XFAIL'd one test case temporarily, because currently we end up
storing diagnostics in an ASTUnit that's never returned to the user
(because it contains errors). I'll introduce a temporary fix for this
soon; the real fix will be to allow us to return and query invalid ASTs.
llvm-svn: 96592
|
|
|
|
|
|
| |
IBActionAttr and IBOutletAttr respectively.
llvm-svn: 96563
|
|
|
|
| |
llvm-svn: 96468
|
|
|
|
| |
llvm-svn: 96439
|
|
|
|
|
|
| |
instead of a 'const char *'.
llvm-svn: 96425
|
|
|
|
| |
llvm-svn: 96424
|
|
|
|
|
|
| |
- Doug, please review.
llvm-svn: 96162
|
|
|
|
|
|
|
|
|
|
|
|
| |
std::string that is reconstructed
every time they are called:
getClangRevision()
getClangFullRepositoryVersion()
getClangFullVersion()
llvm-svn: 96033
|
|
|
|
| |
llvm-svn: 95602
|
|
|
|
|
|
| |
units have been destroyed
llvm-svn: 95598
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
walk the set of files included in a translation unit via the C API.
llvm-svn: 94575
|
|
|
|
|
|
| |
offset parameter to clang_getInstantiationLocation().
llvm-svn: 94573
|
|
|
|
|
|
|
| |
of the tokens within a raw token stream. This does not even attempt to
handle macros yet.
llvm-svn: 94561
|
|
|
|
|
|
| |
range. The token-annotation function does nothing, yet.
llvm-svn: 94551
|
|
|
|
|
|
| |
source location in file + offset.
llvm-svn: 94497
|
|
|
|
| |
llvm-svn: 94393
|