- Mar 17, 2011
-
-
Ted Kremenek authored
Don't construct two CFGs just to run -Wuninitialized. While this causes new warnings to be flagged under -Wconditional-uninitialized, this is something we can improve over time. llvm-svn: 127802
-
- Mar 16, 2011
-
-
Abramo Bagnara authored
llvm-svn: 127755
-
Douglas Gregor authored
dependent scope and produce an error (rather than crashing). Fixes PR8979. llvm-svn: 127749
-
Douglas Gregor authored
overload, so that we actually do the resolution for full expressions and emit more consistent, useful diagnostics. Also fixes an IRGen crasher, where Sema wouldn't diagnose a resolvable bound member function template-id used in a full-expression (<rdar://problem/9108698>). llvm-svn: 127747
-
Douglas Gregor authored
operands to a binary expression; it doesn't make sense in all contexts. The right answer would be to see if the user forgot at (). Fixes <rdar://problem/9136502>. llvm-svn: 127740
-
Douglas Gregor authored
pointer-to-function type. Fixes <rdar://problem/9065289>. llvm-svn: 127739
-
Douglas Gregor authored
forward-looking "goto" statement, make sure to insert it *after* the last declaration in the identifier resolver's declaration chain that is either outside of the function/block/method's scope or that is declared in that function/block/method's specific scope. Previously, we could end up inserting the label ahead of declarations in inner scopes, confusing C++ name lookup. Fixes PR9491/<rdar://problem/9140426> and <rdar://problem/9135994>. Note that the crash-on-invalid PR9495 is *not* fixed. That's a separate issue. llvm-svn: 127737
-
- Mar 15, 2011
-
-
Ted Kremenek authored
Remove warning for null characters in CFString literals. Clang handles them just fine, and GCC 4.2 doesn't warn here either. We added this warning back in 2007 when we were comparing against GCC 4.0. llvm-svn: 127704
-
Ted Kremenek authored
llvm-svn: 127703
-
Sebastian Redl authored
llvm-svn: 127692
-
Sebastian Redl authored
llvm-svn: 127688
-
Fariborz Jahanian authored
declaration as this results in a confusing error message, instead of message related to missing property declaration. // rdar://9106929 llvm-svn: 127682
-
Ted Kremenek authored
Split warnings from -Wuninitialized-experimental into "must-be-initialized" and "may-be-initialized" warnings, each controlled by different flags. llvm-svn: 127669
-
Ted Kremenek authored
Split warnings from -Wuninitialized-experimental into "must-be-initialized" and "may-be-initialized" warnings, each controlled by different flags. llvm-svn: 127666
-
Ted Kremenek authored
llvm-svn: 127657
-
- Mar 14, 2011
-
-
Douglas Gregor authored
cannot yet be resolved, be sure to push the new label declaration into the right place within the identifier chain. Otherwise, name lookup in C++ gets confused when searching for names that are lexically closer than the label. Fixes PR9463. llvm-svn: 127623
-
Sebastian Redl authored
llvm-svn: 127603
-
Sebastian Redl authored
llvm-svn: 127596
-
Douglas Gregor authored
-literal to char* conversion. Make it so. llvm-svn: 127586
-
- Mar 13, 2011
-
-
Sebastian Redl authored
Instead of storing an ASTContext* in FunctionProtoTypes with computed noexcept specifiers, unique FunctionProtoTypes with a ContextualFoldingSet, as suggested by John McCall. llvm-svn: 127568
-
- Mar 12, 2011
-
-
Fariborz Jahanian authored
method prototypes under the -Wduplicate-method-arg and turn it off by default. llvm-svn: 127552
-
Sebastian Redl authored
It is only meant for the release branch. llvm-svn: 127544
-
Sebastian Redl authored
llvm-svn: 127543
-
Sebastian Redl authored
It is only meant for the release branch. llvm-svn: 127542
-
Sebastian Redl authored
llvm-svn: 127541
-
Sebastian Redl authored
Change the interface to expose the new information and deal with the enormous fallout. Introduce the new ExceptionSpecificationType value EST_DynamicNone to more easily deal with empty throw specifications. Update the tests for noexcept and fix the various bugs uncovered, such as lack of tentative parsing support. llvm-svn: 127537
-
Abramo Bagnara authored
llvm-svn: 127536
-
Abramo Bagnara authored
llvm-svn: 127534
-
Douglas Gregor authored
should be resolvable, from Faisal Vali! llvm-svn: 127521
-
Douglas Gregor authored
enumeration type to another in C, classify enumeration constants as if they had the type of their enclosing enumeration. Fixes <rdar://problem/9116337>. llvm-svn: 127514
-
Douglas Gregor authored
unless we already know that it has a definition. Fixes PR9449/<rdar://problem/9115785>. llvm-svn: 127512
-
- Mar 11, 2011
-
-
Peter Collingbourne authored
without cl_khr_fp64, warn and cast to single precision llvm-svn: 127476
-
Peter Collingbourne authored
extending the existing support for sizeof and alignof. Original patch by Guy Benyei. llvm-svn: 127475
-
Rafael Espindola authored
in conversion functions. llvm-svn: 127460
-
John McCall authored
pointer instead of the other operand. llvm-svn: 127458
-
- Mar 10, 2011
-
-
Ted Kremenek authored
Profiling showed that 'CheckImplicitConversions' was very slow because of the call to getSpellingLoc(). On 'aes.c' in the LLVM test suite, this function was consuming 7.4% of -fsyntax-only time. This change fixes this issue by delaying the check that the warning would be issued within a system macro by as long as possible. The main negative of this change is now the logic for this check is done in multiple places in this function instead of just in one place up front. llvm-svn: 127425
-
Abramo Bagnara authored
llvm-svn: 127404
-
Abramo Bagnara authored
llvm-svn: 127401
-
Ted Kremenek authored
When doing reachability analysis for warnings issued under DiagRuntimeBehavior, don't construct a ParentMap or CFGStmtMap. Instead, create a small set of Stmt* -> CFGBlock* mappings during CFG construction for only the statements we care about relating to the diagnostics we want to check for reachability. llvm-svn: 127396
-
Daniel Dunbar authored
a...", it appears to cause us to reject various valid codes. llvm-svn: 127373
-