| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
for some cast expressions.
Original commit message:
Removed useless ImplicitCast nodes in explicit cstyle and static casts
llvm-svn: 145447
|
|
|
|
| |
llvm-svn: 145377
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
expansions/definition
of a macro in a file).
As a bonus, also make searching for declarations more efficient by ignoring
preprocessing entities when we know that we are looking for a declaration.
Fixes rdar://10427411.
llvm-svn: 145369
|
|
|
|
| |
llvm-svn: 145244
|
|
|
|
| |
llvm-svn: 145110
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
file region
inside an objc container that "contains" other file-level declarations.
When getting the array of file-level declarations that overlap with a file region,
we failed to report that the region overlaps with an objc container, if
the container had other file-level declarations declared lexically inside it.
Fix this by marking such declarations as "isTopLevelDeclInObjCContainer" in the AST
and handling them appropriately.
llvm-svn: 145109
|
|
|
|
|
|
|
|
| |
avoid
unnecessary deserializations.
llvm-svn: 144792
|
|
|
|
|
|
|
|
| |
deserialization and avoid
unnecessary deserializations.
llvm-svn: 144791
|
|
|
|
| |
llvm-svn: 144766
|
|
|
|
|
|
|
|
| |
diagnostics
in the ASTUnit changed.
llvm-svn: 144762
|
|
|
|
|
|
|
|
|
| |
HeaderFileInfos
from the primary PCH is deserialized, otherwise we lose info that headers were
already #imported/#included.
llvm-svn: 144510
|
|
|
|
|
|
| |
(bycopy, inout, etc.). Fixes <rdar://problem/10402900>.
llvm-svn: 144157
|
|
|
|
|
|
|
|
|
|
|
| |
In certain cases ASTReader would call the normal DiagnosticsEngine API to initialize
the state of diagnostic pragmas but DiagnosticsEngine would try to compare source locations
leading to crash because the main FileID was not yet initialized.
Yet another case of the ASTReader trying to use the normal APIs and inadvertently breaking
invariants. Fix this by having the ASTReader set up the internal state directly.
llvm-svn: 144153
|
|
|
|
| |
llvm-svn: 143985
|
|
|
|
|
|
| |
function template instantiations. Fixes <rdar://problem/10398005> / PR11312.
llvm-svn: 143984
|
|
|
|
|
|
|
|
|
|
|
| |
A PCH file keeps track of #pragma diagnostics state; when loading the preamble, they conflicted
with the #pragma diagnostic state already present in the DiagnosticsEngine object due to
parsing the preamble.
Fix this by clearing the state of the DiagnosticsEngine object.
Fixes rdar://10363572 && http://llvm.org/PR11254.
llvm-svn: 143644
|
|
|
|
| |
llvm-svn: 143642
|
|
|
|
|
|
| |
the struct.
llvm-svn: 143638
|
|
|
|
|
|
| |
contains fields.
llvm-svn: 143636
|
|
|
|
|
|
| |
accessibility. Fixes <rdar://problem/3727335>.
llvm-svn: 143635
|
|
|
|
|
|
|
|
| |
region and
use it for clang_getCursor.
llvm-svn: 143605
|
|
|
|
|
|
|
|
|
| |
to types. Enable this flag for code completion, where knowing whether
something is in an anonymous or inline namespace is actually not
useful, since you don't have to type it anyway. Fixes
<rdar://problem/10208818>.
llvm-svn: 143599
|
|
|
|
|
|
| |
definition. This already worked; <rdar://problem/10208871>.
llvm-svn: 143595
|
|
|
|
| |
llvm-svn: 143477
|
|
|
|
|
|
|
|
|
|
| |
or ivar
it contains give it a USR based on its semantic context, which is the interface.
This follows what we already did for objc methods. rdar://10371669
llvm-svn: 143464
|
|
|
|
| |
llvm-svn: 143150
|
|
|
|
|
|
| |
lazily-created static DenseMap. This DenseMap is cleared (and the files erased) via an atexit routine in the case an ASTUnit is not destroyed. Fixes <rdar://problem/10293367>.
llvm-svn: 143115
|
|
|
|
| |
llvm-svn: 143077
|
|
|
|
| |
llvm-svn: 143048
|
|
|
|
|
|
|
|
|
|
|
| |
essence, the redeclaration chain for a class could end up in an
inconsistent state while deserializing multiple declarations in that
chain, where the circular linked list was not, in fact,
circular. Since only two redeclarations of the same entity will get
loaded when we're in this state, restore circularity when both have
been loaded. Fixes <rdar://problem/10324940> / PR11195.
llvm-svn: 143037
|
|
|
|
| |
llvm-svn: 142951
|
|
|
|
|
|
|
|
|
|
| |
statements. As noted in the documentation for the AST node, the
semantics of __if_exists/__if_not_exists are somewhat different from
the way Visual C++ implements them, because our parsed-template
representation can't accommodate VC++ semantics without serious
contortions. Hopefully this implementation is "good enough".
llvm-svn: 142901
|
|
|
|
|
|
| |
around the brokenness of code completion under -fdelayed-template-parsing
llvm-svn: 142472
|
|
|
|
| |
llvm-svn: 142427
|
|
|
|
|
|
| |
expressions (this, sizeof, etc.).
llvm-svn: 142424
|
|
|
|
|
|
|
|
|
| |
the class
don't use unique USRs for them, otherwise we fail to associate @implementation methods
with the methods in extensions.
llvm-svn: 142361
|
|
|
|
| |
llvm-svn: 142357
|
|
|
|
|
|
|
| |
arguments as block literal arguments; the block literal argument code
completion should only go one level deep. Fixes <rdar://problem/10291294>.
llvm-svn: 142335
|
|
|
|
|
|
| |
access specifier. The testcase has been changed to catch this too.
llvm-svn: 142186
|
|
|
|
|
|
| |
retrieve annotations from completion string.
llvm-svn: 141953
|
|
|
|
|
|
| |
-std=c++0x. Patch by Ahmed Charles!
llvm-svn: 141900
|
|
|
|
|
|
| |
attributes are found, propagate them to subsequent declarations.
llvm-svn: 141861
|
|
|
|
|
|
| |
class member. Fixes PR11108.
llvm-svn: 141600
|
|
|
|
|
|
| |
available, but not accessible from the current code completion context.
llvm-svn: 141278
|
|
|
|
|
|
|
|
| |
and a callback and finds all identifier references of the cursor in the file.
rdar://7948304
llvm-svn: 141277
|
|
|
|
|
|
| |
from Manuel Holtgrewe!
llvm-svn: 141200
|
|
|
|
|
|
|
|
| |
-Add the location of the class name to all objc container decls, not just ObjCInterfaceDecl.
-Make objc decls consistent with the rest of the NamedDecls and have getLocation() point to the
class name, not the location of '@'.
llvm-svn: 141061
|
|
|
|
| |
llvm-svn: 141002
|
|
|
|
|
|
|
|
|
| |
support both a fragile and non-fragile ABI, and it can be selected at
runtime. That driver option also works on Darwin (although obviously
the code is not necessarily usable if the system runtime is fragile)
so just do that.
llvm-svn: 140973
|
|
|
|
|
|
|
| |
otherwise these tests would fail on hosts that happen to default
to that, since that affects whether default synthesis can happen.
llvm-svn: 140970
|