- 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
-
John McCall authored
llvm-svn: 100882
-
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
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
-
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
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
-
- 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
-
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
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
-
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
-
Douglas Gregor authored
__cxxabiv1::__fundamental_type_info in every translation unit. Previously, we would perform name lookup for __cxxabiv1::__fundamental_type_info at the end of IRGen for a each translation unit, to determine whether it was present. If so, we we produce type information for all of the fundamental types. However, this name lookup causes PCH deserialization of a significant part of the translation unit, which has a woeful impact on performance. With this change, we now look at each record type after we've generated its vtable to see if it is __cxxabiv1::__fundamental_type_info. If so, we generate type info for all of the fundamental types. This works because __cxxabiv1::__fundamental_type_info should always have a key function (typically the virtual destructor), that will be defined once in the support library. The fundamental type information will end up there. Fixes <rdar://problem/7840011>. llvm-svn: 100772
-
Benjamin Kramer authored
llvm-svn: 100770
-
John McCall authored
llvm-svn: 100753
-
Ted Kremenek authored
llvm-svn: 100750
-
Daniel Dunbar authored
Fronted: Kill overly specialized RecordLayoutDumper, just make -dump-record-layouts a bit that Sema honors. llvm-svn: 100747
-
Daniel Dunbar authored
llvm-svn: 100746
-
Daniel Dunbar authored
IRgen: Move the bit-field access type into CGBitFieldInfo, and change bit-field LValues to just store the base address of object containing the bit-field. llvm-svn: 100745
-
Fariborz Jahanian authored
methods. wip. llvm-svn: 100734
-
Chris Lattner authored
llvm-svn: 100733
-
John McCall authored
llvm-svn: 100732
-
Ted Kremenek authored
llvm-svn: 100730
-
Jeffrey Yasskin authored
parameter, explicitly ask the user to give it arguments. We used to complain that it wasn't a type and expect the user to figure it out. llvm-svn: 100729
-