| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
| |
block returns structs. Fies radar 8241648.
Executable test added to llvm test suite.
llvm-svn: 109620
|
| |
|
|
| |
llvm-svn: 109607
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
parenthesized, unlike in C++, e.g.,
C has: typeof ( expression)
C++ has: typeof unary-expression
So, once we've parsed a parenthesized expression after typeof, we
should only go on to parse the postfix expression suffix if we're in
C++. Fixes <rdar://problem/8237491>.
llvm-svn: 109606
|
| |
|
|
|
|
|
|
| |
__debug overflow_stack'.
- For testing crash reporting stuff... you'd think I could just use some C++
code but Doug keeps fixing stuff!
llvm-svn: 109587
|
| |
|
|
|
|
|
| |
rebuilder, i.e., remove a silly short-sighted hack from long
ago. Thanks to Abramo Bagnara for the test case/bug report!
llvm-svn: 109583
|
| |
|
|
|
|
|
|
| |
dependent bases, construct a dependent nested-name-specifier rather
than complaining that the name could not be found within the current
instantiation itself. Fixes PR7725.
llvm-svn: 109582
|
| |
|
|
|
|
| |
a fixme mentioning the simplification when CallSite can clone itself
llvm-svn: 109575
|
| |
|
|
|
|
| |
Tested by mi1-var-obj.exp in gdb testsuite.
llvm-svn: 109571
|
| |
|
|
|
|
|
|
|
| |
enclosing normal cleanup, not the top of the EH stack. I'm *really*
surprised this hasn't been causing more problems.
Fixes rdar://problem/8231514.
llvm-svn: 109569
|
| |
|
|
|
|
|
|
|
| |
- Allowed reporting of dead macros
- Added path walking function to search for false positives in conditional statements
- Updated some affected tests
- Added some false positive test cases
llvm-svn: 109561
|
| |
|
|
|
|
| |
their own CheckerHelpers file.
llvm-svn: 109560
|
| |
|
|
|
|
| |
PCHs; tests for this to follow.
llvm-svn: 109554
|
| |
|
|
| |
llvm-svn: 109550
|
| |
|
|
|
|
|
|
|
|
|
|
| |
CodeGenModule::MayDeferGeneration into a new function,
DeclIsRequiredFunctionOrFileScopedVar.
This function is part of the public CodeGen interface since it's essentially a CodeGen predicate that is also
needed by the PCH mechanism to determine whether a decl needs to be deserialized during PCH loading for codegen purposes.
This fixes current (and avoids future) codegen-from-PCH bugs.
llvm-svn: 109546
|
| |
|
|
| |
llvm-svn: 109537
|
| |
|
|
| |
llvm-svn: 109535
|
| |
|
|
| |
llvm-svn: 109532
|
| |
|
|
|
|
| |
binary operator for clearer error reporting. Also remove the 'Idempotent operation' prefix in messages; it's redundant since the bug type is the same.
llvm-svn: 109527
|
| |
|
|
|
|
| |
-ast-print show the decls from the dependent PCH.
llvm-svn: 109524
|
| |
|
|
| |
llvm-svn: 109517
|
| |
|
|
| |
llvm-svn: 109507
|
| |
|
|
| |
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
|