Dmitri Gribenko
47f622d414
Comment parser unit tests: split a huge test case
...
llvm-svn: 160649
2012-07-23 23:37:11 +00:00
Rafael Espindola
75419dc151
Make classifyReturnType and classifyArgumentType private.
...
llvm-svn: 160648
2012-07-23 23:30:29 +00:00
Dmitri Gribenko
89630bce27
Comment parser unit tests: reduce code duplication
...
llvm-svn: 160647
2012-07-23 23:09:32 +00:00
Richard Smith
45fbfc7f11
Do not warn about a function decl / direct init ambiguity if the function has a trailing return type.
...
llvm-svn: 160646
2012-07-23 21:41:30 +00:00
Eric Christopher
2ce6541f3b
Fix a "Bad fd number" error on some platforms due to a less portable
...
redirection in the system call.
Patch by Andy Gibbs.
llvm-svn: 160644
2012-07-23 20:54:17 +00:00
Nuno Lopes
eb9d2755b2
make ConstantRange::zeroExtend() optimal
...
llvm-svn: 160643
2012-07-23 20:33:29 +00:00
Richard Trieu
1feac1cef9
Add operator== to APSInt. This will compare the signed bit before doing
...
the comparison. This prevents large unsigned integers from being equal to
signed negative integers of the same bit width.
llvm-svn: 160642
2012-07-23 20:24:23 +00:00
Richard Trieu
c320c745cc
Change APInt to APSInt in one instance. Also change a call to operator==() to
...
APSInt::isSameValue() when comparing different sized APSInt's.
llvm-svn: 160641
2012-07-23 20:21:35 +00:00
Dmitri Gribenko
e3942ef9a4
add AST unittests to CMake build system
...
llvm-svn: 160640
2012-07-23 20:11:34 +00:00
Eric Christopher
118c1961ae
Fix this for gdb 7.4.
...
Patch by Andy Gibbs.
llvm-svn: 160639
2012-07-23 19:41:58 +00:00
Dmitri Gribenko
378458d597
libclang comments AST: clang_ParamCommandComment_getParamName: don't assert
...
when a \param command does not have a parameter name, just return an empty
string instead.
llvm-svn: 160638
2012-07-23 19:41:49 +00:00
Dan Gohman
f64ff8ed3a
An objc_retain can serve as a may-use for a different pointer.
...
rdar://11931823.
llvm-svn: 160637
2012-07-23 19:27:31 +00:00
Akira Hatanaka
adec58c091
Add comment for relocations MO_HIGHER and HIGHEST in MipsBaseInfo.h.
...
llvm-svn: 160636
2012-07-23 19:19:20 +00:00
Michael Han
3be3b44cdb
Refactor handler functions for thread safety attributes.
...
Make handler functions for thread safety attributes consistent with other attributes handler functions
by removing the bool parameter from some of the thread safety attributes handler functions and extracting
common checks out of different handler functions.
llvm-svn: 160635
2012-07-23 18:48:41 +00:00
Dmitri Gribenko
4b7f5fe572
Comment Sema: refactor handling of 'ParmVarDecl's and save them in Sema members.
...
llvm-svn: 160634
2012-07-23 17:40:30 +00:00
Dmitri Gribenko
d73e4ce992
Comment AST: add InlineContentComment::RenderKind to specify a default
...
rendering mode for clients that don't want to interpret Doxygen commands.
Also add a libclang API to query this information.
llvm-svn: 160633
2012-07-23 16:43:01 +00:00
Micah Villmow
9eedce1e7c
Test revert of test changes.
...
llvm-svn: 160632
2012-07-23 16:42:45 +00:00
Micah Villmow
780c24f19c
Test commit.
...
llvm-svn: 160631
2012-07-23 16:37:24 +00:00
Alexander Potapenko
51e6488b31
Intercept CFAllocator for each thread in the program.
...
Test that child threads use the ASan allocator, that allocated memory can be passed to another thread and deallocated on it.
This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=81
llvm-svn: 160630
2012-07-23 14:07:58 +00:00
Nadav Rotem
1088811c33
Suppress a warning.
...
llvm-svn: 160629
2012-07-23 13:44:15 +00:00
Timur Iskhodzhanov
49b52efab1
Follow-up: fix the quotes
...
llvm-svn: 160626
2012-07-23 09:43:03 +00:00
Timur Iskhodzhanov
284f98414b
Replace wrong CHECK array mangling expectations with correct CHECK-NOT+FIXME (PR13182)
...
llvm-svn: 160625
2012-07-23 09:32:54 +00:00
Alexey Samsonov
37d5134f38
[ASan] minor fixes to silence cmake build warnings
...
llvm-svn: 160624
2012-07-23 09:11:58 +00:00
Nadav Rotem
7f829e4d32
Doxygenify the comments of ISD nodes.
...
llvm-svn: 160623
2012-07-23 09:04:00 +00:00
Sylvestre Ledru
830885ca64
Fix a typo (the the => the)
...
llvm-svn: 160622
2012-07-23 08:59:39 +00:00
Sylvestre Ledru
35521e2310
Fix a typo (the the => the)
...
llvm-svn: 160621
2012-07-23 08:51:15 +00:00
Alexander Potapenko
7f3e84c9fd
For wild addresses in the shadow or shadow gap areas print an error message instead of crashing on a check.
...
Add AddressSanitizer.MemsetWildAddressTest that makes sure a proper error message is printed.
llvm-svn: 160620
2012-07-23 08:22:27 +00:00
Nadav Rotem
9056076cab
Fixed DAGCombine optimizations which generate select_cc for targets
...
that do not support it (X86 does not lower select_cc).
PR: 13428
Together with Michael Kuperstein <michael.m.kuperstein@intel.com>
llvm-svn: 160619
2012-07-23 07:59:50 +00:00
Richard Smith
87f5dc53b2
Add diagnostics for comma at end of enum and for extra semicolon at namespace
...
scope to -Wc++11-extensions. Move extra semicolon after member function
definition diagnostic out of -pedantic, since C++ allows a single semicolon
there. Keep it in -Wextra-semi, though, since it's still questionable.
llvm-svn: 160618
2012-07-23 05:45:25 +00:00
Craig Topper
2694c05e86
Tidy up. Fix indentation and remove trailing whitespace.
...
llvm-svn: 160617
2012-07-23 05:38:07 +00:00
Craig Topper
b49546a3b3
Change llvm_unreachable in SplitVectorResult to report_fatal_error. Keeps release builds from crashing if code uses an intrinsic with an illegal type. For instance 256-bit AVX intrinsics without having AVX enabled.
...
llvm-svn: 160616
2012-07-23 04:34:49 +00:00
Douglas Gregor
6fa6942dda
When we have an Objective-C object with non-trivial lifetime in a
...
structor class under ARC, that struct/class does not have a trivial
move constructor or move assignment operator. Fixes the rest of
<rdar://problem/11738725>.
llvm-svn: 160615
2012-07-23 04:23:39 +00:00
Richard Smith
505df2340a
PR12917: Remove incorrect assumption that lambda mangling information cannot
...
change once it's been assigned. It can change in two ways:
1) In a template instantiation, the context declaration should be the
instantiated declaration, not the declaration in the template.
2) If a lambda appears in the pattern of a variadic pack expansion, the
mangling number will depend on the pack length.
llvm-svn: 160614
2012-07-22 23:45:10 +00:00
Francois Pichet
f5b24e0136
Allow the parser to recover gracefully if a typename is used to introduce a decltype type.
...
In Microsoft mode, we emit a warning instead of an error.
This fixes a couple of errors when parsing the MSVC 11 RC headers with clang.
llvm-svn: 160613
2012-07-22 15:10:57 +00:00
Francois Pichet
0e2b84312f
char16_t and char32_t are defined via typedef in MSVC 11 RC. So introduce a way to disable keywords under Microsoft mode.
...
llvm-svn: 160612
2012-07-22 11:32:41 +00:00
Chandler Carruth
c8acd7c96b
Move the initialization of the bounds checking pass. The pass itself
...
moved earlier. This fixes some layering issues.
llvm-svn: 160611
2012-07-22 05:19:32 +00:00
NAKAMURA Takumi
b5b4d8b06b
ExecutionEngine/TargetSelect.cpp: Override default triple as LLVM_HOSTTRIPLE.
...
In current implementation, JIT should run only on host.
llvm-svn: 160610
2012-07-22 03:04:57 +00:00
NAKAMURA Takumi
43652ae0de
autoconf: Re-introduce LLVM_HOSTTRIPLE since r143500, as rework of PR11060.
...
cmake: Add LLVM_HOSTTRIPLE. For now, it is same as TARGET_TRIPLE.
llvm-svn: 160609
2012-07-22 03:04:52 +00:00
Howard Hinnant
9d772d17b3
Apple LWG 2067: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3318.html#2067 . This is the only actionable change that has been made to the C++ draft since C++11. In general it has not been decided exactly how libc++ will track changes made to C++11. New features and design changes will probably be #ifdef'd, especially if they are not backwards compatible. Defects and 'dumb mistakes' are more likely to just be put in. Decisions on telling one from the other will be made on a case by case basis.
...
llvm-svn: 160608
2012-07-21 19:34:12 +00:00
Howard Hinnant
a4820bc4d5
noexcept applied to <future>.
...
llvm-svn: 160607
2012-07-21 17:46:55 +00:00
Howard Hinnant
36101a5b0a
noexcept applied to <thread>.
...
llvm-svn: 160606
2012-07-21 16:50:47 +00:00
Howard Hinnant
45c663db4e
noexcept applied to <condition_variable>.
...
llvm-svn: 160605
2012-07-21 16:32:53 +00:00
Howard Hinnant
02e610ef34
noexcept and constexpr applied to <mutex>.
...
llvm-svn: 160604
2012-07-21 16:13:09 +00:00
Nick Lewycky
9669c198ba
Revert r160602.
...
llvm-svn: 160603
2012-07-21 09:03:15 +00:00
Nick Lewycky
72b83e5eaa
Teach globalopt to play nice with leak checkers. This is a reapplication of
...
r160529 that was subsequently reverted. The fix was to not call
GV->eraseFromParent() right before the caller does the same. The existing
testcases already caught this bug if run under valgrind.
llvm-svn: 160602
2012-07-21 08:29:45 +00:00
Akira Hatanaka
f72efdb62f
Fix Mips long branch pass.
...
This pass no longer requires that the global pointer value be saved to the
stack or register since it uses bal instruction to compute branch distance.
llvm-svn: 160601
2012-07-21 03:30:44 +00:00
Dmitri Gribenko
565a680963
Comment AST nodes: add NumHTMLStartTagCommentBits member.
...
llvm-svn: 160600
2012-07-21 03:10:43 +00:00
Akira Hatanaka
6035fe78c7
Add HIGHER and HIGHEST relocations to Mips backend.
...
llvm-svn: 160599
2012-07-21 03:09:04 +00:00
Akira Hatanaka
b49c68a65d
Revert accidental commit.
...
llvm-svn: 160598
2012-07-21 02:20:33 +00:00
Akira Hatanaka
f73e362758
Add VK_Mips_HIGHER and VK_Mips_HIGHEST to MCSymbolRefExpr::VariantKind.
...
Test case will be added later when long branch patch is checked in.
llvm-svn: 160597
2012-07-21 02:15:19 +00:00