Matt Beaumont-Gay
531c079de8
ASTStmtReader is already a friend of DependentScopeDeclRefExpr, and GCC
...
doesn't like re-friending.
llvm-svn: 126524
2011-02-25 22:36:42 +00:00
Ted Kremenek
e925322f41
Update test cases.
...
llvm-svn: 126523
2011-02-25 22:19:14 +00:00
Ted Kremenek
5eb4b60734
Tidy up help text in Checkers.td, and rename StackAddrLeakChecker to StackAddrEscapeChecker.
...
llvm-svn: 126522
2011-02-25 22:00:43 +00:00
Ted Kremenek
27fdf0feda
Enhance scan-build to print out available analyses using new checker registration model.
...
This isn't totally complete. Right now scan-build uses some heuristics to determine
which checkers are enabled by default, but it cannot always tell which checkers
are not enabled.
llvm-svn: 126521
2011-02-25 22:00:40 +00:00
Owen Anderson
b2c80da4ae
Allow targets to specify a the type of the RHS of a shift parameterized on the type of the LHS.
...
llvm-svn: 126518
2011-02-25 21:41:48 +00:00
Johnny Chen
51433bf688
Renamed the Python test file to be TestProcessLaunch.py.
...
llvm-svn: 126517
2011-02-25 21:37:56 +00:00
Johnny Chen
80180e1257
Renamed the test class to be ProcessLaunchTestCase.
...
llvm-svn: 126516
2011-02-25 21:36:35 +00:00
Johnny Chen
40b328ca48
Simplified the code a little bit.
...
llvm-svn: 126515
2011-02-25 21:32:36 +00:00
Johnny Chen
f85c0eb65d
Renamed test/process_io directory to test/process_launch, in preparation to add additional tests
...
related to 'process launch' command.
llvm-svn: 126514
2011-02-25 21:21:21 +00:00
Daniel Dunbar
5480578d83
Driver: Attmpt to fix some possibly UB that MSVC doesn't care for.
...
llvm-svn: 126513
2011-02-25 21:20:15 +00:00
David Greene
c136bc69ce
Add some options for building LLVM in different environments:
...
--force-configure to force running configure before building.
--extra-llvm-config-flags
--extra-llvm-gcc-config-flags
--extra-gcc-config-flags
Pass additional argument to the various configure invocations.
This also eliminates a default build flavor because explicitly
specifying builds could result in build flavors being run repeatedly.
Finally, turn off fortran builds for the moment because install
appears to be broken.
llvm-svn: 126510
2011-02-25 20:51:27 +00:00
Fariborz Jahanian
e6b127d7da
Sprinkle optional text of the "unavailable' attribute
...
where ever such attribute causes an error diagnostic.
llvm-svn: 126509
2011-02-25 20:51:14 +00:00
Douglas Gregor
3a43fd645d
Push nested-name-specifier source location information into
...
DependentScopeDeclRefExpr. Plus, give NestedNameSpecifierLoc == and !=
operators, since we're going to need 'em elsewhere.
llvm-svn: 126508
2011-02-25 20:49:16 +00:00
Stuart Hastings
e167360a45
Omit lto.h from the llvmCore result; henceforth, this will be supplied
...
by clang. Radar 9042056.
llvm-svn: 126507
2011-02-25 20:42:39 +00:00
Chandler Carruth
20d0fee3f4
Clean up some gross code in the printer here. No more string stream
...
silliness, and actually use the existing facilities of raw_ostream to do
escaping.
This will also hopefully fix an assert when building with signed char
(MSVC I think).
llvm-svn: 126505
2011-02-25 20:09:13 +00:00
Howard Hinnant
a8d8ca4d6f
http://llvm.org/bugs/show_bug.cgi?id=9326
...
llvm-svn: 126504
2011-02-25 19:52:41 +00:00
Chandler Carruth
301416380e
Remove the FIXME I introduced last night, and pull the logic for
...
marking selected overloads into the callers. This allows a few callers
to skip it altogether (they would have anyways because they weren't
interested in successful overloads) or defer until after further checks
take place much like the check required for PR9323 to avoid marking
unused copy constructors.
llvm-svn: 126503
2011-02-25 19:41:05 +00:00
Douglas Gregor
be8705bd3f
CMake: add version information into the clang executable and libclang
...
shared library.
llvm-svn: 126502
2011-02-25 19:24:02 +00:00
Matt Beaumont-Gay
f4aec20e97
s/clang-cc1/clang_cc1
...
llvm-svn: 126501
2011-02-25 19:09:01 +00:00
Chris Lattner
78178749e9
split this test into arch specific pieces, so the ARM
...
test isn't run when the arm backend isn't built. This
fixes PR9327
llvm-svn: 126500
2011-02-25 19:06:35 +00:00
Fariborz Jahanian
bff158dc67
Print optional message for attr(unavailable) in C++ mode.
...
// rdar://9046492
llvm-svn: 126499
2011-02-25 18:38:59 +00:00
Douglas Gregor
a6ce608b97
Push nested-name-specifier source-location information into
...
pseudo-destructor expressions. Also, clean up some
template-instantiation and type-checking issues with
pseudo-destructors.
llvm-svn: 126498
2011-02-25 18:19:59 +00:00
Fariborz Jahanian
40c5e1ada7
Teach objc-rewriter to pass -fobjc-exceptions along.
...
llvm-svn: 126497
2011-02-25 17:24:55 +00:00
Douglas Gregor
c05ba2ef12
Push nested-name-specifier source location information into namespace
...
aliases.
llvm-svn: 126496
2011-02-25 17:08:07 +00:00
Douglas Gregor
6f8af8ac39
Make sure to give CXXScopeSpec::SetInvalid() a valid source
...
range. Fixes four new failures in the GCC testsuite.
llvm-svn: 126495
2011-02-25 16:51:05 +00:00
Douglas Gregor
12441b3bc5
Push nested-name-specifier source location information into using directives.
...
llvm-svn: 126489
2011-02-25 16:33:46 +00:00
Cameron Zwarich
fcf51fd298
Roll out r126425 and r126450 to see if it fixes the failures on the buildbots.
...
llvm-svn: 126488
2011-02-25 16:30:32 +00:00
Douglas Gregor
f29ba48c7f
Direct testing of source-location information on using declarations, via libclang
...
llvm-svn: 126487
2011-02-25 16:13:46 +00:00
Douglas Gregor
1017641937
Switch a few CXXScopeSpec::MakeTrivial() calls over to appropriate
...
NestedNameSpecifierLoc handling.
llvm-svn: 126486
2011-02-25 16:07:42 +00:00
Douglas Gregor
0499ab6c35
Maintain nested-name-specifier source-location information through
...
instantiation of using declarations (all three forms).
llvm-svn: 126485
2011-02-25 15:54:31 +00:00
Peter Collingbourne
54f43b87dc
Rename test/Sema/expr-comma-c89.c to expr-comma-c99.c. Spotted by
...
Anton Lokhmotov.
llvm-svn: 126482
2011-02-25 12:37:11 +00:00
Benjamin Kramer
ceb5daa567
Revert "SimplifyCFG: GEPs with just one non-constant index are also cheap."
...
Yes, there are other types than i8* and GEPs on them can produce an add+multiply.
We don't consider that cheap enough to be speculatively executed.
llvm-svn: 126481
2011-02-25 10:33:33 +00:00
Chandler Carruth
a28097da4f
Rough fix for PR9323 that prevents Clang from marking copy constructor
...
declarations as referenced when in fact we're not going to even form
a call in the AST. This is significant because we attempt to allow as an
extension classes with intentionally private and undefined copy
constructors to have temporaries bound to references, and so shouldn't
warn about the lack of definition for that copy constructor when the
class is internal.
Doug, John wasn't really satisfied with the presence of overloading at
all. This is a stop-gap and there may be a better solution. If you can
give me some hints for how you'd prefer to see this solved, I'll happily
switch things over.
llvm-svn: 126480
2011-02-25 08:52:25 +00:00
Nick Lewycky
aa06169f7c
Update the NoFolder to work with current IRBuilder.
...
llvm-svn: 126479
2011-02-25 07:13:35 +00:00
Chandler Carruth
ebd3375ba2
Give this warning a flag that can be used to turn it off in old, crufty,
...
legacy code that contains dead code paths referring to such
declarations.
llvm-svn: 126478
2011-02-25 06:53:20 +00:00
Bob Wilson
e3ecd5fb9b
Add patterns to use post-increment addressing for Neon VST1-lane instructions.
...
llvm-svn: 126477
2011-02-25 06:42:42 +00:00
Chandler Carruth
6a4e8e38f2
Add support for ArchLinux, patch by Kevin Winchester.
...
llvm-svn: 126476
2011-02-25 06:39:53 +00:00
John McCall
a2c4e72a55
Formatting, etc.
...
llvm-svn: 126475
2011-02-25 05:21:17 +00:00
John McCall
1b93f1ba9f
Tame an assert; the scope depth of a jump destination does not
...
necessarily enclose the innermost normal cleanup depth, because
the top of the jump scope stack might be an EH cleanup or EH scope.
Fixes PR9303.
llvm-svn: 126472
2011-02-25 04:19:13 +00:00
Jim Grosbach
14a07365cb
Fix formatting of debug helper string.
...
llvm-svn: 126471
2011-02-25 03:59:03 +00:00
Douglas Gregor
144548072d
Use NestedNameSpecifierLoc within out-of-line variables, function, and
...
tag definitions. Also, add support for template instantiation of
NestedNameSpecifierLocs.
llvm-svn: 126470
2011-02-25 02:25:35 +00:00
Johnny Chen
0e65ce3de8
Add readme on the version of emacs that works with lldb-enhanced gud.el,
...
for Stuart Hastings. :-)
llvm-svn: 126469
2011-02-25 01:51:25 +00:00
Evan Cheng
a921dc5860
Fix typo.
...
llvm-svn: 126467
2011-02-25 01:29:29 +00:00
Ted Kremenek
b6f9ab6378
Teach TextDiagnosticPrinter to print out '-Werror' in addition to the warning flag for a warning mapped to an error.
...
For example:
t.c:7:9: error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses]
llvm-svn: 126466
2011-02-25 01:28:26 +00:00
Cameron Zwarich
4c82cd21ed
Set NumSignBits to 1 if KnownZero/KnownOne are being zero extended. In theory it
...
is possible to do better if the high bit is set in either KnownZero/KnownOne, but
in practice NumSignBits is always 1 when we are zero extending because nothing
is known about that register.
llvm-svn: 126465
2011-02-25 01:11:01 +00:00
Cameron Zwarich
d2f3041c7f
We only want to zero extend the existing information if the bit width is
...
actually larger.
llvm-svn: 126464
2011-02-25 01:10:55 +00:00
Jakob Stoklund Olesen
9918b33451
Try harder to get the hint by preferring to evict hint interference.
...
llvm-svn: 126463
2011-02-25 01:04:22 +00:00
Howard Hinnant
0c68ed006d
Chris Jefferson spotted a problem with messages_base::catalog while getting libc++ to work on boost. The standard says this type must be an int. But this type is the key returned by the OS facility catopen. On OS X the type returned by catopen is void*, which doesn't fit into an int on 64 bit platforms. Chris suggested using ptrdiff_t instead of void*. It still isn't compliant with the standard, but chances are that this change will fix what is ailing boost. Chris also supplied the algorithm for distinguishing high-order pointers from error conditions. Thanks Chris.
...
llvm-svn: 126462
2011-02-25 00:51:08 +00:00
Douglas Gregor
4d0779a754
Nth time's a charm?
...
llvm-svn: 126461
2011-02-25 00:46:48 +00:00
Douglas Gregor
61e58aecbc
CMake target check.deps only exists when LLVM_INCLUDE_TESTS
...
llvm-svn: 126460
2011-02-25 00:43:05 +00:00