| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
(C) API, and will likely grow further in this direction in the future.
llvm-svn: 102779
|
|
|
|
|
|
| |
generated by clang_annotateTokens().
llvm-svn: 98837
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the macro definitions and macro instantiations that are found
during preprocessing. Preprocessing records are *not* generated by
default; rather, we provide a PPCallbacks subclass that hooks into the
existing callback mechanism to record this activity.
The only client of preprocessing records is CIndex, which keeps track
of macro definitions and instantations so that they can be exposed via
cursors. At present, only token annotation uses these facilities, and
only for macro instantiations; both will change in the near
future. However, with this change, token annotation properly annotates
macro instantiations that do not produce any tokens and instantiations
of macros that are later undef'd, improving our consistency.
Preprocessing directives that are not macro definitions are still
handled by clang_annotateTokens() via re-lexing, so that we don't have
to track every preprocessing directive in the preprocessing record.
Performance impact of preprocessing records is still TBD, although it
is limited to CIndex and therefore out of the path of the main compiler.
llvm-svn: 98836
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
IBActionAttr and IBOutletAttr respectively.
llvm-svn: 96563
|
|
|
|
| |
llvm-svn: 94447
|
|
|
|
|
|
| |
typedefs only (for now).
llvm-svn: 94078
|
|
|
|
|
|
|
| |
the interface to clang_visitChildren() by eliminating the
CXTranslationUnit pointer.
llvm-svn: 94051
|
|
|
|
|
|
| |
much about the cursor's storage
llvm-svn: 94049
|
|
|
|
|
|
|
|
|
|
| |
statements, moving some of the more unnatural kinds of references
(VarRef, EnumConstantRef, etc.) over to the expressions. We can now
poke at arbitrary expressions and statements with, e.g.,
clang_getCursor() and get back useful information (e.g., source
ranges).
llvm-svn: 93946
|
|
|
|
|
|
| |
rather than the locations that refer to.
llvm-svn: 93812
|
|
|
|
|
|
|
|
|
| |
in CXCursor.cpp. With this sane representation, fix the class
reference that is part of Objective-C category declarations so that
the cursor's location matches up with the reference, not the class
being referred to.
llvm-svn: 93640
|
|
|
|
|
|
|
| |
source locations where the protocols were referenced rather than the
location of some random enclosing declaration.
llvm-svn: 93637
|
|
|
|
|
|
| |
to CXCursor.cpp.
llvm-svn: 93634
|
|
|
|
|
|
| |
TUVisitor.
llvm-svn: 93599
|
|
|
|
| |
llvm-svn: 93561
|
|
creating/probing CXCursors.
llvm-svn: 93547
|