| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 141999
|
|
|
|
| |
llvm-svn: 141998
|
|
|
|
|
|
|
|
| |
through varargs. This only happens when we're in an unevaluated
context, where we don't want to trigger an error anyway. Fixes PR11131
/ <rdar://problem/10288375>.
llvm-svn: 141986
|
|
|
|
| |
llvm-svn: 141955
|
|
|
|
| |
llvm-svn: 141921
|
|
|
|
|
|
|
|
| |
If the code file is not run through the preproccessor to remove comments,
then FileCheck will match the strings within the CHECK commands rendering
the test useless.
llvm-svn: 141911
|
|
|
|
| |
llvm-svn: 141904
|
|
|
|
|
|
| |
This finds 2 bugs in chromium and 1 in hunspell, with 0 false positives.
llvm-svn: 141902
|
|
|
|
|
|
| |
-std=c++0x. Patch by Ahmed Charles!
llvm-svn: 141900
|
|
|
|
|
|
|
|
| |
C++11 mode but keep their sources compatible with C++98. This patch implements
the -Wc++98-compat-variadic-templates sub-flag and -Wc++98-compat to include
it.
llvm-svn: 141898
|
|
|
|
|
|
| |
functions, e.g., (&f)(0). Fixes <rdar://problem/9803316>.
llvm-svn: 141877
|
|
|
|
|
|
|
|
| |
We'd also like for "C++11" or "c++11" to be used for the warning
groups, but without removing the old warning flags. Patches welcome;
I've run out of time to work on this today.
llvm-svn: 141801
|
|
|
|
|
|
|
| |
ignore access entirely for it) and not to crash on assignment operator
templates. Fixes PR11110.
llvm-svn: 141777
|
|
|
|
|
|
|
|
|
|
|
| |
and DefaultFunctionArrayLvalueConversion. To prevent
significant regression for should-this-be-a-call fixits,
and to repair some such regression from the introduction of
bound member placeholders, make those placeholder checks
try to build calls appropriately. Harden the build-a-call
logic while we're at it.
llvm-svn: 141738
|
|
|
|
|
|
| |
C++98 mode. Only the first occurrence of each keyword will produce a warning.
llvm-svn: 141700
|
|
|
|
| |
llvm-svn: 141685
|
|
|
|
| |
llvm-svn: 141680
|
|
|
|
|
|
| |
warning at function prototype scope.
llvm-svn: 141630
|
|
|
|
|
|
|
|
| |
The main motivation was to do typo correction in C++ "new" statements,
though picking it up in other places where type names are expected was
pretty much a freebie.
llvm-svn: 141621
|
|
|
|
| |
llvm-svn: 141609
|
|
|
|
|
|
| |
(which is completely trivial). PR8836.
llvm-svn: 141604
|
|
|
|
|
|
|
| |
to check whether the constructor is accessible. Fixes
<rdar://problem/10202900>.
llvm-svn: 141588
|
|
|
|
|
|
|
| |
it might be wrong for other instantiations of the same function
template. Fixes PR10801.
llvm-svn: 141559
|
|
|
|
| |
llvm-svn: 141555
|
|
|
|
|
|
| |
subexpressions. Fixes PR10291.
llvm-svn: 141552
|
|
|
|
|
|
|
| |
declarator, so that the declarator is in scope for the
initializer. Fixes PR9989.
llvm-svn: 141539
|
|
|
|
|
|
|
| |
redeclaration contexts are the same, as occurs within linkage
specifications. Fixes PR9162.
llvm-svn: 141521
|
|
|
|
|
|
|
|
| |
function type' when that expression is actually an overloaded function
reference (and not the address of an overloaded function
reference). Fixes PR11066.
llvm-svn: 141514
|
|
|
|
|
|
| |
non-identifier name. Fixes PR10839.
llvm-svn: 141513
|
|
|
|
| |
llvm-svn: 140831
|
|
|
|
|
|
| |
for static const float members is used in C++11 mode.
llvm-svn: 140828
|
|
|
|
|
|
| |
as a GNU extension. Don't extend the scope of this extension to all literal types in C++0x mode.
llvm-svn: 140820
|
|
|
|
|
|
| |
constant expression.
llvm-svn: 140812
|
|
|
|
| |
llvm-svn: 140809
|
|
|
|
|
|
| |
We had an extension which allowed const static class members of floating-point type to have in-class initializers, 'as a C++0x extension'. However, C++0x does not allow this. The extension has been kept, and extended to all literal types in C++0x mode (with a fixit to add the 'constexpr' specifier).
llvm-svn: 140801
|
|
|
|
|
|
|
| |
attributes from the enumeration type.
// rdar://10201690
llvm-svn: 140800
|
|
|
|
|
|
|
| |
support for the C++0x draft [[align]] attribute and add the C1X
standard header file stdalign.h
llvm-svn: 140796
|
|
|
|
|
|
| |
have an AST verifier).
llvm-svn: 140620
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
llvm[1]: Compiling CommandLine.cpp for Debug+Asserts build
if /Users/void/llvm/llvm-opt.obj/Release+Asserts/bin/clang++ -I/Users/void/llvm/llvm.obj/include -I/Users/void/llvm/llvm.obj/lib/Support -I/Users/void/llvm/llvm.src/include -I/Users/void/llvm/llvm.src/lib/Support -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fno-exceptions -fno-common -Woverloaded-virtual -Wcast-qual -m64 -Wall -W -Wno-unused-parameter -Wwrite-strings -c -MMD -MP -MF "/Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/CommandLine.d.tmp" -MT "/Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/CommandLine.o" -MT "/Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/CommandLine.d" /Users/void/llvm/llvm.src/lib/Support/CommandLine.cpp -o /Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/CommandLine.o ; \
then /bin/mv -f "/Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/CommandLine.d.tmp" "/Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/CommandLine.d"; else /bin/rm "/Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/CommandLine.d.tmp"; exit 1; fi
In file included from /Users/void/llvm/llvm.src/lib/Support/CommandLine.cpp:25:
/Users/void/llvm/llvm.src/include/llvm/Support/system_error.h:690:14: error: unknown type name 'make_error_condition'; did you mean 'error_condition'?
{*this = make_error_condition(_e);}
^~~~~~~~~~~~~~~~~~~~
error_condition
...
llvm-svn: 140599
|
|
|
|
|
|
| |
references.
llvm-svn: 140594
|
|
|
|
| |
llvm-svn: 140589
|
|
|
|
| |
llvm-svn: 140584
|
|
|
|
|
|
| |
-Wstring-conversion.
llvm-svn: 140574
|
|
|
|
|
|
|
|
|
|
|
| |
correctly pass
the information on to Sema. There's still an incorrectness in the way template instantiation
works now, but that is due to a far larger underlying representational problem.
Also add a test case for various list initialization cases of scalars, which test this
commit as well as the previous one.
llvm-svn: 140460
|
|
|
|
|
|
|
|
| |
generalized-initializers.cpp to
match what the actual implementation of the error looks like.
llvm-svn: 140458
|
|
|
|
|
|
|
|
|
| |
function and we can't resolve an identifier then assume the identifier is type dependent. The goal is to postpone name lookup to instantiation time to be able to search into type dependent base classes.
This fixes a few errors when parsing MFC code with clang.
BTW clang trunk is now about 5 patches away to be able the parse the default wizard-generated MFC project.
llvm-svn: 140452
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
is cast to a boolean. An exception has been made for string literals in
logical expressions to allow the common case of use in assert statements.
bool x;
x = "hi"; // Warn here
void foo(bool x);
foo("hi"); // Warn here
assert(0 && "error");
assert("error); // Warn here
llvm-svn: 140405
|
|
|
|
|
|
|
|
| |
the key function is inline, rather than the original
declaration. Perhaps FunctionDecl::isInlined() is poorly named. Fixes
<rdar://problem/9979458>.
llvm-svn: 140400
|
|
|
|
|
|
| |
-fms-compatibility. Also allow the missing typename warning at function scope.
llvm-svn: 140240
|
|
|
|
|
|
| |
-fm-compatibility.
llvm-svn: 140189
|