| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
methods looking for documentation on a particular base
class inherited by any method that overrides the base class.
In case of redeclaration, as when objc method is defined
in the implementation, it also looks up for documentation
in class/class extension being redeclared.
llvm-svn: 165643
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This more accurately reflects its use: this flag is set when a method
matches the getter or setter name for a property in the same class,
and does not actually specify whether or not the definition of the method
will be synthesized (either implicitly or explicitly with @synthesize).
This renames the setter and backing field as well, and changes the
(soon-to-be-obsolete?) XML dump format to use 'property_accessor'
instead of 'synthesized'.
llvm-svn: 165626
|
| |
|
|
| |
llvm-svn: 165600
|
| |
|
|
|
|
| |
and modules are not enabled.
llvm-svn: 165593
|
| |
|
|
|
|
|
| |
an invalid location if the location points to the synthetic buffer
for the module input.
llvm-svn: 165592
|
| |
|
|
|
|
| |
This reverts commit 165429 in an attempt to get our buildbots going.
llvm-svn: 165573
|
| |
|
|
|
|
| |
ASTContext so that it can be widely available.
llvm-svn: 165473
|
| |
|
|
| |
llvm-svn: 165429
|
| |
|
|
|
|
|
|
|
|
|
|
| |
to not mess up with module building.
It was not worth trying to combine indexing without preprocessing record
and building modules with one because:
-just importing a module/PCH that was built with a pp record, enables it anyway
-the performance gain of indexing without the preprocessing record is insignificant.
llvm-svn: 165352
|
| |
|
|
|
|
| |
importedASTFile indexing callback.
llvm-svn: 165281
|
| |
|
|
|
|
|
|
|
|
|
| |
clang_Cursor_getModule
clang_Module_getParent
clang_Module_getName
clang_Module_getFullName
clang_Module_getNumTopLevelHeaders
clang_Module_getTopLevelHeader
llvm-svn: 165280
|
| |
|
|
|
|
| |
import declaration.
llvm-svn: 165277
|
| |
|
|
|
|
| |
file name if building Apple-style.
llvm-svn: 165184
|
| |
|
|
| |
llvm-svn: 165161
|
| |
|
|
|
|
| |
imports via ImportDecls.
llvm-svn: 165160
|
| |
|
|
|
|
| |
regex for version tuples.
llvm-svn: 165104
|
| |
|
|
| |
llvm-svn: 165083
|
| |
|
|
|
|
| |
attribute going iinto XML document.
llvm-svn: 165066
|
| |
|
|
|
|
| |
declarations of the current primary module.
llvm-svn: 165046
|
| |
|
|
|
|
| |
to XML output. // rdar://12378879
llvm-svn: 165039
|
| |
|
|
|
|
| |
entities of the current primary module.
llvm-svn: 165023
|
| |
|
|
|
|
| |
resulted in an automatic module import.
llvm-svn: 165022
|
| |
|
|
|
|
| |
make sure that it gets enabled for when a module needs to be created.
llvm-svn: 165021
|
| |
|
|
|
|
| |
info about imported modules.
llvm-svn: 165020
|
| |
|
|
|
|
| |
care of comments by Dimitri and Doug.
llvm-svn: 164957
|
| |
|
|
|
|
|
| |
use it to suggest appropriate macro for __attribute__((deprecated)) in
-Wdocumentation-deprecated-sync.
llvm-svn: 164892
|
| |
|
|
|
|
|
| |
an inclusion directive was automatically turned into a module import, and
PPCallbacks::moduleImport() for an explicit module import.
llvm-svn: 164874
|
| |
|
|
|
|
|
| |
(I still need to add a test once I figure it out).
Reviewed off-line by Doug. // rdar://12378879
llvm-svn: 164861
|
| |
|
|
|
|
|
|
|
|
| |
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120917/064551.html
have PPCallbacks::InclusionDirective pass the character range for the filename quotes or brackets.
rdar://11113134 & http://llvm.org/PR13880
llvm-svn: 164743
|
| |
|
|
|
|
| |
This is to reduce dependency to cursors for the code-completion results.
llvm-svn: 164705
|
| |
|
|
|
|
| |
Removes a dependency of ASTUnit to clang-c/Index.h.
llvm-svn: 164704
|
| |
|
|
|
|
|
|
|
|
|
|
| |
enough information so we can mangle them correctly in cases involving
dependent parameter types. (This specifically impacts cases involving
null pointers and cases involving parameters of reference type.)
Fix the mangler to use this information instead of trying to scavenge
it out of the parameter declaration.
<rdar://problem/12296776>.
llvm-svn: 164656
|
| |
|
|
| |
llvm-svn: 164626
|
| |
|
|
| |
llvm-svn: 163983
|
| |
|
|
|
|
|
| |
parameter packs where the reference is not being expanded but the pack has
been. Previously, Clang would segfault in such cases.
llvm-svn: 163672
|
| |
|
|
|
|
| |
rdar://12257073
llvm-svn: 163563
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now we have a list of all commands. This is a good thing in itself, but it
also enables us to easily implement typo correction for command names.
With this change we have objects that contain information about each command,
so it makes sense to resolve command name just once during lexing (currently we
store command names as strings and do a linear search every time some property
value is needed). Thus comment token and AST nodes were changed to contain a
command ID -- index into a tables of builtin and registered commands. Unknown
commands are registered during parsing and thus are also uniformly assigned an
ID. Using an ID instead of a StringRef is also a nice memory optimization
since ID is a small integer that fits into a common bitfield in Comment class.
This change implies that to get any information about a command (even a command
name) we need a CommandTraits object to resolve the command ID to CommandInfo*.
Currently a fresh temporary CommandTraits object is created whenever it is
needed since it does not have any state. But with this change it has state --
new commands can be registered, so a CommandTraits object was added to
ASTContext.
Also, in libclang CXComment has to be expanded to include a CXTranslationUnit
so that all functions working on comment AST nodes can get a CommandTraits
object. This breaks binary compatibility of CXComment APIs.
Now clang_FullComment_getAsXML(CXTranslationUnit TU, CXComment CXC) doesn't
need TU parameter anymore, so it was removed. This is a source-incompatible
change for this C API.
llvm-svn: 163540
|
| |
|
|
| |
llvm-svn: 163149
|
| |
|
|
| |
llvm-svn: 163147
|
| |
|
|
| |
llvm-svn: 163099
|
| |
|
|
|
|
| |
Also a minor fix to __except printing in StmtPrinter.cpp. Thanks to Aaron Ballman for review.
llvm-svn: 163083
|
| |
|
|
| |
llvm-svn: 163072
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
code-recursively.
This can blow the stack with extremely deep hierarchies. Switch it to data-recursive.
This is implemented by introducing a post-children visitation callback that the
CursorVisitor is calling after child nodes of a cursor have been visited.
This is used by the annotate-tokens visitor to do extra work at that point.
rdar://11979525.
llvm-svn: 163071
|
| |
|
|
|
|
|
| |
This is similar to how we divide up the StaticAnalyzer libraries to separate
core functionality to what is clearly associated with Frontend actions.
llvm-svn: 163050
|
| |
|
|
| |
llvm-svn: 163032
|
| |
|
|
| |
llvm-svn: 163024
|
| |
|
|
|
|
| |
instead of aliasing to "struct" which had some incorrect behaviour. Patch by David Robins.
llvm-svn: 163013
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ivars otherwise
if we have something like:
@synthesize prop = _prop;
and '_prop' is not declared, we will encounter a '_prop' ivar before
encountering the 'prop' synthesize declaration and we will think that
we passed the region-of-interest, missing the cursor for 'prop'.
rdar://12172700
llvm-svn: 162715
|
| |
|
|
|
|
| |
change intended.
llvm-svn: 162710
|
| |
|
|
|
|
| |
No functional change intended.
llvm-svn: 162632
|