#
1b3240b0 |
| 09-Nov-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Make CompilerInstance::InitializeSourceManager accept a FrontendInputFile, no functionality change.
llvm-svn: 167626
|
#
188dbef2 |
| 07-Nov-2012 |
Douglas Gregor <dgregor@apple.com> |
When loading a module fails because it is out of date, rebuild that module in place. <rdar://problem/10138913>
llvm-svn: 167539
|
#
e2951f48 |
| 05-Nov-2012 |
Daniel Dunbar <daniel@zuster.org> |
Frontend: Add support for reading named pipes as the main file.
- The whole {File,Source}Manager is built around wanting to pre-determine the size of files, so we can't fit this in naturally. In
Frontend: Add support for reading named pipes as the main file.
- The whole {File,Source}Manager is built around wanting to pre-determine the size of files, so we can't fit this in naturally. Instead, we handle it like we do STDIN, where we just replace the main file contents upfront.
llvm-svn: 167419
show more ...
|
#
d7c16b25 |
| 31-Oct-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[PCH] Remove the stat cache from the PCH file.
The stat cache became essentially useless ever since we started validating all file entries in the PCH. But the motivating reason for removing it now i
[PCH] Remove the stat cache from the PCH file.
The stat cache became essentially useless ever since we started validating all file entries in the PCH. But the motivating reason for removing it now is that it also affected correctness in this situation:
-You have a header without include guards (using "#pragma once" or #import) -When creating the PCH: -The same header is referenced in an #include with different filename cases. -In the PCH, of course, we record only one file entry for the header file -But we cache in the PCH file the stat info for both filename cases
-Then the source files are updated and the header file is updated in a way that its size and modification time are the same but its inode changes
-When using the PCH: -We validate the headers, we check that header file and we create a file entry with its current inode -There's another #include with a filename with different case than the previously created file entry -In order to get its stat info we go through the cached stat info of the PCH and we receive the old inode -because of the different inodes, we think they are different files so we go ahead and include its contents.
Removing the stat cache will potentially break clients that are attempting to use the stat cache as a way of avoiding having the actual input files available. If that use case is important, patches are welcome to bring it back in a way that will actually work correctly (i.e., emit a PCH that is self-contained, coping with literal strings, line/column computations, etc.).
This fixes rdar://5502805
llvm-svn: 167172
show more ...
|
#
3a6c8141 |
| 31-Oct-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Decouple code-completion for the SkipFunctionBodies frontend option and add a test to make sure code-completion skips bodies.
llvm-svn: 167141
|
#
1452ff15 |
| 24-Oct-2012 |
Douglas Gregor <dgregor@apple.com> |
Teach the preprocessor to hold onto the preprocessor options.
llvm-svn: 166599
|
#
b85b9ccb |
| 24-Oct-2012 |
Douglas Gregor <dgregor@apple.com> |
Move HeaderSearchOptions into the Lex library, make it intrusively reference-counted, and hold a reference to it in HeaderSearch.
llvm-svn: 166583
|
#
811db4ea |
| 23-Oct-2012 |
Douglas Gregor <dgregor@apple.com> |
Make DiagnosticOptions intrusively reference-counted, and make sure the various stakeholders bump up the reference count. In particular, the diagnostics engine now keeps the DiagnosticOptions object
Make DiagnosticOptions intrusively reference-counted, and make sure the various stakeholders bump up the reference count. In particular, the diagnostics engine now keeps the DiagnosticOptions object alive.
llvm-svn: 166508
show more ...
|
#
4b29c16e |
| 22-Oct-2012 |
Douglas Gregor <dgregor@apple.com> |
Allow clients of the AST reader to specify what kinds of AST load failures they know how to tolerate, e.g., out-of-date input files or configuration/version mismatches. Suppress the corresponding dia
Allow clients of the AST reader to specify what kinds of AST load failures they know how to tolerate, e.g., out-of-date input files or configuration/version mismatches. Suppress the corresponding diagnostics if the client can handle it.
No clients actually use this functionality, yet.
llvm-svn: 166449
show more ...
|
#
c9ad5fb6 |
| 22-Oct-2012 |
Douglas Gregor <dgregor@apple.com> |
Distinguish the various kinds of AST file loading failures: file corruption, compiler version mismatch, target/language configuration mismatch, out-of-date AST file. No functionality change yet.
llv
Distinguish the various kinds of AST file loading failures: file corruption, compiler version mismatch, target/language configuration mismatch, out-of-date AST file. No functionality change yet.
llvm-svn: 166446
show more ...
|
#
13afbf42 |
| 14-Oct-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
Make sure temporary files are deleted when recovering from a crash when compiling modules.
llvm-svn: 165911
|
#
3c717b45 |
| 14-Oct-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
Delete temporary output files when an error occurs during PCH reading.
This reduces the spam make test leaves behind in /tmp. The assert isn't particularly useful because it's not run with -disable-
Delete temporary output files when an error occurs during PCH reading.
This reduces the spam make test leaves behind in /tmp. The assert isn't particularly useful because it's not run with -disable-free (the default when using the clang driver) but should cover all -cc1 tests.
llvm-svn: 165910
show more ...
|
#
cb28f9d7 |
| 09-Oct-2012 |
Douglas Gregor <dgregor@apple.com> |
Rework the (de-)serialization of macros, as stored in MacroInfo*. Instead of simply dumping an offset into the current file, give each macro definition a proper ID with all of the standard modules-re
Rework the (de-)serialization of macros, as stored in MacroInfo*. Instead of simply dumping an offset into the current file, give each macro definition a proper ID with all of the standard modules-remapping facilities. Additionally, when a macro is modified in a subsequent AST file (e.g., #undef'ing a macro loaded from another module or from a precompiled header), provide a macro update record rather than rewriting the entire macro definition. This gives us greater consistency with the way we handle declarations, and ties together macro definitions much more cleanly.
Note that we're still not actually deserializing macro history (we never were), but it's far easy to do properly now.
llvm-svn: 165560
show more ...
|
#
72d1aa3c |
| 03-Oct-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Introduce ASTConsumer::HandleImplicitImportDecl() callback that is invoked when an ImportDecl that was implicitly created due to an inclusion directive.
llvm-svn: 165084
|
#
43af5132 |
| 29-Sep-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
In the Module class, add a reference to the corresponding AST file.
llvm-svn: 164873
|
#
3292d06a |
| 02-Jul-2012 |
Dmitri Gribenko <gribozavr@gmail.com> |
Add a new libclang completion API to get brief documentation comment that is attached to a declaration in the completion string.
Since extracting comments isn't free, a new code completion option is
Add a new libclang completion API to get brief documentation comment that is attached to a declaration in the completion string.
Since extracting comments isn't free, a new code completion option is introduced.
A new code completion option that enables including brief comments into CodeCompletionString should be a, err, code completion option. But because ASTUnit caches global declarations during parsing before even completion consumer is created, the option is duplicated as a translation unit option (in both libclang and ASTUnit, like the option to cache code completion results).
llvm-svn: 159539
show more ...
|
#
3ef9c447 |
| 16-May-2012 |
Manuel Klimek <klimek@google.com> |
Pulls diagnostics for temp file handling into the common diagnostic kinds.
llvm-svn: 156947
|
Revision tags: llvmorg-3.1.0 |
|
#
f6a6346d |
| 11-May-2012 |
Eric Christopher <echristo@apple.com> |
For final output files create them with mode 0664 to match other compilers and expected defaults.
Part of rdar://11325849
llvm-svn: 156592
|
Revision tags: llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2 |
|
#
6e9a8add |
| 01-May-2012 |
David Blaikie <dblaikie@gmail.com> |
Remove variables made dead by r155923
This makes Clang's build warning free again.
llvm-svn: 155928
|
#
8568fb91 |
| 01-May-2012 |
Ted Kremenek <kremenek@apple.com> |
Remove dead code found by static analyzer.
llvm-svn: 155923
|
Revision tags: llvmorg-3.1.0-rc1 |
|
#
29898f45 |
| 16-Apr-2012 |
Fariborz Jahanian <fjahanian@apple.com> |
objective-c modern translator: buildit objc bool type for rewriter project will be BoolTy. // rdar://11231426.
llvm-svn: 154861
|
#
2fca3c2c |
| 12-Apr-2012 |
Erik Verbruggen <erikjv@me.com> |
Changed all direct calls to CompletionConsumer.reset(..) to go call CompilerInstance::setCodeCompletionConsumer instead, in order to change the SkipFunctionBodies flag accordingly. Also fixed setCode
Changed all direct calls to CompletionConsumer.reset(..) to go call CompilerInstance::setCodeCompletionConsumer instead, in order to change the SkipFunctionBodies flag accordingly. Also fixed setCodeCompletionConsumer to take a reset() to null into account.
llvm-svn: 154585
show more ...
|
#
6e92251f |
| 12-Apr-2012 |
Erik Verbruggen <erikjv@me.com> |
Added a flag to the parser to skip method bodies.
llvm-svn: 154584
|
#
4a280ff4 |
| 07-Mar-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[PCH] Mark a PCH file with a flag to indicate if the serialized AST had compiler errors or not.
-Control whether ASTReader should reject such a PCH by a boolean flag at ASTReader's creation time. By
[PCH] Mark a PCH file with a flag to indicate if the serialized AST had compiler errors or not.
-Control whether ASTReader should reject such a PCH by a boolean flag at ASTReader's creation time. By default, such a PCH file will be rejected with an error when trying to load it.
[libclang] Allow clang_saveTranslationUnit to create a PCH file even if compiler errors occurred. -Have libclang API calls accept a PCH that had compiler errors.
The general idea is that we want libclang to stay functional even if a PCH had a compiler error. rdar://10976363.
llvm-svn: 152192
show more ...
|
#
647dcd80 |
| 05-Mar-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[preprocessor] Enhance PreprocessingRecord to keep track of locations of conditional directives.
Introduce PreprocessingRecord::rangeIntersectsConditionalDirective() which returns true if a given ra
[preprocessor] Enhance PreprocessingRecord to keep track of locations of conditional directives.
Introduce PreprocessingRecord::rangeIntersectsConditionalDirective() which returns true if a given range intersects with a conditional directive block.
llvm-svn: 152018
show more ...
|