- Jul 28, 2010
-
-
Argyrios Kyrtzidis authored
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
-
- Jul 27, 2010
-
-
Eli Friedman authored
llvm-svn: 109537
-
Devang Patel authored
llvm-svn: 109535
-
Eli Friedman authored
llvm-svn: 109532
-
Ted Kremenek authored
Finesse 'idempotent operations' analyzer issues to include the opcode of the 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
-
Sebastian Redl authored
Update the list of lexical decls in the TU for chained PCHs. This makes -ast-print show the decls from the dependent PCH. llvm-svn: 109524
-
Ted Kremenek authored
llvm-svn: 109517
-
Devang Patel authored
llvm-svn: 109507
-
Douglas Gregor authored
llvm-svn: 109505
-
Argyrios Kyrtzidis authored
Fixes http://llvm.org/PR7692 llvm-svn: 109501
-
Michael J. Spencer authored
Revert r109428 "Hoist argument type checking into CheckFormatHandler. This is prep for scanf format" Got errors about ASTContext being undefined with Visual Studio 2010. llvm-svn: 109491
-
Jordy Rose authored
The next step is to warn if a block labeled unreachable is, in fact, reachable. Somewhat related to PR810. llvm-svn: 109487
-
Ted Kremenek authored
Add PTHLexer::LexEndOfFile() to emit diagnostics at end-of-file similar to those by Lexer::LexEndOfFile(). llvm-svn: 109486
-
Ted Kremenek authored
PTH generation: Don't save the leading '#' token in a null directive. This unbreaks using PTH with Boost (<rdar://problem/8227989>). llvm-svn: 109484
-
Jordy Rose authored
Groundwork for C string length tracking. Currently only handles the length of constant string literals, which is not too helpful, and only calls to strlen() are checked. llvm-svn: 109480
-
Douglas Gregor authored
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
-
Sebastian Redl authored
- 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
-
Douglas Gregor authored
its absolute path on disk. Also, introduce a fun test for the precompiled preamble, which almost works... llvm-svn: 109470
-
Fariborz Jahanian authored
if it hs side-effect to matchgcc's behaviour. Addresses radar 8172109. llvm-svn: 109467
-
John McCall authored
I knew this code duplication would bite me. llvm-svn: 109463
-
- Jul 26, 2010
-
-
Douglas Gregor authored
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
-
Dan Gohman authored
llvm-svn: 109443
-
Dan Gohman authored
to deleting it. llvm-svn: 109441
-
Dan Gohman authored
llvm-svn: 109440
-
Ted Kremenek authored
string argument type checking. llvm-svn: 109428
-
Ted Kremenek authored
llvm-svn: 109427
-
Devang Patel authored
llvm-svn: 109426
-
Sebastian Redl authored
Make sure that implicit qualification and derived-to-base conversions of 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
-
Nick Lewycky authored
llvm-svn: 109396
-
Douglas Gregor authored
worked for C anyway. Also kills the -cc1 options -parse-noop and -parse-print-callbacks. llvm-svn: 109392
-
- Jul 25, 2010
-
-
Benjamin Kramer authored
into other code. Make it an array instead of a constant-length vector. llvm-svn: 109384
-
Douglas Gregor authored
llvm-svn: 109382
-
Douglas Gregor authored
llvm-svn: 109381
-
Douglas Gregor authored
llvm-svn: 109380
-
Douglas Gregor authored
llvm-svn: 109379
-
Douglas Gregor authored
llvm-svn: 109378
-
Douglas Gregor authored
since we aren't going to be calling them ever. llvm-svn: 109377
-
Douglas Gregor authored
llvm-svn: 109375
-
Nick Lewycky authored
llvm-svn: 109366
-
- Jul 24, 2010
-
-
Eli Friedman authored
llvm-svn: 109358
-