| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Spotted by Benjamin Kramer.
llvm-svn: 183413
|
| |
|
|
|
|
| |
Leak annotation similar to HeapChecker's IgnoreObject().
llvm-svn: 183412
|
| |
|
|
| |
llvm-svn: 183411
|
| |
|
|
| |
llvm-svn: 183410
|
| |
|
|
|
|
|
|
|
|
| |
constant. Also fix some spelling mistakes and formatting issues.
Reviewed by Richard Smith over IRC.
Fixes PR15069.
llvm-svn: 183409
|
| |
|
|
| |
llvm-svn: 183408
|
| |
|
|
| |
llvm-svn: 183407
|
| |
|
|
| |
llvm-svn: 183406
|
| |
|
|
| |
llvm-svn: 183405
|
| |
|
|
| |
llvm-svn: 183404
|
| |
|
|
| |
llvm-svn: 183403
|
| |
|
|
| |
llvm-svn: 183402
|
| |
|
|
|
|
| |
tests, and use it in ASan
llvm-svn: 183401
|
| |
|
|
|
|
| |
lit tests, and use it in ASan
llvm-svn: 183400
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This adds a command line argument '-analyze' to clang-check which runs the
clang static analyzer on the source files.
Reviewers: klimek
CC: cfe-commits, revane
Differential Revision: http://llvm-reviews.chandlerc.com/D926
llvm-svn: 183399
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This patch creates a new ArgumentsAdjuster, which removes all -o parameters from
the command line. This adjuster is inserted by default into the ClangTool pipeline.
Reviewers: klimek
CC: cfe-commits, revane
Differential Revision: http://llvm-reviews.chandlerc.com/D925
llvm-svn: 183398
|
| |
|
|
|
|
|
| |
just copy-list-initialization in a variable declaration. This effectively
reverts r142147.
llvm-svn: 183397
|
| |
|
|
| |
llvm-svn: 183395
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This became allowed by accident in r131201, but triggers an assert.
That patch added an exception to allow conversion from pointers to
narrow integral types for MSVC compatibility. However, a pointer can
already be converted to bool in a civilized manner; allowing conversion
via reinterpret_cast is a bad idea.
Fixes PR16222.
llvm-svn: 183394
|
| |
|
|
|
|
|
|
| |
The leading "}" in the construct "} else if (..) {" was confusing the
expression parser. Thus, no fake parentheses were generated and the
indentation was broken in some cases.
llvm-svn: 183393
|
| |
|
|
| |
llvm-svn: 183392
|
| |
|
|
| |
llvm-svn: 183391
|
| |
|
|
|
|
| |
before calling memcpy
llvm-svn: 183390
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before:
return (my_int) aaaa;
template <> void f<int>(int i)SOME_ANNOTATION;
f("aaaa" SOME_MACRO(aaaa)"aaaa");
After:
return (my_int)aaaa;
template <> void f<int>(int i) SOME_ANNOTATION;
f("aaaa" SOME_MACRO(aaaa) "aaaa");
llvm-svn: 183389
|
| |
|
|
|
|
|
|
| |
must be initialized by a constant expression (not just a core constant
expression), because we're going to emit it as a global. Core issue for this is
pending.
llvm-svn: 183388
|
| |
|
|
| |
llvm-svn: 183387
|
| |
|
|
| |
llvm-svn: 183385
|
| |
|
|
| |
llvm-svn: 183372
|
| |
|
|
|
| |
FIXME: Is it false alarm?
llvm-svn: 183371
|
| |
|
|
| |
llvm-svn: 183370
|
| |
|
|
| |
llvm-svn: 183369
|
| |
|
|
|
|
|
|
|
|
| |
We based decisions during analysis and during path generation on whether
or not an expression is consumed, so if a top-level expression has
cleanups it's important for us to look through that.
<rdar://problem/14076125>
llvm-svn: 183368
|
| |
|
|
|
|
| |
You can now dump a single PathDiagnosticPiece or PathDiagnosticLocation.
llvm-svn: 183367
|
| |
|
|
|
|
|
| |
MS cl.exe is unaware of BOM-less utf8 source files.
FIXME: Encode Cyrillic and CJK characters below to appease MS compilers.
llvm-svn: 183366
|
| |
|
|
| |
llvm-svn: 183365
|
| |
|
|
|
|
| |
Fixing a test case to correctly check that the class name has changed instead of relying on GetValueDidChange()
llvm-svn: 183364
|
| |
|
|
| |
llvm-svn: 183363
|
| |
|
|
| |
llvm-svn: 183362
|
| |
|
|
|
|
|
| |
Caching it as a pointer allows us to reset it if the TargetMachine object
changes.
llvm-svn: 183361
|
| |
|
|
| |
llvm-svn: 183360
|
| |
|
|
|
|
|
|
|
|
| |
When processing ArrayToPointerDecay, we expect the array to be a location, not a LazyCompoundVal.
Special case the rvalue arrays by using a location to represent them. This case is handled similarly
elsewhere in the code.
Fixes PR16206.
llvm-svn: 183359
|
| |
|
|
|
|
|
|
|
|
|
| |
We previously asserted that there was a top-level function entry edge, but
if the function decl's location is invalid (or within a macro) this edge
might not exist. Change the assertion to an actual check, and don't drop
the first path piece if it doesn't match.
<rdar://problem/14070304>
llvm-svn: 183358
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The edge optimizer needs to see edges for, say, implicit casts (which have
the same source location as their operand) to uniformly simplify the
entire path. However, we still don't want to produce edges from a statement
to /itself/, which could occur when two nodes in a row have the same
statement location.
This necessitated moving the check for redundant notes to after edge
optimization, since the check relies on notes being adjacent in the path.
<rdar://problem/14061675>
llvm-svn: 183357
|
| |
|
|
|
|
|
|
| |
The TargetLoweringInfo object is owned by the TargetMachine. In the future, the
TargetMachine object may change, which may also change the TargetLoweringInfo
object.
llvm-svn: 183356
|
| |
|
|
|
|
|
|
|
|
| |
integrated assembler then go ahead and still split the dwarf anyhow.
Add two tests, one to exercise existing behavior of not splitting
when we're just emitting assembly files and the other to test
that we split when we're not in integrated as mode.
llvm-svn: 183355
|
| |
|
|
|
|
| |
The previous name `Ref` is overly generic.
llvm-svn: 183354
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
A user shouldn't care about the internal state, and these methods by
their very nature require asserting a predicate on the internal state.
As such, they cannot be used safely without introducing hidden
long-distance dependencies on the manner of construction of the
BinaryRef.
Use writeAsBinary(raw_ostream &) and writeAsHex(raw_ostream &) if you
need to access the data in a binary or hex format.
llvm-svn: 183353
|
| |
|
|
|
|
|
| |
This hides the implementation. A future commit will remove the
error-prone getHex() and getBinary() methods.
llvm-svn: 183352
|
| |
|
|
| |
llvm-svn: 183351
|
| |
|
|
|
|
| |
And add a doxygen comment.
llvm-svn: 183350
|