| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
rdar://8483139.
llvm-svn: 114954
|
| |
|
|
| |
llvm-svn: 114940
|
| |
|
|
| |
llvm-svn: 114937
|
| |
|
|
| |
llvm-svn: 114922
|
| |
|
|
|
|
|
|
| |
already be determined by isCopyAssignmentOperator(), and was set too
late in the process for all clients to see the appropriate
value. Cleanup only; no functionality change.
llvm-svn: 114916
|
| |
|
|
|
|
| |
them the correct IDs. Fixes a crash in XCode.
llvm-svn: 114913
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
identifier, we may have a Sema object but no translation unit scope
(because parsing is finished). In this case, we still need to update
the IdResolver, which might still be used when writing a PCH
containing another PCH (without chaining). This bug manifested as a
failure with precompiled preambles.
Also, add a little environment-variable-sensitive logging for
libclang.
llvm-svn: 114774
|
| |
|
|
| |
llvm-svn: 114575
|
| |
|
|
| |
llvm-svn: 114518
|
| |
|
|
| |
llvm-svn: 114517
|
| |
|
|
| |
llvm-svn: 114315
|
| |
|
|
| |
llvm-svn: 114014
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
instead"
This reverts commit r113631
Conflicts:
CMakeLists.txt
lib/CodeGen/CMakeLists.txt
llvm-svn: 113817
|
| |
|
|
|
|
| |
need Sema access to be correct, fixes coming up.
llvm-svn: 113782
|
| |
|
|
|
|
|
|
| |
and treat it as 'delete[]'.
Also offer a fix-it hint adding '[]'.
llvm-svn: 113778
|
| |
|
|
| |
llvm-svn: 113777
|
| |
|
|
|
|
|
|
| |
The canonical FunctionTemplateDecl contains the specializations but we cannot use getCanonicalDecl on Template because it may still be initializing.
Write and read it from PCH.
Fixes http://llvm.org/PR8134
llvm-svn: 113744
|
| |
|
|
| |
llvm-svn: 113743
|
| |
|
|
| |
llvm-svn: 113742
|
| |
|
|
| |
llvm-svn: 113741
|
| |
|
|
| |
llvm-svn: 113650
|
| |
|
|
|
|
| |
of whatever we were using before...
llvm-svn: 113631
|
| |
|
|
| |
llvm-svn: 113627
|
| |
|
|
|
|
| |
libclang visitation.
llvm-svn: 113492
|
| |
|
|
| |
llvm-svn: 113489
|
| |
|
|
|
|
|
|
|
| |
Another beating by boost in this test case: http://llvm.org/PR8117
A function specialization wasn't properly initialized if it wasn't canonical.
I wish there was a nice little test case but this was boost.
llvm-svn: 113481
|
| |
|
|
|
|
|
|
|
|
| |
switch(enum) where
covered by individual case statements. Flow-based analyses may wish to consult this information,
and recording this in the AST allows us to obviate reconstructing this information later when
we build the CFG.
llvm-svn: 113447
|
| |
|
|
| |
llvm-svn: 113413
|
| |
|
|
|
|
|
|
|
|
|
| |
PCH got a severe beating by the boost-using test case reported here: http://llvm.org/PR8099
Fix issues like:
-When PCH reading, make sure Decl's getASTContext() doesn't get called since a Decl in the parent hierarchy may be initializing.
-In ASTDeclReader::VisitFunctionDecl VisitRedeclarable should be called before using FunctionDecl's isCanonicalDecl()
-In ASTDeclReader::VisitRedeclarableTemplateDecl CommonOrPrev must be initialized before anything else.
llvm-svn: 113391
|
| |
|
|
| |
llvm-svn: 113356
|
| |
|
|
|
|
|
|
| |
CXXTemporaryObjectExpr, CXXScalarValueInitExpr, and
CXXUnresolvedConstructExpr, getting rid of a bunch of FIXMEs in the
process.
llvm-svn: 113319
|
| |
|
|
|
|
| |
the TypeSourceInfo for the allocated type. Fixes PR7501.
llvm-svn: 113291
|
| |
|
|
| |
llvm-svn: 113185
|
| |
|
|
|
|
| |
CXXBaseOrMemberInitializer's IsWritten and source order is not set.
llvm-svn: 113161
|
| |
|
|
|
|
| |
well-intentioned but completely unused code.
llvm-svn: 112868
|
| |
|
|
| |
llvm-svn: 112820
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
three different kinds of AST nodes to represent using declarations:
UsingDecl, UnresolvedUsingValueDecl, and
UnresolvedUsingTypenameDecl. These three are collapsed into a single
cursor kind for using declarations, since libclang clients don't need
the distinction.
Several related changes here:
- Cursor visitation of the three AST nodes for using declarations
- Proper source-range computation for these AST nodes
- Using declarations have no USRs, since they don't actually declare
any entities.
llvm-svn: 112730
|
| |
|
|
|
|
|
|
| |
suppressing USRs). Also, fix up the source location information for
using directives so that the declaration location refers to the
namespace name.
llvm-svn: 112693
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
ReferencedProtocols and AllReferencedProtocols. ReferencedProtocols
(and thus protocol_begin(), protocol_end()) now only contains the list of protocols that were directly referenced in
an @interface declaration. 'all_referenced_protocol_[begin,end]()' now returns the set of protocols that were referenced
in both the @interface and class extensions. The latter is needed for semantic analysis/codegen, while the former is
needed to maintain the lexical information of the original source.
Fixes <rdar://problem/8380046>.
llvm-svn: 112691
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
aliases. Previously, the location of the alias was at the "namespace"
keyword. Now, it's on the identifier being declared (as is the custom
for Clang), and we keep a separate source location for the "namespace"
keyword.
Also, added a getSourceRange() member function to NamespaceAliasDecl
to correctly compute the source range.
Finally, removed a bunch of setters from NamespaceAliasDecl and gave
ASTReaderDecl friendship so that it could set the corresponding fields
directly.
llvm-svn: 112681
|
| |
|
|
|
|
|
| |
This is also pr7726 and wip. No change in functionality
at this time.
llvm-svn: 112612
|
| |
|
|
|
|
|
|
|
|
|
| |
For large floats/integers, APFloat/APInt will allocate memory from the heap to represent these numbers.
Unfortunately, when we use a BumpPtrAllocator to allocate IntegerLiteral/FloatingLiteral nodes the memory associated with
the APFloat/APInt values will never get freed.
I introduce the class 'APNumericStorage' which uses ASTContext's allocator for memory allocation and is used internally by FloatingLiteral/IntegerLiteral.
Fixes rdar://7637185
llvm-svn: 112361
|
| |
|
|
|
|
| |
This lets us remove Sema.h's dependency on Expr.h and Decl.h.
llvm-svn: 112156
|
| |
|
|
| |
llvm-svn: 112044
|
| |
|
|
|
|
| |
functionality changed.
llvm-svn: 112040
|
| |
|
|
| |
llvm-svn: 112026
|
| |
|
|
|
|
| |
the chain. This ought to finish C++ chained PCH support.
llvm-svn: 111986
|
| |
|
|
|
|
| |
the chain.
llvm-svn: 111985
|
| |
|
|
|
|
|
| |
#include Sema.h while keeping all the AST declarations opaque. That may
not be reasonably attainable, though.
llvm-svn: 111907
|
| |
|
|
|
|
| |
If someone wants to fix this some other way....
llvm-svn: 111905
|