- Feb 05, 2009
-
-
Ted Kremenek authored
the ownership of BugTypes and BugReports. Now BugReports are owned by BugTypes, and BugTypes are owned by the BugReporter object. The major functionality change in this patch is that reports are not immediately emitted by a call to BugReporter::EmitWarning (now called EmitReport), but instead of queued up in report "equivalence classes". When BugReporter::FlushReports() is called, it emits one diagnostic per report equivalence class. This provides a nice cleanup with the caching of reports as well as enables the BugReporter engine to select the "best" path for reporting a path-sensitive bug based on all the locations in the ExplodedGraph that the same bug could occur. Along with this patch, Leaks are now coalesced into a common equivalence class by their allocation site, and the "summary" diagnostic for leaks now reports the allocation site as the location of the bug (this may later be augmented to also provide an example location where the leak occurs). llvm-svn: 63796
-
Daniel Dunbar authored
r63765). llvm-svn: 63795
-
Daniel Dunbar authored
llvm-svn: 63794
-
- Feb 04, 2009
-
-
Douglas Gregor authored
extension. The interaction with designated initializers is a bit... interesting... but we follow GNU's lead and don't permit too much crazy code in this area. Also, make the "excess initializers" error message a bit more informative. Addresses PR2561: http://llvm.org/bugs/show_bug.cgi?id=2561 llvm-svn: 63785
-
Mike Stump authored
llvm-svn: 63784
-
Daniel Dunbar authored
llvm-svn: 63782
-
Daniel Dunbar authored
wrong in some cases. llvm-svn: 63780
-
Sebastian Redl authored
llvm-svn: 63779
-
Daniel Dunbar authored
simplify handling of -f options clang recognizes. llvm-svn: 63778
-
Daniel Dunbar authored
llvm-svn: 63777
-
Daniel Dunbar authored
- Emits all declarations, even unused (static) ones. - Useful when doing minimization of codegen problems (otherwise problems localized to a static function aren't minimized well). llvm-svn: 63776
-
Daniel Dunbar authored
to CGCall functions. llvm-svn: 63775
-
Daniel Dunbar authored
llvm-svn: 63773
-
Fariborz Jahanian authored
llvm-svn: 63770
-
Fariborz Jahanian authored
Patch by David Chisnall llvm-svn: 63769
-
Chris Lattner authored
llvm-svn: 63766
-
Chris Lattner authored
buffer as if the #include happened from the main file. llvm-svn: 63764
-
Chris Lattner authored
Ok, we need a system header for this test to pass in the clang/test directory as well as from the pp directory. llvm-svn: 63763
-
Chris Lattner authored
llvm-svn: 63762
-
Chris Lattner authored
llvm-svn: 63761
-
Chris Lattner authored
llvm-svn: 63759
-
Chris Lattner authored
llvm-svn: 63758
-
Chris Lattner authored
llvm-svn: 63757
-
Douglas Gregor authored
DeclTy*, not TypeTy*. llvm-svn: 63756
-
Douglas Gregor authored
llvm-svn: 63754
-
Ted Kremenek authored
llvm-svn: 63753
-
Douglas Gregor authored
llvm-svn: 63750
-
Eli Friedman authored
llvm-svn: 63749
-
Douglas Gregor authored
- Changes Lookup*Name functions to return NamedDecls, instead of Decls. Unfortunately my recent statement that it will simplify lot of code, was not quite right, but it simplifies some... - Makes MergeLookupResult SmallPtrSet instead of vector, following Douglas suggestions. - Adds %qN format for printing qualified names to Diagnostic. - Avoids searching for using-directives in Scopes, which are not DeclScope, during unqualified name lookup. llvm-svn: 63739
-
rdar://problem/6552648Steve Naroff authored
Fix <rdar://problem/6552648> error: redefinition of 'XCElementAnchorDelegate' as different kind of symbol. At first glance, this looked like a recent regression (possibly created by http://llvm.org/viewvc/llvm-project?view=rev&revision=63354, which was the only recent change to this section of Sema::ActOnStartClassInterface()). After more investigation, it looks like an edge case bug that we didn't cover in our tests. llvm-svn: 63738
-
-
Douglas Gregor authored
into the general name-lookup fold. This cleans up some ugly, not-quite-working code in the handling of operator overloading. llvm-svn: 63735
-
Douglas Gregor authored
for a few other name-lookup sections. llvm-svn: 63734
-
Douglas Gregor authored
unqualified-id '(' in C++. The unqualified-id might not refer to any declaration in our current scope, but declarations by that name might be found via argument-dependent lookup. We now do so properly. As part of this change, CXXDependentNameExpr, which was previously designed to express the unqualified-id in the above constructor within templates, has become UnresolvedFunctionNameExpr, which does effectively the same thing but will work for both templates and non-templates. Additionally, we cope with all unqualified-ids, since ADL also applies in cases like operator+(x, y) llvm-svn: 63733
-
Douglas Gregor authored
llvm-svn: 63732
-
Daniel Dunbar authored
files". llvm-svn: 63727
-
Daniel Dunbar authored
llvm-svn: 63726
-
Chris Lattner authored
line markers, including maintenance of the virtual include stack. For something like this: # 42 "bar.c" 1 # 142 "bar2.c" 1 #warning zappa # 92 "bar.c" 2 #warning gonzo # 102 "foo.c" 2 #warning bonkta we now produce these three warnings: #1: In file included from foo.c:3: In file included from bar.c:42: bar2.c:143:2: warning: #warning zappa #warning zappa ^ #2: In file included from foo.c:3: bar.c:92:2: warning: #warning gonzo #warning gonzo ^ #3: foo.c:102:2: warning: #warning bonkta #warning bonkta ^ llvm-svn: 63722
-
Chris Lattner authored
llvm-svn: 63721
-
Chris Lattner authored
play around with the 'is system header' bit now function correctly. llvm-svn: 63720
-