| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
available, but not accessible from the current code completion context.
llvm-svn: 141278
|
|
|
|
|
|
|
|
| |
and a callback and finds all identifier references of the cursor in the file.
rdar://7948304
llvm-svn: 141277
|
|
|
|
|
|
|
| |
a cxcursor::getOverriddenCursors C++ function, because SmallVectors
are groovier that malloc'ing buffers.
llvm-svn: 141276
|
|
|
|
|
|
| |
bits reserved for that value in VarDecl. Fixes PR 10538.
llvm-svn: 141273
|
|
|
|
|
|
| |
own helper method. No functionality change.
llvm-svn: 141272
|
|
|
|
|
|
|
|
|
| |
which enables support for C99 storage-class specifiers.
This extension is intended to be used by implementations to implement
OpenCL C built-in functions.
llvm-svn: 141271
|
|
|
|
| |
llvm-svn: 141270
|
|
|
|
| |
llvm-svn: 141268
|
|
|
|
| |
llvm-svn: 141267
|
|
|
|
|
|
| |
method itself.
llvm-svn: 141262
|
|
|
|
|
|
|
|
|
|
| |
non-fragile ABI we may not be able to lay out the type and the debugger
would ignore us even if we did put in the offset. Go ahead and just
put any value there and don't look up the offset since it may not exist.
rdar://10210157
llvm-svn: 141261
|
|
|
|
| |
llvm-svn: 141260
|
|
|
|
|
|
| |
used when they were meant to be. Fixes <rdar://problem/10241614>.
llvm-svn: 141250
|
|
|
|
|
|
|
|
| |
well as the method itself.
Checkers should not directly access NodeBuilder, nodes can be created by calling the CheckerContext's generateNode() methods.
llvm-svn: 141249
|
|
|
|
|
|
|
|
| |
essentially simulates inlining of compareAndSwap() by means of setting the NodeBuilder flags and calling ExprEngine directly.
This commit introduces a new callback just for this checker to unblock checker API cleanup.
llvm-svn: 141246
|
|
|
|
| |
llvm-svn: 141216
|
|
|
|
| |
llvm-svn: 141215
|
|
|
|
|
|
|
| |
line options.
- <rdar://problem/10120602>, PR9631
llvm-svn: 141211
|
|
|
|
|
|
| |
Patch by Olaf Krzikalla.
llvm-svn: 141208
|
|
|
|
|
|
| |
quoting code.
llvm-svn: 141205
|
|
|
|
|
|
|
| |
reasons. However, it does seems practical to quote strings that need it.
rdar://10221951
llvm-svn: 141202
|
|
|
|
| |
llvm-svn: 141201
|
|
|
|
|
|
| |
from Manuel Holtgrewe!
llvm-svn: 141200
|
|
|
|
| |
llvm-svn: 141193
|
|
|
|
| |
llvm-svn: 141181
|
|
|
|
| |
llvm-svn: 141180
|
|
|
|
|
|
|
|
|
|
|
| |
creation, so that only a single Clang instance will rebuild a given
module at once (and the others will wait).
We still don't clean up the lock files when we crash, which is a
rather unfortunate problem. I'll handle that next, and there is
certainly a *lot* of room for further improvements.
llvm-svn: 141179
|
|
|
|
| |
llvm-svn: 141171
|
|
|
|
|
|
|
|
| |
C-style and functional casts are built in SemaCXXCast.cpp.
Introduce a helper class to encapsulate most of the random
state being passed around, at least one level down.
llvm-svn: 141170
|
|
|
|
|
|
| |
have noticed this previously, sorry.
llvm-svn: 141167
|
|
|
|
| |
llvm-svn: 141165
|
|
|
|
|
|
|
| |
"versions". Currently, these are just dropped on the floor, A concrete
version number will always win out.
llvm-svn: 141159
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
this saga. Teach the driver to detect a GCC installed along side Clang
using the existing InstalledDir support in the Clang driver. This makes
a lot of Clang's behavior more automatic when it is installed along side
GCC.
Also include the first test cases (more to come, honest) which test both
the install directory behavior, and the version sorting behavior to show
that we're actually searching for the best candidate GCC installation
now.
llvm-svn: 141145
|
|
|
|
|
|
|
|
| |
return to one which does not return (has noreturn attribute)
should warn as it is an unsafe assignment. // rdar://10095762
c++ already handles this. This is the c version.
llvm-svn: 141141
|
|
|
|
|
|
|
|
|
| |
conversion function whose result type is an lvalue reference. The
initialization code already handled this properly, but overload
resolution was allowing the binding. Fixes PR11003 /
<rdar://problem/10233078>.
llvm-svn: 141137
|
|
|
|
|
|
| |
CheckerContext to generate the nodes.
llvm-svn: 141136
|
|
|
|
|
|
| |
function, cleaning up along the way.
llvm-svn: 141134
|
|
|
|
| |
llvm-svn: 141133
|
|
|
|
|
|
| |
change.
llvm-svn: 141131
|
|
|
|
|
|
|
| |
was assembly. Otherwise, something like -save-temps causes the integrated
assembler to warn.
llvm-svn: 141127
|
|
|
|
|
|
|
|
|
| |
There should be a better solution to this; Michael and I are continuing
to discuss exactly what it should be. The one solution I'm very
uncomfortable with is making the FileCheck tests use a regex for each
path separator.
llvm-svn: 141126
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
installations, support them when installed directly under the system
root ('/lib/gcc/...' essentially).
With this, Clang can correctly detect and use a cross-compiling GCC
installation within a system root and use it.
Again, test cases will be coming in later commits, as I'm going to write
a few test cases that exercise nearly all of this logic.
llvm-svn: 141121
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
two fundamental changes, as they ended up being interrelated.
The first is to walk from the root down through the filesystem so that
we prune subtrees which do not exist early. This greatly reduces the
filesystem traffic of this routine. We store the "best" GCC version we
encounter, and look at all of the GCC installations available.
Also, we look through GCC versions by scanning the directory rather than
using a hard-coded list of versions. This has several benefits. It makes
it much more efficient to locate a GCC installation even in the presence
of a large number of different options by simply reading the directory
once. It also future-proofs us as new GCC versions are released and
installed. We no longer have a hard coded list of version numbers, and
won't need to manually updated it. We can still filter out known-bad
versions as needed. Currently I've left in filtering for all GCC
installations prior to 4.1.1, as that was the first one supported
previously.
llvm-svn: 141120
|
|
|
|
|
|
|
|
| |
the command line options (at least according to GCC's documentation). GCC 4.2
didn't appear to actually do this, but it seems like that has been fixed in
later release, so we will follow the docs.
llvm-svn: 141119
|
|
|
|
|
|
| |
can obtain block count directly from the Context.
llvm-svn: 141112
|
|
|
|
|
|
|
|
| |
InitListChecker::getStructuredSubobjectInit which was increasing the reserved size for an init list past its maximum possible size. Fixes PR11056, a case where we were reserving a bunch of memory for arrays that was never actually used.
(No testcase because I don't think we have any way to actually write a testcase for this; the chosen value of NumElements has no effects on anything other than performance and memory usage.)
llvm-svn: 141106
|
|
|
|
|
|
| |
continuation class into warning. // rdar://10231514
llvm-svn: 141100
|
|
|
|
| |
llvm-svn: 141098
|
|
|
|
|
|
| |
<rdar://problem/10230631>.
llvm-svn: 141089
|
|
|
|
|
|
| |
<rdar://problem/10230626>.
llvm-svn: 141088
|