| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
This rename serves two purposes:
- It reflects the actual functionality of this analysis.
- We will have more than one reachability analysis.
llvm-svn: 127930
|
|
|
|
| |
llvm-svn: 127794
|
|
|
|
|
|
| |
all enum values in a switch conditioned are handled.
llvm-svn: 127727
|
|
|
|
| |
llvm-svn: 127672
|
|
|
|
|
|
| |
and "may-be-initialized" warnings, each controlled by different flags.
llvm-svn: 127669
|
|
|
|
|
|
| |
and "may-be-initialized" warnings, each controlled by different flags.
llvm-svn: 127666
|
|
|
|
|
|
| |
llvm::BitVector. No real functionality change, but this is a stepping stone to moving to tri-state logic.
llvm-svn: 127665
|
|
|
|
|
|
| |
No functionality change. This defines the minimum interface that ValueVector needs to support when we no longer base it strictly on a direct interpretation of BitVector.
llvm-svn: 127664
|
|
|
|
|
|
| |
No functionality change.
llvm-svn: 127663
|
|
|
|
| |
llvm-svn: 127657
|
|
|
|
| |
llvm-svn: 127656
|
|
|
|
|
|
| |
noexcept specifiers, unique FunctionProtoTypes with a ContextualFoldingSet, as suggested by John McCall.
llvm-svn: 127568
|
|
|
|
|
|
| |
changes in optimizing CFGs for switch statements.
llvm-svn: 127563
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
extending the existing support for sizeof and alignof. Original
patch by Guy Benyei.
llvm-svn: 127475
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
for functionality changes.
llvm-svn: 127387
|
|
|
|
| |
llvm-svn: 127386
|
|
|
|
|
|
|
|
|
|
|
|
| |
BuildOptions object around instead of keeping a copy of the flags.
Moreover, change AnalysisContext to use an OwningPtr for created analysis objects instead
of directly managing them.
Finally, add a 'forcedBlkExprs' entry to CFG::BuildOptions that will be used by the
CFGBuilder to force specific expressions to be block-level expressions.
llvm-svn: 127385
|
|
|
|
| |
llvm-svn: 127176
|
|
|
|
|
|
| |
statement has a condition that evaluates to a constant.
llvm-svn: 126977
|
|
|
|
|
|
| |
destructors.
llvm-svn: 126910
|
|
|
|
| |
llvm-svn: 126909
|
|
|
|
| |
llvm-svn: 126907
|
|
|
|
| |
llvm-svn: 126897
|
|
|
|
|
|
| |
actually returns. Use this for -Wreturn-type to prune false positives reported in PR 6884.
llvm-svn: 126875
|
|
|
|
|
|
|
|
| |
conventional categories into Basic and AST. Update the self-init checker
to use this logic; CFRefCountChecker is complicated enough that I didn't
want to touch it.
llvm-svn: 126817
|
|
|
|
| |
llvm-svn: 126797
|
|
|
|
|
|
|
|
|
| |
pointers instead of fresh CFGElements.
- Also, consoldiate getDtorKind() and getKind() into one "kind".
- Add empty getDestructorDecl() method to CFGImplicitDtor.
llvm-svn: 126738
|
|
|
|
| |
llvm-svn: 126598
|
|
|
|
|
|
|
|
|
| |
sure the branch always has two successors. Also teach Environment::getSVal() about OpaqueValueExprs.
This fixes a crash reported in PR9287, and also fixes a false positive involving the value of such ternary
expressions not properly getting propagated.
llvm-svn: 126362
|
|
|
|
|
|
| |
can be used to prune branches. Fixes false null pointer dereference warning in PR 8183.
llvm-svn: 126305
|
|
|
|
|
|
| |
into its own analysis file.
llvm-svn: 126289
|
|
|
|
| |
llvm-svn: 126288
|
|
|
|
| |
llvm-svn: 126149
|
|
|
|
| |
llvm-svn: 126062
|
|
|
|
|
|
|
|
|
| |
but it's not reasonable for the diagnostic to figure that out.
Pointed out by Benjamin Kramer.
Also clarify the logic here.
llvm-svn: 126017
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
class and to bind the shared value using OpaqueValueExpr. This fixes an
unnoticed problem with deserialization of these expressions where the
deserialized form would lose the vital pointer-equality trait; or rather,
it fixes it because this patch also does the right thing for deserializing
OVEs.
Change OVEs to not be a "temporary object" in the sense that copy elision is
permitted.
This new representation is not totally unawkward to work with, but I think
that's really part and parcel with the semantics we're modelling here. In
particular, it's much easier to fix things like the copy elision bug and to
make the CFG look right.
I've tried to update the analyzer to deal with this in at least some
obvious cases, and I think we get a much better CFG out, but the printing
of OpaqueValueExprs probably needs some work.
llvm-svn: 125744
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LabelDecl and LabelStmt. There is a 1-1 correspondence between the
two, but this simplifies a bunch of code by itself. This is because
labels are the only place where we previously had references to random
other statements, causing grief for AST serialization and other stuff.
This does cause one regression (attr(unused) doesn't silence unused
label warnings) which I'll address next.
This does fix some minor bugs:
1. "The only valid attribute " diagnostic was capitalized.
2. Various diagnostics printed as ''labelname'' instead of 'labelname'
3. This reduces duplication of label checking between functions and blocks.
Review appreciated, particularly for the cindex and template bits.
llvm-svn: 125733
|
|
|
|
|
|
| |
using SmallVectors.
llvm-svn: 125550
|
|
|
|
|
|
|
| |
Stmt::const_child_range, then make a bunch of places use them instead
of the individual iterator accessors.
llvm-svn: 125450
|
|
|
|
|
|
| |
<rdar://problem/8405222>.
llvm-svn: 125415
|
|
|
|
| |
llvm-svn: 125275
|
|
|
|
|
|
|
|
| |
dataflow facts and properly merging them.
Fixes PR 9076.
llvm-svn: 124666
|
|
|
|
| |
llvm-svn: 124394
|
|
|
|
| |
llvm-svn: 124364
|
|
|
|
| |
llvm-svn: 124363
|
|
|
|
|
|
| |
blocks that reference captured variables.
llvm-svn: 124348
|
|
|
|
| |
llvm-svn: 124347
|
|
|
|
|
|
|
| |
a warning for uses of an uninitialized variable
when the use is a void cast, e.g. (void) x.
llvm-svn: 124278
|