Alexander Kornienko
2a8c18d991
Fix typos in clang
...
Found via codespell -q 3 -I ../clang-whitelist.txt
Where whitelist consists of:
archtype
cas
classs
checkk
compres
definit
frome
iff
inteval
ith
lod
methode
nd
optin
ot
pres
statics
te
thru
Patch by luzpaz! (This is a subset of D44188 that applies cleanly with a few
files that have dubious fixes reverted.)
Differential revision: https://reviews.llvm.org/D44188
llvm-svn: 329399
2018-04-06 15:14:32 +00:00
Richard Smith
b6070db0d0
DR1672, DR1813, DR1881, DR2120: Implement recent fixes to "standard
...
layout" rules.
The new rules say that a standard-layout struct has its first non-static
data member and all base classes at offset 0, and consider a class to
not be standard-layout if that would result in multiple subobjects of a
single type having the same address.
We track "is C++11 standard-layout class" separately from "is
standard-layout class" so that the ABIs that need this information can
still use it.
Differential Revision: https://reviews.llvm.org/D45176
llvm-svn: 329332
2018-04-05 18:55:37 +00:00
Yaron Keren
48baeb0e77
Remove reference to stale (2009) python version.
...
llvm-svn: 328447
2018-03-25 13:12:05 +00:00
Richard Smith
161ccb0e14
[cxx_status] Add entry for the Reflection TS.
...
llvm-svn: 327770
2018-03-17 14:34:21 +00:00
Richard Smith
a14f320e38
[cxx_status] Update to match Jacksonville 2018 motions.
...
Also rearrange how we list DR motions: rather than listing them as part of some
later standard, list them against the feature they are a DR against. Explicitly
add a description of how we handle DRs.
llvm-svn: 327769
2018-03-17 14:28:47 +00:00
Richard Smith
c660c8f5d2
Implement C++ DR727, which permits explicit specializations at class scope.
...
More generally, this permits a template to be specialized in any scope in which
it could be defined, so this also supersedes DR44 and DR374 (the latter of
which we previously only implemented in C++11 mode onwards due to unclarity as
to whether it was a DR).
llvm-svn: 327705
2018-03-16 13:36:56 +00:00
Richard Smith
3ecb3b868d
Update DR script to mark Clang 6 as 'done' not 'svn'.
...
llvm-svn: 327546
2018-03-14 18:20:45 +00:00
Richard Smith
c61361d994
[www] Update C++ DR status to match latest issues list.
...
llvm-svn: 327545
2018-03-14 18:19:41 +00:00
Richard Smith
d9d42f9cc6
[www] Capitalize "Clang" when referring to the project, and generalize the
...
introduction on the front page page.
We still use the lowercase "clang" spelling when referring to the driver binary.
llvm-svn: 326493
2018-03-01 22:01:06 +00:00
Richard Smith
c1a40220b4
Update cxx_status to mark "SVN" items as "Clang 6" instead.
...
llvm-svn: 326298
2018-02-28 03:02:07 +00:00
Devin Coughlin
c0ffd637b9
[www] Update link to analyzer's "Building a Checker in 24 hours" video
...
The video is now uploaded to YouTube.
llvm-svn: 326062
2018-02-26 00:39:25 +00:00
Richard Smith
90c47cad22
[cxx_dr_status] Tests for CWG issues 641-687.
...
llvm-svn: 325475
2018-02-19 09:05:48 +00:00
Jonathan Roelofs
2f335af5c0
Fix typo. NFC
...
llvm-svn: 323864
2018-01-31 12:06:15 +00:00
Jonathan Roelofs
4a205fd038
[scan-build] Add an option to skip overriding CC and CXX make vars
...
Autoconf and some other systems tend to add essential compilation
options to CC (e.g. -std=gnu99). When running such an auto-generated
makefile, scan-build does not need to change CC and CXX as they are
already set to use ccc-analyzer by a configure script.
Implement a new option --keep-cc as was proposed in this discussion:
http://lists.llvm.org/pipermail/cfe-dev/2013-September/031832.html
Patch by Paul Fertser!
llvm-svn: 323665
2018-01-29 16:49:34 +00:00
Hiroshi Inoue
56939f7e75
[NFC] fix trivial typos in comments
...
"the the" -> "the"
llvm-svn: 323078
2018-01-22 07:44:38 +00:00
Richard Smith
56ae0a67e8
DR126: partially implement the const-correct rules for exception handler matching.
...
While here, fix up the myriad other ways in which Sema's two "can this handler
catch that exception?" implementations get things wrong and unify them.
llvm-svn: 322431
2018-01-13 05:05:45 +00:00
Dimitry Andric
e4f5d01033
Fix more inconsistent line endings. NFC.
...
llvm-svn: 321016
2017-12-18 19:46:56 +00:00
Richard Smith
e0c11f25ee
Update website to mention that you still need -frelaxed-template-template-args to enable the corresponding C++17 feature in Clang 5.
...
llvm-svn: 319495
2017-11-30 23:07:29 +00:00
Hans Wennborg
6ad65fcd70
Update link to the Chromium Clang page
...
llvm-svn: 318108
2017-11-13 23:27:53 +00:00
Richard Smith
be49c048c1
[cxx_status] Add resolution of CWG issue 1581, since it's an important, visible change.
...
llvm-svn: 317983
2017-11-11 18:00:16 +00:00
Richard Smith
137f657031
[cxx_status] Update for moved Albuquerque papers.
...
llvm-svn: 317982
2017-11-11 17:54:46 +00:00
Faisal Vali
39ff401026
[c++2a] Update cxx_status w __VA_OPT__ marked as completed in SVN.
...
llvm-svn: 316304
2017-10-22 22:29:52 +00:00
Jan Korous
17b7058d7f
Typos in tutorial
...
llvm-svn: 315652
2017-10-13 00:31:07 +00:00
George Karpenkov
40eb5130a5
[Analyzer] Document a gotcha: for C++ -analyze-function requires parameters in function name
...
Differential Revision: https://reviews.llvm.org/D37596
llvm-svn: 314573
2017-09-30 00:07:22 +00:00
Sylvestre Ledru
b714d6aaa6
set the svn:executable property, seems that it is necessary for apache (discussed with Tanya by email)
...
llvm-svn: 312877
2017-09-10 08:00:03 +00:00
Richard Smith
4b82f9c37a
[cxx_status] Change "Clang 5" items from yellow to green now that Clang 5 has been released.
...
llvm-svn: 312850
2017-09-09 01:11:04 +00:00
Richard Smith
1363e8f6ed
P0702R1: in class template argument deduction from a list of one element, if
...
that element's type is (or is derived from) a specialization of the deduced
template, skip the std::initializer_list special case.
llvm-svn: 312703
2017-09-07 07:22:36 +00:00
Richard Smith
c61fec2594
[cxx_status] Update to describe current status a bit better.
...
llvm-svn: 312191
2017-08-30 23:10:31 +00:00
Richard Smith
6b8e3c02ca
[c++2a] P0683R1: Permit default member initializers for bit-fields.
...
This would be trivial, except that our in-memory and serialized representations
for FieldDecls assumed that this can't happen.
llvm-svn: 311867
2017-08-28 00:28:14 +00:00
Sylvestre Ledru
cb0d604244
Remove the old meeting links. Also available from the link: http://llvm.org/devmtg/
...
llvm-svn: 311767
2017-08-25 08:47:57 +00:00
Sylvestre Ledru
29e2a589f1
clang also supports C++14 & 17 + remove trailing whitespaces
...
llvm-svn: 311766
2017-08-25 08:44:56 +00:00
Richard Smith
2592327dae
[c++2a] P0704R1: Allow pointers to const& member functions to be called on rvalues.
...
Patch by Blitz Rakete!
llvm-svn: 311744
2017-08-25 01:47:55 +00:00
Faisal Vali
8194a3e975
[c++2a] Implement P0409R2 - Allow lambda capture [=,this] (by hamzasood)
...
This patch, by hamzasood, implements P0409R2, and allows [=, this] pre-C++2a as an extension (with appropriate warnings) for consistency.
https://reviews.llvm.org/D36572
Thanks Hamza!
llvm-svn: 311224
2017-08-19 03:43:07 +00:00
Richard Smith
9d07ae77e7
Implement latest feature test macro recommendations, P0096R4.
...
llvm-svn: 310694
2017-08-11 03:39:40 +00:00
Richard Smith
b9e5af2123
Update cxx_status to mention the upcoming Clang 5 release.
...
llvm-svn: 310693
2017-08-11 03:16:11 +00:00
Richard Smith
f8c735c770
PR33850: Update cxx_dr_status for Clang 5 branch.
...
llvm-svn: 310692
2017-08-11 03:14:20 +00:00
Devin Coughlin
f0cadcd9f3
[Analyzer] Add support for displaying cross-file diagnostic paths in HTML output
...
This change adds support for cross-file diagnostic paths in html output. If the
diagnostic path is not cross-file, there is no change in the output.
Patch by Vlad Tsyrklevich!
Differential Revision: https://reviews.llvm.org/D30406
llvm-svn: 309968
2017-08-03 18:12:22 +00:00
Devin Coughlin
35b59fcaf2
[analyzer] Add missing documentation for static analyzer checkers
...
Some checks did not have documentation in the www/analyzer/ folder and also
some alpha checks became non-alpha.
Patch by Dominik Szabó!
Differential Revision: https://reviews.llvm.org/D33645
llvm-svn: 308242
2017-07-18 00:34:57 +00:00
Richard Smith
21a1019387
[cxx_status] Fix typos.
...
llvm-svn: 308101
2017-07-15 15:51:59 +00:00
Richard Smith
da62f427a4
[cxx_status] Add approved Toronto WG21 motions.
...
llvm-svn: 308099
2017-07-15 15:42:36 +00:00
Gabor Horvath
70c671a3bf
[analyzer] Fix a path in the developer manual
...
Patch by: Reka Nikolett Kovacs
llvm-svn: 307468
2017-07-08 08:23:52 +00:00
Richard Smith
29c5f16ad0
[cxx_status] Update link to Modules TS to latest working draft. Fix Coroutines TS flag to work if copy-pasted.
...
llvm-svn: 307231
2017-07-06 00:29:13 +00:00
Hiroshi Inoue
c5e54ddab3
fix trivial typos in comments; NFC
...
llvm-svn: 307007
2017-07-03 08:49:44 +00:00
Gor Nishanov
b87931e983
[coroutines] www/cxx_status.html: add non-breaking hyphen
...
Reviewers: GorNishanov
Reviewed By: GorNishanov
Subscribers: EricWF, rsmith, cfe-commits
Differential Revision: https://reviews.llvm.org/D33632
llvm-svn: 304092
2017-05-28 17:35:23 +00:00
Gor Nishanov
6ecbe540c6
[coroutines] www/cxx_status.html: add non-breaking hyphen
...
Reviewers: GorNishanov
Reviewed By: GorNishanov
Subscribers: EricWF, rsmith, cfe-commits
Differential Revision: https://reviews.llvm.org/D33632
llvm-svn: 304091
2017-05-28 16:25:31 +00:00
Gor Nishanov
b5543e5b32
[coroutines] Mark cxx_status.html of Coroutines TS as (SVN)
...
Summary: It is time!
Reviewers: GorNishanov, rsmith
Reviewed By: GorNishanov, rsmith
Subscribers: EricWF, rsmith, cfe-commits
Differential Revision: https://reviews.llvm.org/D33624
llvm-svn: 304081
2017-05-27 22:54:52 +00:00
George Burgess IV
a911cb4ec8
[docs] Point coroutine link to an actual document
...
Unsure if there's a better document, but what we had before led to a
404. :)
llvm-svn: 303962
2017-05-26 02:56:51 +00:00
Aaron Ballman
c674a056e9
Update the getting started documentation to match the corresponding LLVM commit in r303912.
...
llvm-svn: 303913
2017-05-25 21:02:49 +00:00
Eric Fiselier
b0bac2dafb
[Sema] Implement Core 2094: Trivial copy/move constructor for class with volatile member
...
Summary: This patch implements http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2094 which reverts Core 496.
Reviewers: rsmith
Reviewed By: rsmith
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D32984
llvm-svn: 302593
2017-05-09 22:21:24 +00:00
Eric Fiselier
a34cb77273
Update Clang C++ DR documentation for new issue list
...
llvm-svn: 302592
2017-05-09 22:17:23 +00:00