| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
an objectiveC object, use objc_exception_throw
to raise the exception. // rdar://12605907
llvm-svn: 172091
|
| |
|
|
|
|
|
|
|
|
|
| |
Not only is this inefficient for TableGen, it's annoying for maintenance
when renaming warning flags (unusual) or adding those flags to a group
(more likely).
This uses the new fix-it infrastructure for LLVM's SourceMgr/SMDiagnostic,
as well as a few changes to TableGen to track more source information.
llvm-svn: 172087
|
| |
|
|
|
|
|
| |
void f() {}
now gets formatted in one line.
llvm-svn: 172067
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before: int (^myBlock) (int) = ^(int num) {}
A<void ()>;
int (*b)(int);
After: int (^myBlock)(int) = ^(int num) {}
A<void()>;
int(*b)(int);
For function types and function pointer types, this patch only makes
the behavior consistent (for types that are keywords and other types).
For the latter function pointer type declarations, we'll probably
want to add a space after "int".
Also added LangOpts.Bool = 1, so we handle "A<bool()>" appropriately
Moved the LangOpts-settings to a public place for use by tests
and clang-format binary.
llvm-svn: 172065
|
| |
|
|
|
|
| |
the backend if hard float ABI is selected under -mips16 mode.
llvm-svn: 172062
|
| |
|
|
|
|
|
|
|
| |
modified
version of a test by Joey Gouly to use attributes to materialise the unsupported
types and test vector shifts.
llvm-svn: 172053
|
| |
|
|
|
|
| |
enabled this extension for multiple targets.
llvm-svn: 172052
|
| |
|
|
|
|
| |
PR14825!
llvm-svn: 172031
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously:
@protocol myProtocol
- (void)mandatoryWithInt:(int)i;
@optional - (void) optional;
@required - (void) required;
@end
Now:
@protocol myProtocol
- (void)mandatoryWithInt:(int)i;
@optional
- (void)optional;
@required
- (void)required;
@end
llvm-svn: 172023
|
| |
|
|
|
|
|
| |
Just reuse the @interface code for this. It accepts slightly more than
necessary (@implementation cannot have protocol lists), but that's ok.
llvm-svn: 172019
|
| |
|
|
|
|
|
|
|
|
|
|
| |
cases when
there are macro expansions inside macro arguments where the arguments are
not expanded in the same order as listed; don't assert that all macro expansions
are in source order.
rdar://12397063
llvm-svn: 172018
|
| |
|
|
|
|
|
|
|
| |
in case condition type. // rdar://11577384.
Test is conditionalized on x86_64-apple triple as
I am not sure if the INT_MAX/LONG_MAX values in the test
will pass this test for other hosts.
llvm-svn: 172016
|
| |
|
|
|
|
| |
Pull pieces of the @interface code into reusable methods.
llvm-svn: 172001
|
| |
|
|
|
|
|
| |
I wasn't aware libFormat is used elsewhere already. Let me know if rebasing
is not the right thing to do here.
llvm-svn: 171996
|
| |
|
|
|
|
|
|
| |
imaginary and real parts yet.
Fixes false positive reported in <rdar://problem/12964481>.
llvm-svn: 171987
|
| |
|
|
|
|
| |
Fixes pr14861.
llvm-svn: 171978
|
| |
|
|
|
|
| |
Before: int ( ^ Block1) (int, int) = ^ (int i, int j)
After: int (^Block1) (int, int) = ^(int i, int j)
llvm-svn: 171959
|
| |
|
|
| |
llvm-svn: 171947
|
| |
|
|
|
|
|
|
| |
-P" mode. <rdar://problem/12774044>
llvm-svn: 171944
|
| |
|
|
|
|
| |
<rdar://problem/12748859>.
llvm-svn: 171939
|
| |
|
|
|
|
|
|
|
|
| |
(because they are part of some module) but have not been made visible
(because they are in a submodule that wasn't imported), filter out
those declarations unless both the old declaration and the new
declaration have external linkage. When one or both has internal
linkage, there should be no conflict unless both are imported.
llvm-svn: 171925
|
| |
|
|
|
|
| |
in lambdas.
llvm-svn: 171921
|
| |
|
|
|
|
| |
global variable.
llvm-svn: 171919
|
| |
|
|
| |
llvm-svn: 171915
|
| |
|
|
|
|
|
|
| |
struct variables with flexiable array members in
blocks (and lambdas). Issue error instead of
crashing in IRGen. // rdar://12655829
llvm-svn: 171912
|
| |
|
|
| |
llvm-svn: 171908
|
| |
|
|
| |
llvm-svn: 171906
|
| |
|
|
| |
llvm-svn: 171899
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the source
static void f();
static void f();
template<typename T>
static void g() {
f();
}
static void f() {
}
void h() {
g<int>();
}
the call to f refers to the second decl, but it is only marked used at the end
of the translation unit during instantiation, after the third f decl has been
linked in.
With this patch we mark all subsequent decls used, so that it is easy to check
if a symbol is used or not.
llvm-svn: 171888
|
| |
|
|
|
|
|
| |
This makes us more optimistic when matching reports in a changing code
base. Addresses Jordan's feedback for r171825.
llvm-svn: 171884
|
| |
|
|
|
|
|
| |
attribute when determining whether we need to see an implementation of
a property. Fixes <rdar://problem/12958191>.
llvm-svn: 171877
|
| |
|
|
|
|
| |
about _Static_assert with -pedantic.
llvm-svn: 171860
|
| |
|
|
|
|
| |
Fixes pr14835.
llvm-svn: 171857
|
| |
|
|
|
|
| |
This hopefully fixes the ARM buildbot.
llvm-svn: 171853
|
| |
|
|
|
|
|
| |
The availability implies default visibility, so it can change the computed
visibility.
llvm-svn: 171840
|
| |
|
|
| |
llvm-svn: 171834
|
| |
|
|
|
|
| |
Fixes <rdar://problem/12322000>.
llvm-svn: 171831
|
| |
|
|
| |
llvm-svn: 171830
|
| |
|
|
|
|
|
|
|
| |
statements,
that the case does not "contain" a declaration that is referenced "outside" of it,
otherwise we will emit un-compilable code.
llvm-svn: 171828
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The issue here is that if we have 2 leaks reported at the same line for
which we cannot print the corresponding region info, they will get
treated as the same by issue_hash+description. We need to AUGMENT the
issue_hash with the allocation info to differentiate the two issues.
Add the "hash" (offset from the beginning of a function) representing
allocation site to solve the issue.
We might want to generalize solution in the future when we decide to
track more than just the 2 locations from the diagnostics.
llvm-svn: 171825
|
| |
|
|
|
|
| |
This gives more flexibility to what could be stored as issue_hash.
llvm-svn: 171824
|
| |
|
|
| |
llvm-svn: 171820
|
| |
|
|
|
|
|
| |
perform the semantic checks associated with the destruction of that temporary.
It'll be destroyed at the end of the constructor.
llvm-svn: 171818
|
| |
|
|
|
|
|
|
|
|
| |
The test should be looking for gcrt0.o not crt0.o. Clang was already printing
"gcrt0", but the test was looking for "{{.*}}crt0.o", and the .* regexp
consumed "g".
Patch by Brad Smith.
llvm-svn: 171815
|
| |
|
|
| |
llvm-svn: 171808
|
| |
|
|
| |
llvm-svn: 171801
|
| |
|
|
| |
llvm-svn: 171785
|
| |
|
|
|
|
| |
can create a VLA of class type. Fixes <rdar://problem/12151822>.
llvm-svn: 171783
|
| |
|
|
|
|
| |
Patch by Nick Lewycky. Fixes pr8703.
llvm-svn: 171781
|
| |
|
|
|
|
|
| |
list of classes, etc., make sure to look into protocol
definitions. // rdar://12958878
llvm-svn: 171777
|