- Jun 02, 2012
-
-
Alexander Kornienko authored
Implementation of a "soft opt-in" option for -Wimplicit-fallthrough diagnostics: -Wimplicit-fallthrough-per-method llvm-svn: 157871
-
Anna Zaks authored
explicitly. This will make it easier to add inlining support to more expressions. llvm-svn: 157870
-
Anna Zaks authored
When we timeout or exceed a max number of blocks within an inlined function, we retry with no inlining starting from a node right before the CallEnter node. We assume the state of that node is the state of the program before we start evaluating the call. However, the node pruning removes this node as unimportant. Teach the node pruning to keep the predecessors of the call enter nodes. llvm-svn: 157860
-
Anna Zaks authored
We should not stop exploring the path after we return from an empty function. llvm-svn: 157859
-
Ted Kremenek authored
llvm-svn: 157851
-
- Jun 01, 2012
-
-
Ted Kremenek authored
llvm-svn: 157833
-
Kaelyn Uhrain authored
but different nested name specifiers to quietly clobber each other so only one remains if they do not refer to the same NamedDecl. Fixes PR12951. llvm-svn: 157823
-
Eric Christopher authored
Part of rdar://11570854 llvm-svn: 157787
-
Argyrios Kyrtzidis authored
when migrating. rdar://11569198 llvm-svn: 157785
-
Aaron Ballman authored
Anonymous union members within a struct are now properly handled as an unevaluated field in C++11 mode. This fixes PR12866. llvm-svn: 157784
-
Kaelyn Uhrain authored
the confusion among all of the uses of Best* in relation to the set of possible typo correction results. Also add a method to return the set of typo corrections that have the single best edit distance--it returns the second half of the first pair in TypoEditDistanceMap (with getBestEditDistance already returning the first half). llvm-svn: 157781
-
Fariborz Jahanian authored
have correct pointer type or issue error, instead of crashing in IRGen. // rdar:// 11569860 llvm-svn: 157780
-
- May 31, 2012
-
-
Tom Care authored
llvm-svn: 157772
-
Anna Zaks authored
We should lock the number of elements after the initial parsing is complete. Recursive AST visitors in AnalyzesConsumer and CallGarph can trigger lazy pch deserialization resulting in more calls to HandleTopLevelDecl and appending to the LocalTUDecls list. We should ignore those. llvm-svn: 157762
-
Alexander Kornienko authored
llvm-svn: 157759
-
Ted Kremenek authored
improved the pruning heuristics. The current heuristics are pretty good, but they make diagnostics for uninitialized variables warnings particularly useless in some cases. llvm-svn: 157734
-
Craig Topper authored
llvm-svn: 157733
-
Anna Zaks authored
As per comments following r157659. llvm-svn: 157722
-
Anna Zaks authored
Follow up in r155693, r155680. Prevents a hard to reproduce crash with the following stack trace: 3 libsystem_c.dylib 0x00007ff55a835050 _sigtramp + 18446744029881443184 4 clang 0x0000000106218e97 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) + 519 5 clang 0x0000000105cf3002 clang::ParseAST(clang::Sema&, bool, bool) + 690 6 clang 0x00000001059a41d8 clang::ASTFrontendAction::ExecuteAction() + 312 7 clang 0x00000001059a3df7 clang::FrontendAction::Execute() + 231 8 clang 0x00000001059b0ecc clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 860 9 clang 0x000000010595e451 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 961 10 clang 0x0000000105947f29 cc1_main(char const**, char const**, char const*, void*) + 969 11 clang 0x0000000105958259 main + 473 12 clang 0x0000000105947b34 start + 52 llvm-svn: 157721
-
- May 30, 2012
-
-
Jordan Rose authored
llvm-svn: 157716
-
David Blaikie authored
This is a large class of false positives where anonymous enums are used to declare constants (see Clang's Diagnostics.h for example). A small number of true positives could probably be found in this bucket by still warning if the anonymous enum is used in a declarator (enum { ... } x;) but so far we don't believe this to be a source of significant benefit so I haven't bothered to preserve those cases. General offline review/acknowledgment by rtrieu. llvm-svn: 157713
-
Fariborz Jahanian authored
and reported as PR12959. // rdar://11499742 llvm-svn: 157697
-
Manuel Klimek authored
Adds missing header guards to Refactoring.h. llvm-svn: 157694
-
Alexander Kornienko authored
llvm-svn: 157687
-
Craig Topper authored
SSE4A should not imply LZCNT and POPCNT. FMA4 should imply SSE4A. Add missing break at the end of btver1 feature list. llvm-svn: 157680
-
Craig Topper authored
llvm-svn: 157676
-
Eric Christopher authored
llvm-svn: 157667
-
Richard Trieu authored
same value and were initialized with literals. Clang will warn on code like this: enum A { FIRST = 1, SECOND = 1 }; llvm-svn: 157666
-
Anna Zaks authored
Also, do not display the builtin name and macro expansion when the function is a builtin. llvm-svn: 157659
-
- May 29, 2012
-
-
Fariborz Jahanian authored
This patch fixes it. // rdar://11488351 llvm-svn: 157646
-
Fariborz Jahanian authored
getter result type is safe but does not match with property type resulting in spurious warning followed by crash in IRGen. // rdar://11515196 llvm-svn: 157641
-
Benjamin Kramer authored
llvm-svn: 157639
-
Benjamin Kramer authored
This is a clean-room implementation based on public documentation and I tried to validate it as much as possible against gcc. llvm-svn: 157638
-
Simon Atanasyan authored
llvm-svn: 157635
-
Simon Atanasyan authored
the Clang::ConstructJob() to the new ArgList::getLastArg() routine with eight argument. That simplifies reusing of this code. llvm-svn: 157633
-
Benjamin Kramer authored
This doesn't really fit the existing SSELevel so it gets an extra flag. llvm-svn: 157630
-
David Blaikie authored
llvm-svn: 157628
-
Roman Divacky authored
llvm-svn: 157626
-
Alexey Samsonov authored
Leave a better fixme for different debug info flags llvm-svn: 157602
-
Charles Davis authored
is negligible, but it makes the code clearer. Based on a suggestion by Jordy Rose. llvm-svn: 157601
-