Commit Graph

67 Commits

Author SHA1 Message Date
Ge Sen
5ad36b2962 [gardening] Put white spaces in between if/while clauses and braces where it is missing.
For instance:

'if (foo){' => 'if (foo) {'
2016-04-02 14:43:45 +08:00
saisi
08abcd92c3 fixed niggling typos 2016-01-29 22:22:12 -05:00
practicalswift
0d40662332 [gardening] Consistent use of header pattern 2016-01-23 12:19:51 +01:00
practicalswift
8efa5f587e [gardening] Remove "-*- C++ -*-" tag from .cpp files
Emacs assumes .h files are C files by default which is why the
tag "-*- C++ -*-" is needed.

.cpp files do not have this problem.
2016-01-23 12:09:32 +01:00
practicalswift
50baf2e53b Use consistent formatting in top of file headers. 2016-01-04 02:17:48 +01:00
Zach Panzarino
e3a4147ac9 Update copyright date 2015-12-31 23:28:40 +00:00
practicalswift
22e10737e2 Fix typos 2015-12-26 01:19:40 +01:00
Dmitri Gribenko
23366f2001 Merge pull request #506 from practicalswift/fix-typos-10
Fix typos (10 of 30)
2015-12-13 20:17:38 -08:00
practicalswift
bb6be23027 Fix typo: diagostics → diagnostics 2015-12-14 00:11:37 +01:00
practicalswift
2d9c3c3503 Fix typo: abbrevation → abbreviation 2015-12-13 23:56:38 +01:00
Ted Kremenek
1d1343ef7f Handle invalid locations in the serialized diagnostic consumer. Fixes <rdar://problem/17422366>.
Swift SVN r19178
2014-06-25 21:12:25 +00:00
Jordan Rose
574054b8fd Distance SourceManager from llvm::SourceMgr.
...in preparation for non-source locations, i.e. locations that don't come
frome source buffers.

No functionality change, but a fair bit of SourceManager API and idioms have
changed.

Swift SVN r18942
2014-06-17 01:15:47 +00:00
Jordan Rose
a843d9e61b Don't serialize invalid ranges in diagnostics.
No tests because I'm not sure when this ever happens, but it's a good
defensive commit anyway.

<rdar://problem/16414465>

Swift SVN r16841
2014-04-25 20:56:44 +00:00
Dmitri Hrybenko
f232267f23 Replace llvm::OwningPtr with std::unique_ptr
It looks like llvm::OwningPtr is going to be removed soon.


Swift SVN r14729
2014-03-06 09:47:17 +00:00
Jordan Rose
6685f72f3b Use Clang's stable enum values for serialized diagnostics.
A refinement of r14545, which was a response to "remarks" being added to Clang.
This commit requires Clang commit r202733.

Swift SVN r14613
2014-03-03 22:16:06 +00:00
Jordan Rose
3826099df4 Keep serialized diagnostic levels in sync with Clang.
Who would have thought this would ever change? But over in open-source-land,
they're adding "remarks" to the diagnostics (kind of like standalone notes)
and that shifted over the IDs of serialized diagnostics.

Swift SVN r14545
2014-03-01 00:44:13 +00:00
Connor Wakamo
2b3a922aa5 Move SerializedDiagnosticConsumer into swiftFrontend.
This matches where Clang implements its equivalent, and this makes it available to both swift and the new driver.

Swift SVN r10047
2013-11-08 19:26:13 +00:00