| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 158091
|
|
|
|
|
|
| |
-Wunused-private-field.
llvm-svn: 158086
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In standard C since C89, a 'translation-unit' is syntactically defined to have
at least one "external-declaration", which is either a decl or a function
definition. In Clang the latter gives us a declaration as well.
The tricky bit about this warning is that our predefines can contain external
declarations (__builtin_va_list and the 128-bit integer types). Therefore our
AST parser now makes sure we have at least one declaration that doesn't come
from the predefines buffer.
Also, remove bogus warning about empty source files. This doesn't catch source
files that only contain comments, and never fired anyway because of our
predefines.
PR12665 and <rdar://problem/9165548>
llvm-svn: 158085
|
|
|
|
|
|
|
|
| |
harmful even by Microsoft people and clang won't build using the MSVC 2012 RC if not removed.
Only 1 minor code change was necessary: can't use cdecl as variable name anymore.
llvm-svn: 158063
|
|
|
|
|
|
|
| |
unused private fields of classes that are fully defined in the current
translation unit.
llvm-svn: 158054
|
|
|
|
|
|
|
|
| |
to see more of the path
to discover how a value was used uninitialized.
llvm-svn: 158048
|
|
|
|
|
|
| |
parameter pack is a converting constructor. Fixes PR13003.
llvm-svn: 158040
|
|
|
|
|
|
|
|
| |
locations, forcing
adjacent edges to have compatible ranges. This simplifies the layout logic for some clients.
llvm-svn: 158028
|
|
|
|
|
|
|
| |
the overriding deprecated/unavailable method.
// rdar://11475360
llvm-svn: 158022
|
|
|
|
| |
llvm-svn: 158017
|
|
|
|
|
|
|
|
| |
As the failing testcase has been fixed.
This reverts commit 0637f407e6ee7fdccde17fbf9a5fcc4853187b3e.
llvm-svn: 158009
|
|
|
|
|
|
| |
when single float ABI is selected.
llvm-svn: 157996
|
|
|
|
|
|
|
| |
This reverts r157970, which was not passing on
clang-x86_64-darwin10-nobootstrap-RA
llvm-svn: 157983
|
|
|
|
|
|
|
|
|
| |
not much reason to emit for constructors and destructors that aren't
user defined.
rdar://11593099
llvm-svn: 157970
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Within the guts of CheckFormatHandler, the IsObjCLiteral flag was being used in
two ways: to see if null bytes were allowed, and to see if the '%@' specifier
is allowed.* The former usage has been changed to an explicit test and the
latter pushed down to CheckPrintfHandler and renamed ObjCContext, since it
applies to CFStrings as well.
* This also changes how wide chars are interpreted; in OS X Foundation, the
wide character type is 'unichar', a typedef for short, rather than wchar_t.
llvm-svn: 157968
|
|
|
|
| |
llvm-svn: 157962
|
|
|
|
| |
llvm-svn: 157961
|
|
|
|
| |
llvm-svn: 157959
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
temporary or an array subobject of a class temporary, and the resulting value
is used to initialize a pointer which outlives the temporary. Such a pointer
is always left dangling after the initialization completes and the array's
lifetime ends.
In order to detect this situation, this change also adds an
LValueClassification of LV_ArrayTemporary for temporaries of array type which
aren't subobjects of class temporaries. These occur in C++11 T{...} and GNU C++
(T){...} expressions, when T is an array type. Previously we treated the former
as a generic prvalue and the latter as a class temporary.
llvm-svn: 157955
|
|
|
|
|
|
|
|
| |
been declared on NSArray/NSDictionary.
rdar://11581975
llvm-svn: 157951
|
|
|
|
|
|
|
| |
This bug was triggered by r157851. It only happens in the case where we
don't perform optimal diagnostic pruning.
llvm-svn: 157950
|
|
|
|
|
|
|
| |
message receiver is 'weak' property.
// rdar://10225276
llvm-svn: 157946
|
|
|
|
|
|
| |
tool's binary contains sym-links.
llvm-svn: 157944
|
|
|
|
|
|
| |
as it no longer applies.
llvm-svn: 157943
|
|
|
|
| |
llvm-svn: 157933
|
|
|
|
| |
llvm-svn: 157923
|
|
|
|
| |
llvm-svn: 157913
|
|
|
|
|
|
|
|
| |
involving 'restrict', place restrict on the pointer type rather than
on the pointee type. Also make sure that we gather restrict from the
pointer type. Fixes PR12854 and the major part of PR11093.
llvm-svn: 157910
|
|
|
|
| |
llvm-svn: 157907
|
|
|
|
|
|
| |
types defined.
llvm-svn: 157906
|
|
|
|
| |
llvm-svn: 157904
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before:
test.cc:2:18: note: place parentheses around the == expression to silence this warning
if (0 == flags & 0xdd)
^
( )
Now:
test.cc:2:18: note: place parentheses around the == expression to silence this warning
if (0 == flags & 0xdd)
^
( )
llvm-svn: 157897
|
|
|
|
|
|
|
|
|
|
|
| |
constructor
so we can destroy it even if it was constructed with "DelayInitialization = true",
and we didn't end up calling Preprocessor::Initialize.
Fixes crashes in rdar://11558355
llvm-svn: 157892
|
|
|
|
|
|
| |
path.
llvm-svn: 157889
|
|
|
|
|
|
|
| |
-mhard-float, and -mfloat-abi= to the new function getMipsFloatABI. That
simplifies reuse of this code.
llvm-svn: 157888
|
|
|
|
| |
llvm-svn: 157886
|
|
|
|
|
|
| |
diagnostics: -Wimplicit-fallthrough-per-method
llvm-svn: 157871
|
|
|
|
|
|
|
|
| |
explicitly.
This will make it easier to add inlining support to more expressions.
llvm-svn: 157870
|
|
|
|
|
|
|
|
|
|
|
|
| |
When we timeout or exceed a max number of blocks within an inlined
function, we retry with no inlining starting from a node right before
the CallEnter node. We assume the state of that node is the state of the
program before we start evaluating the call. However, the node pruning
removes this node as unimportant.
Teach the node pruning to keep the predecessors of the call enter nodes.
llvm-svn: 157860
|
|
|
|
|
|
|
| |
We should not stop exploring the path after we return from an empty
function.
llvm-svn: 157859
|
|
|
|
| |
llvm-svn: 157851
|
|
|
|
| |
llvm-svn: 157833
|
|
|
|
|
|
|
|
| |
but different nested name specifiers to quietly clobber each other so
only one remains if they do not refer to the same NamedDecl. Fixes
PR12951.
llvm-svn: 157823
|
|
|
|
|
|
| |
Part of rdar://11570854
llvm-svn: 157787
|
|
|
|
|
|
|
|
|
|
| |
__bridge_retained/__bridge_transfer
when migrating.
rdar://11569198
llvm-svn: 157785
|
|
|
|
|
|
| |
unevaluated field in C++11 mode. This fixes PR12866.
llvm-svn: 157784
|
|
|
|
|
|
|
|
|
|
| |
the confusion among all of the uses of Best* in relation to the set of
possible typo correction results. Also add a method to return the set of
typo corrections that have the single best edit distance--it returns the
second half of the first pair in TypoEditDistanceMap (with
getBestEditDistance already returning the first half).
llvm-svn: 157781
|
|
|
|
|
|
|
| |
have correct pointer type or issue error,
instead of crashing in IRGen. // rdar:// 11569860
llvm-svn: 157780
|
|
|
|
| |
llvm-svn: 157772
|
|
|
|
|
|
|
|
|
|
| |
We should lock the number of elements after the initial parsing is
complete. Recursive AST visitors in AnalyzesConsumer and CallGarph can
trigger lazy pch deserialization resulting in more calls to
HandleTopLevelDecl and appending to the LocalTUDecls list. We should
ignore those.
llvm-svn: 157762
|