Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
Jordan Rose
c9d34f294b
Print the storage decl associated with an accessor in a crash trace.
...
...instead of just "anonname=0xBADBEEF".
Swift SVN r28324
2015-05-08 21:01:44 +00:00
Jordan Rose
3fcdfd40e9
Remove the "swift/Basic/Optional.h" header.
...
llvm::Optional lives in "llvm/ADT/Optional.h". Like Clang, we can get
Optional in the 'swift' namespace by including "swift/Basic/LLVM.h".
We're now fully switched over to llvm::Optional!
Swift SVN r22477
2014-10-02 18:51:45 +00:00
Dmitri Hrybenko
0ac3f6f299
Allow const Decls to be used with PrettyStackTraceDecl
...
Swift SVN r15045
2014-03-14 12:37:01 +00:00
John McCall
dc88f2ed04
The convention is for print*Description to print a newline.
...
Swift SVN r10391
2013-11-13 00:16:18 +00:00
John McCall
0f97e9307c
Extract out a function to print a SourceLoc for pretty stack traces.
...
Swift SVN r10339
2013-11-11 19:52:32 +00:00
Dmitri Hrybenko
536ed954ad
Remove FuncExpr. Add CaptureInfo to FuncDecl. Introduce AnyFunctionRef.
...
AnyFunctionRef is a universal function reference that can wrap all AST nodes
that represent functions and exposes a common interface to them. Use it in two
places in SIL where CapturingExpr was used previously.
AnyFunctionRef allows further simplifications in other places, but these will
be done separately.
Swift SVN r8239
2013-09-14 02:15:48 +00:00
Doug Gregor
a85ef1e7c4
Introduce stack trace information for resolving type representations.
...
This should help give a slightly better experience for out-of-order
type checking issues until we manage to make type checking
order-independent. <rdar://problem/14702636>.
Swift SVN r7149
2013-08-12 14:59:13 +00:00
Dmitri Hrybenko
3d37954e81
Remove SourceManager::decompose() and switch its clients to normal location and
...
range printing
Swift SVN r7122
2013-08-10 02:19:50 +00:00
Dmitri Hrybenko
09837a1b88
Simplify the implementation of SourceManager::decompose() and its client
...
Swift SVN r7119
2013-08-10 01:32:42 +00:00
Dmitri Hrybenko
aacef757ed
Move decompose from PrettyStackTrace.cpp to the SourceManager
...
It requires direct access to the SourceLoc internals and is generally useful
anyway.
Swift SVN r7111
2013-08-09 22:50:58 +00:00
John McCall
fcd998a48b
PrettyStackTrace enhancements for SIL constructs.
...
Swift SVN r6966
2013-08-07 00:10:57 +00:00
Dmitri Hrybenko
e1c4ae3174
Wrap llvm::SourceMgr in swift::SourceManager so that we can add new members
...
to the source manager.
Swift SVN r6815
2013-08-01 20:39:22 +00:00
John McCall
77b62557a6
Add a pretty stack trace entry for a type (and a newline to
...
the generic source-location printer).
Swift SVN r4922
2013-04-26 18:48:36 +00:00
Eli Friedman
ae86d64644
Rename Decl::getLocStart() to Decl::getStartLoc(). Add Decl::getLoc(), which is essentially the location which should be used for diagnostics.
...
Swift SVN r2105
2012-05-31 23:56:30 +00:00
Eli Friedman
bfe3f8446d
Fix PrettyStackTraceDecl so it doesn't crash for a NamedDecl without a name.
...
Swift SVN r1785
2012-05-09 02:09:21 +00:00
Chris Lattner
774a557e5c
Merge NamedDecl into ValueDecl, rdar://11379147.
...
Swift SVN r1737
2012-05-04 04:50:53 +00:00
John McCall
14aa93a382
Publicize an API for printing out a source location for
...
debugging purposes. Add a PrettyStackTraceLocation for
noting that we're currently processing a fixed location.
Swift SVN r1096
2012-01-26 00:07:05 +00:00
John McCall
b2569c7786
Provide PrettyStackTraceEntries for Expr* and Stmt* as well,
...
and type-check functions within the former.
Swift SVN r989
2011-12-23 03:53:23 +00:00
John McCall
5bdea18fc4
Introduce a PrettyStackTraceEntry implementation for
...
processing declarations and use it in debug builds whenever
the tree walker walks into a Decl.
Swift SVN r984
2011-12-23 01:58:26 +00:00