- Apr 09, 2010
-
-
John McCall authored
just integer-literal expressions with special case implementations in the AST. Fixes rdar://problem/7825453. llvm-svn: 100905
-
Douglas Gregor authored
full-fledged @interface, be sure that the declaration has the right lexical context. <rdar://problem/7827709> llvm-svn: 100903
-
Douglas Gregor authored
specializations when the explicit instantiation was... explicitly written, i.e., not the product of an explicit instantiation of an enclosing class. Fixes this spurious warning when Clang builds LLVM: /Volumes/Data/dgregor/Projects/llvm/lib/CodeGen/MachineDominators.cpp:22:1: warning: explicit instantiation of 'addRoot' that occurs after an explicit specialization will be ignored (C++0x extension) [-pedantic] llvm-svn: 100900
-
Ted Kremenek authored
llvm-svn: 100891
-
Ted Kremenek authored
we don't have enough information to tell them how to use 'strncmp'. Instead, change the diagnostic to indicate they should use 'strncmp'. llvm-svn: 100890
-
Benjamin Kramer authored
llvm-svn: 100887
-
John McCall authored
llvm-svn: 100882
-
John McCall authored
llvm-svn: 100881
-
John McCall authored
Remove -faccess-control from -cc1; add -fno-access-control. Make the driver pass -fno-access-control by default. Update a bunch of tests to be correct under access control. llvm-svn: 100880
-
John McCall authored
fails to find a type. There are no cases where it's valid for this to produce an error. llvm-svn: 100878
-
Douglas Gregor authored
type..." with "initializing <type> with an expression of type...", which reads better. Thanks to John for the improved wording. llvm-svn: 100873
-
Douglas Gregor authored
the implicit template instantiations we need to perform. Otherwise, we end up erroneously diagnosing static functions as used if they were only used within an implicit template instantiation. Fixes a bunch of spurious failures when building Clang with Clang. llvm-svn: 100872
-
John McCall authored
type isn't dependent. Fixes rdar://problem/7838962. llvm-svn: 100871
-
Chris Lattner authored
attr constructor or destructor. Patch by Jean-Daniel Dupas! llvm-svn: 100870
-
Douglas Gregor authored
precompiled headers and/or when reading the contents of the file into memory. These checks seem to be causing spurious regression-test failures on Windows. llvm-svn: 100866
-
Fariborz Jahanian authored
for objc. llvm-svn: 100865
-
Daniel Dunbar authored
llvm-svn: 100864
-
John McCall authored
valid instantiations. llvm-svn: 100836
-
Douglas Gregor authored
destination type for initialization, assignment, parameter-passing, etc. The main issue fixed here is that we used rather confusing wording for diagnostics such as t.c:2:9: warning: initializing 'char const [2]' discards qualifiers, expected 'char *' [-pedantic] char *name = __func__; ^ ~~~~~~~~ We're not initializing a 'char const [2]', we're initializing a 'char *' with an expression of type 'char const [2]'. Similar problems existed for other diagnostics in this area, so I've normalized them all with more precise descriptive text to say what we're initializing/converting/assigning/etc. from and to. The warning for the code above is now: t.c:2:9: warning: initializing 'char *' from an expression of type 'char const [2]' discards qualifiers [-pedantic] char *name = __func__; ^ ~~~~~~~~ Fixes <rdar://problem/7447179>. llvm-svn: 100832
-
Ted Kremenek authored
platforms (for this test). llvm-svn: 100827
-
Ted Kremenek authored
This is still not an ideal solution, but should disable the check for other targets where the value of O_CREAT is different. llvm-svn: 100818
-
Douglas Gregor authored
llvm-svn: 100817
-
- Apr 08, 2010
-
-
Ted Kremenek authored
looking into an alternate fix right now. llvm-svn: 100816
-
Douglas Gregor authored
warning. It's not harmful to have such pointless declarations, and GCC does not diagnose this issue consistently. llvm-svn: 100814
-
Fariborz Jahanian authored
of c-style arguments. Completes radar 7445205. llvm-svn: 100813
-
Ted Kremenek authored
llvm-svn: 100810
-
Jeffrey Yasskin authored
variable declarations. llvm-svn: 100809
-
John McCall authored
Fixes PR6752. llvm-svn: 100806
-
Ted Kremenek authored
automatic storage. This matches the corresponding check for 'dispatch_once()'. llvm-svn: 100803
-
Ted Kremenek authored
llvm-svn: 100801
-
Ted Kremenek authored
unless they are used. I discussed this with Daniel Dunbar, and we agreed that this provides an inconsistent warnings experience for the user and that there were genuine cases where we wouldn't want to do this optimization. llvm-svn: 100800
-
Douglas Gregor authored
<tr1/hashtable> header, where a friend class template std::tr1::__detail::_Map_base is declared with the wrong template parameters. GCC doesn't catch the problem, so Clang does a little back-flip to avoid diagnosing just this one instance of the problem. llvm-svn: 100790
-
Fariborz Jahanian authored
parameters list for encoding. llvm-svn: 100788
-
Ted Kremenek authored
llvm-svn: 100786
-
Ted Kremenek authored
llvm-svn: 100785
-
John McCall authored
instead of scribbling over random memory. Maybe. Hopefully this fixes the -vg buildbot. llvm-svn: 100784
-
Jeffrey Yasskin authored
Declarator that depends on it. This fixes several redundant errors and bad recoveries. llvm-svn: 100779
-
Anders Carlsson authored
llvm-svn: 100778
-
Anders Carlsson authored
llvm-svn: 100776
-
Douglas Gregor authored
llvm-svn: 100775
-