| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
llvm-svn: 109505
|
| |
|
|
|
|
|
|
| |
constructor/destructor.
Fixes http://llvm.org/PR7692
llvm-svn: 109501
|
| |
|
|
|
|
|
|
| |
is prep for scanf format"
Got errors about ASTContext being undefined with Visual Studio 2010.
llvm-svn: 109491
|
| |
|
|
|
|
|
|
| |
__builtin_unreachable().
The next step is to warn if a block labeled unreachable is, in fact, reachable. Somewhat related to PR810.
llvm-svn: 109487
|
| |
|
|
|
|
| |
those by Lexer::LexEndOfFile().
llvm-svn: 109486
|
| |
|
|
|
|
| |
unbreaks using PTH with Boost (<rdar://problem/8227989>).
llvm-svn: 109484
|
| |
|
|
|
|
| |
of constant string literals, which is not too helpful, and only calls to strlen() are checked.
llvm-svn: 109480
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of the usual consistency checks used to determine when a precompiled
header is incompatible with the translation unit it's being loaded
into.
Enable this option when loading a precompiled preamble, because the
preamble loader will be performing all of this checking itself. Enable
the preamble-based test now that it's working.
This option is also useful for debugging Clang's PCH
(<rdar://problem/7532213>).
llvm-svn: 109475
|
| |
|
|
|
|
|
| |
- Stop reading in (and thus deserializing) every declaration in the TU when creating a dependent PCH.
- Switch the storage of a decl context's lexical declarations to a blob containing the IDs instead of a record. This is the only sane way of supporting update records later on.
llvm-svn: 109474
|
| |
|
|
|
|
|
| |
its absolute path on disk. Also, introduce a fun test for the
precompiled preamble, which almost works...
llvm-svn: 109470
|
| |
|
|
|
|
|
| |
if it hs side-effect to matchgcc's behaviour.
Addresses radar 8172109.
llvm-svn: 109467
|
| |
|
|
|
|
| |
I knew this code duplication would bite me.
llvm-svn: 109463
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reparsing an ASTUnit. When saving a preamble, create a buffer larger
than the actual file we're working with but fill everything from the
end of the preamble to the end of the file with spaces (so the lexer
will quickly skip them). When we load the file, create a buffer of the
same size, filling it with the file and then spaces. Then, instruct
the lexer to start lexing after the preamble, therefore continuing the
parse from the spot where the preamble left off.
It's now possible to perform a simple preamble build + parse (+
reparse) with ASTUnit. However, one has to disable a bunch of checking
in the PCH reader to do so. That part isn't committed; it will likely
be handled with some other kind of flag (e.g., -fno-validate-pch).
As part of this, fix some issues with null termination of the memory
buffers created for the preamble; we were trying to explicitly
NULL-terminate them, even though they were also getting implicitly
NULL terminated, leading to excess warnings about NULL characters in
source files.
llvm-svn: 109445
|
| |
|
|
| |
llvm-svn: 109443
|
| |
|
|
|
|
| |
to deleting it.
llvm-svn: 109441
|
| |
|
|
| |
llvm-svn: 109440
|
| |
|
|
|
|
|
|
| |
scanf format
string argument type checking.
llvm-svn: 109428
|
| |
|
|
| |
llvm-svn: 109427
|
| |
|
|
| |
llvm-svn: 109426
|
| |
|
|
|
|
| |
xvalues preserve xvalue-ness. Unfortunately I have no idea how to test this property; there doesn't seem to be a syntactical construct that triggers such a conversion and still allows the distinction between prvalues and xvalues to be made.
llvm-svn: 109406
|
| |
|
|
| |
llvm-svn: 109396
|
| |
|
|
|
|
|
| |
worked for C anyway. Also kills the -cc1 options -parse-noop and
-parse-print-callbacks.
llvm-svn: 109392
|
| |
|
|
|
|
| |
into other code. Make it an array instead of a constant-length vector.
llvm-svn: 109384
|
| |
|
|
| |
llvm-svn: 109382
|
| |
|
|
| |
llvm-svn: 109381
|
| |
|
|
| |
llvm-svn: 109380
|
| |
|
|
| |
llvm-svn: 109379
|
| |
|
|
| |
llvm-svn: 109378
|
| |
|
|
|
|
| |
since we aren't going to be calling them ever.
llvm-svn: 109377
|
| |
|
|
| |
llvm-svn: 109375
|
| |
|
|
| |
llvm-svn: 109366
|
| |
|
|
| |
llvm-svn: 109358
|
| |
|
|
| |
llvm-svn: 109357
|
| |
|
|
|
|
| |
dependent size.
llvm-svn: 109356
|
| |
|
|
| |
llvm-svn: 109315
|
| |
|
|
|
|
|
|
|
| |
when the RHS of the ||/&& is ever 0 or 1. This handles a variety of
creative idioms for "true" used in C programs and fixes many false
positives at the expense of a few false negatives. This fixes
rdar://8230351.
llvm-svn: 109314
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Avoid use of Path.makeAbsolute().
DW_TAG_compile_unit uses two attributes DW_AT_name and DW_AT_comp_dir. Their expected values are:
$ clang foo.c -g
DW_AT_name - foo.c
DW_AT_comp_dir - `pwd`
$ clang one/two/foo.c -g
DW_AT_name - one/two/foo.c
DW_AT_comp_dir - `pwd`
$ clang /tmp/one/foo.c -g
DW_AT_name - /tmp/one/foo.c
DW_AT_comp_dir - empty
llvm-svn: 109303
|
| |
|
|
|
|
|
| |
precompiled preamble. This will suppress the -pedantic "no newline at
end of file" warning.
llvm-svn: 109301
|
| |
|
|
|
|
|
|
| |
appropriately-padded main file buffer (that has spaces in the extra
"reserved" space) and thread that buffer through to the parsing
function. This still does nothing.
llvm-svn: 109299
|
| |
|
|
|
|
| |
Diagnose attempts to do this under the GNU or fragile NeXT runtimes.
llvm-svn: 109298
|
| |
|
|
|
|
|
|
| |
use of property-dot syntax using 'super' as receiver
is 'void'. This fixes a bug in generating correct
API for setter call. Fixes radar 8203426.
llvm-svn: 109297
|
| |
|
|
|
|
|
| |
Sema::ActOnDeclarator doesn't mean that the Decl we ended up creating
has a useful name. <rdar://problem/8229910>
llvm-svn: 109296
|
| |
|
|
|
|
|
|
|
|
|
|
| |
that preamble (the preamble text, preamble file, reserved main file
size). Check these details when we try to rebuild the precompiled
preamble, and when nothing has changed, re-use the precompiled
preamble.
This code is still very much a WIP, and can't even properly be tested
because we have no way to use the precompiled preamble yet. "Trust me"
llvm-svn: 109294
|
| |
|
|
| |
llvm-svn: 109292
|
| |
|
|
|
|
|
|
|
|
| |
analyzer checks.
- Created a new class to do post-analysis
- Updated several test cases with unreachable code to expect a warning
- Added some general tests
llvm-svn: 109286
|
| |
|
|
| |
llvm-svn: 109284
|
| |
|
|
| |
llvm-svn: 109280
|
| |
|
|
|
|
|
| |
as well as some significant asymptotic inefficiencies with threading
multiple jumps through deep cleanups.
llvm-svn: 109274
|
| |
|
|
|
|
| |
Radar 8218839.
llvm-svn: 109272
|
| |
|
|
|
|
| |
absolute path for filename allows clients to query complete file location info from gdb breakpoints. Save constructed full file name.
llvm-svn: 109263
|