| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
but the condition is the same either way.
llvm-svn: 129948
|
| |
|
|
|
|
|
|
|
|
|
| |
instance, in the following code, 'case ' will be suggested before the '1:'
switch (x) {
1: return 0;
default: return 1;
}
llvm-svn: 129943
|
| |
|
|
| |
llvm-svn: 129941
|
| |
|
|
|
|
| |
can't be represented in the environment define.
llvm-svn: 129939
|
| |
|
|
|
|
|
|
| |
designated initializers,
avoiding to create separate Exprs for each one.
llvm-svn: 129933
|
| |
|
|
| |
llvm-svn: 129929
|
| |
|
|
|
|
|
|
| |
the first step towards a standalone Clang tool infrastructure.
The plan is to make it easy to build command line tools that run over
the AST of source files in a project outside of the build system.
llvm-svn: 129924
|
| |
|
|
|
|
|
| |
unknown and "required more arguments", but only the latter should be feasible in
practice.
llvm-svn: 129919
|
| |
|
|
| |
llvm-svn: 129918
|
| |
|
|
|
|
| |
tag name. Fixes rdar://9295072
llvm-svn: 129917
|
| |
|
|
|
|
| |
rdar://9308989.
llvm-svn: 129916
|
| |
|
|
| |
llvm-svn: 129907
|
| |
|
|
|
|
|
| |
of which break strict compatibility with previous compilers. Implement
one of them and then immediately opt out on Darwin.
llvm-svn: 129899
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
double data[20000000] = {0};
we would blow out the memory by creating 20M Exprs to fill out the initializer.
To fix this, if the initializer list initializes an array with more elements than
there are initializers in the list, have InitListExpr store a single 'ArrayFiller' expression
that specifies an expression to be used for value initialization of the rest of the elements.
Fixes rdar://9275920.
llvm-svn: 129896
|
| |
|
|
| |
llvm-svn: 129894
|
| |
|
|
| |
llvm-svn: 129892
|
| |
|
|
| |
llvm-svn: 129891
|
| |
|
|
|
|
|
|
| |
adjust the a ending macro location to the end of the instantiation
location before adjusting it to the end of the token. Fixes
<rdar://problem/9021561>.
llvm-svn: 129872
|
| |
|
|
|
|
| |
architectures for triples, e.g. ptx32-unknown-unknown
llvm-svn: 129870
|
| |
|
|
| |
llvm-svn: 129866
|
| |
|
|
|
|
|
| |
access expression that appears to be a property reference. Fixes
<rdar://problem/8985943>.
llvm-svn: 129865
|
| |
|
|
|
|
|
|
| |
alignment, which causes traps further down the line. Fixes
<rdar://problem/9109755>, which contains a test case far too large to
commit :(
llvm-svn: 129861
|
| |
|
|
|
|
|
|
| |
out-of-line destructors can result in the addition of redundant
destructors to a class. It's not harmful to the AST. Fixes
<rdar://problem/9158632>.
llvm-svn: 129860
|
| |
|
|
| |
llvm-svn: 129857
|
| |
|
|
| |
llvm-svn: 129856
|
| |
|
|
| |
llvm-svn: 129853
|
| |
|
|
|
|
| |
rewriter, from Eric Niebler!
llvm-svn: 129849
|
| |
|
|
|
|
|
|
| |
during deserialization from a precompiled header, and update all of
its callers to note when this problem occurs and recover (more)
gracefully. Fixes <rdar://problem/9119249>.
llvm-svn: 129839
|
| |
|
|
| |
llvm-svn: 129835
|
| |
|
|
| |
llvm-svn: 129834
|
| |
|
|
|
|
|
|
| |
were computing the conversion as (ptr != 0 && non-virtual), when it should be
(ptr != 0 || is-virtual).
- Test to follow in LLVM test-suite.
llvm-svn: 129830
|
| |
|
|
| |
llvm-svn: 129829
|
| |
|
|
| |
llvm-svn: 129824
|
| |
|
|
| |
llvm-svn: 129823
|
| |
|
|
|
|
| |
// rdar://9132143
llvm-svn: 129822
|
| |
|
|
| |
llvm-svn: 129820
|
| |
|
|
|
|
| |
redundancy pointed out by John.
llvm-svn: 129808
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
warnings diverge from
gcc's unused warnings which don't get emitted if the function is referenced even in an unevaluated context
(e.g. in templates, sizeof, etc.). Also, saying that a function is 'unused' because it won't get codegen'ed
is somewhat misleading.
- Don't emit 'unused' warnings for functions that are referenced in any part of the user's code.
- A warning that an internal function/variable won't get emitted is useful though, so introduce
-Wunneeded-internal-declaration which will warn if a function/variable with internal linkage is not
"needed" ('used' from the codegen perspective), e.g:
static void foo() { }
template <int>
void bar() {
foo();
}
test.cpp:1:13: warning: function 'foo' is not needed and will not be emitted
static void foo() { }
^
Addresses rdar://8733476.
llvm-svn: 129794
|
| |
|
|
|
|
|
|
|
| |
CL_AddressableVoid is the expression classification used for void
expressions whose address can be taken, i.e. the result of [], *
or void variable references in C, as opposed to things like the
result of a void function call.
llvm-svn: 129783
|
| |
|
|
| |
llvm-svn: 129750
|
| |
|
|
|
|
| |
pointers. Fixes PR9746.
llvm-svn: 129741
|
| |
|
|
| |
llvm-svn: 129740
|
| |
|
|
|
|
| |
always need.
llvm-svn: 129734
|
| |
|
|
| |
llvm-svn: 129733
|
| |
|
|
|
|
| |
.c file.
llvm-svn: 129732
|
| |
|
|
|
|
|
|
| |
This is a WIP. Currently we report
the amount used for expressions, types, identifiers, and selectors.
llvm-svn: 129730
|
| |
|
|
|
|
| |
is bump allocated for declarations, statements, and types.
llvm-svn: 129729
|
| |
|
|
|
|
| |
memory is used by selectors.
llvm-svn: 129728
|
| |
|
|
| |
llvm-svn: 129721
|
| |
|
|
|
|
|
|
| |
of conditional expressions of objc pointer types
where one type is the immediate base type of the
other. // rdar://9296866
llvm-svn: 129718
|