| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 187061
|
| |
|
|
|
|
|
|
| |
cxx_init_capture. "generalized" is neither descriptive nor future-proof. No
compatibility problems expected, since we've never advertised having this
feature.
llvm-svn: 187058
|
| |
|
|
| |
llvm-svn: 187055
|
| |
|
|
| |
llvm-svn: 187054
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before this change, Clang uses the x86 representation for C++ method
pointers when generating code for PNaCl. However, the resulting code
will assume that function pointers are 0 mod 2. This assumption is
not safe for PNaCl, where function pointers could have any value
(especially in future sandboxing models).
So, switch to using the ARM representation for PNaCl code, which makes
no assumptions about the alignment of function pointers.
Since we're changing the "le32" target, this change also applies to
Emscripten. The change is beneficial for Emscripten too. Emscripten
has a workaround to make function pointers 0 mod 2. This change would
allow the workaround to be removed.
See: https://code.google.com/p/nativeclient/issues/detail?id=3450
llvm-svn: 187051
|
| |
|
|
|
|
| |
No functionality change.
llvm-svn: 187047
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Add support for Adaptative matchers on the dynamic registry.
Each adaptative matcher is created with a function template. We instantiate the function N times, one for each possible From type and apply the techniques used on argument overloaded and polymorphic matchers to add them to the registry.
Reviewers: klimek
CC: cfe-commits, revane
Differential Revision: http://llvm-reviews.chandlerc.com/D1201
llvm-svn: 187044
|
| |
|
|
|
|
|
|
|
|
|
| |
This is far from implementing all the rules given by
http://www.webkit.org/coding/coding-style.html
The important new feature is the support for styles that don't have a
column limit. For such styles, clang-format will (at the moment) simply
respect the input's formatting decisions within statements.
llvm-svn: 187033
|
| |
|
|
|
|
|
| |
objects to be used once their lifetimes end. This completes the C++1y
constexpr extensions.
llvm-svn: 187025
|
| |
|
|
| |
llvm-svn: 187022
|
| |
|
|
|
|
| |
instancetype of NSDictionary methods.
llvm-svn: 187008
|
| |
|
|
|
|
| |
instancetype methods.
llvm-svn: 187004
|
| |
|
|
|
|
| |
instancetype migration.
llvm-svn: 187000
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The 64-bit PowerPC ELF ABI requires a struct that contains a single
vector member to be passed in a vector register as though the wrapping
struct were not present. Instead we were passing this as a byval
struct.
The same logic was already present for floating-point arguments, so
this patch just extends the logic to handle vector types. The new
test case verifies that clang coerces the parameter and annotates it
as inreg.
Thanks,
Bill
llvm-svn: 186993
|
| |
|
|
|
|
|
| |
The help text was wrong, and we already provide help text on the
option that actually changes anything, i.e. -fdiagnostics-show-note-include-stack.
llvm-svn: 186989
|
| |
|
|
| |
llvm-svn: 186988
|
| |
|
|
| |
llvm-svn: 186983
|
| |
|
|
|
|
| |
line test cases. This reduces the number of test runs, provides the same coverage, and allows us to test that the attribute names are included in the diagnostic.
llvm-svn: 186982
|
| |
|
|
|
|
|
| |
which are candidate for migrating to
'instancetype'. wip.
llvm-svn: 186981
|
| |
|
|
|
|
|
|
| |
diagnostic for clarity; updated almost all of the affected test cases.
Thanks to Fariborz Jahanian for the suggestion!
llvm-svn: 186980
|
| |
|
|
| |
llvm-svn: 186974
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
function-like macro. Clang will attempt to correct the arguments by detecting
braced initializer lists:
1) If possible, suggest parentheses around arguments
containing braced lists which will give the proper number of arguments.
2) If a braced list is detected at the start of a macro argument, it cannot be
corrected by parentheses. Instead, just point out the location of these
braced lists.
llvm-svn: 186971
|
| |
|
|
| |
llvm-svn: 186970
|
| |
|
|
|
|
| |
Patch by Che-Liang Chiou!
llvm-svn: 186967
|
| |
|
|
| |
llvm-svn: 186966
|
| |
|
|
|
|
| |
It was fixed by r186603.
llvm-svn: 186962
|
| |
|
|
| |
llvm-svn: 186955
|
| |
|
|
|
|
| |
...and hopefully, finally, unbreak buildbots.
llvm-svn: 186953
|
| |
|
|
|
|
| |
This plus Rafael's fix at r186943 should keep all the buildbots happy.
llvm-svn: 186950
|
| |
|
|
| |
llvm-svn: 186949
|
| |
|
|
| |
llvm-svn: 186947
|
| |
|
|
|
|
| |
Sorry about forgetting to include this in the previous patch.
llvm-svn: 186946
|
| |
|
|
|
|
|
|
| |
This is still a fairly odd test. Clang wants to run gcc for assembling. At
least with -### it only prints that instead of actually trying to run it with
-ccc-echo.
llvm-svn: 186945
|
| |
|
|
|
|
| |
Adding missing test cases for the diagnostics.
llvm-svn: 186944
|
| |
|
|
| |
llvm-svn: 186943
|
| |
|
|
|
|
| |
Added a test case for the diagnostic.
llvm-svn: 186942
|
| |
|
|
|
|
| |
diagnostic. This makes the diagnostic more consistent.
llvm-svn: 186940
|
| |
|
|
|
|
| |
count reported matches reality.
llvm-svn: 186936
|
| |
|
|
|
|
|
| |
* Allow ns, us, ms, s, min, h as numeric ud-suffixes
* Allow s as string ud-suffix
llvm-svn: 186933
|
| |
|
|
|
|
|
|
| |
These are cases where a scalar type is "destructed", usually due to
template instantiation (e.g. "obj.~T()", where 'T' is 'int'). This has
no actual effect and the analyzer should just skip over it.
llvm-svn: 186927
|
| |
|
|
| |
llvm-svn: 186926
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The analyzer doesn't currently expect CFG blocks with terminators to be
empty, but this can happen when generating conditional destructors for
a complex logical expression, such as (a && (b || Temp{})). Moreover,
the branch conditions for these expressions are not persisted in the
state. Even for handling noreturn destructors this needs more work.
This reverts r186498.
llvm-svn: 186925
|
| |
|
|
|
|
|
|
| |
bool, half, pointers and structs / unions containing any
of these are not allowed. Does not yet reject size_t and
related integer types that are also disallowed.
llvm-svn: 186908
|
| |
|
|
|
|
| |
This should hopefully unbreak the Windows bots at http://bb.pgr.jp
llvm-svn: 186906
|
| |
|
|
| |
llvm-svn: 186905
|
| |
|
|
|
|
|
|
| |
Switch some warnings over to errors which should never have been warnings
in the first place. (Also, a minor fix to the preprocessor rules for
integer literals while I'm here.)
llvm-svn: 186903
|
| |
|
|
|
|
| |
rdar://problem/14386148
llvm-svn: 186901
|
| |
|
|
| |
llvm-svn: 186899
|
| |
|
|
|
|
|
|
| |
__byref_variable_layout.
rdar://problem/14386148
llvm-svn: 186898
|
| |
|
|
|
|
|
| |
protocols by ignoring cases where all protocol properties
and methods are optional.
llvm-svn: 186895
|