#
2bf7fdb7 |
| 02-Jan-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
s/CPlusPlus0x/CPlusPlus11/g
llvm-svn: 171367
|
#
430a938f |
| 22-Dec-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] Don't try to translate diagnostics from the precompiled preamble to the code-completion results, the SourceManager state may be slightly different when code-completing.
And we don't even
[libclang] Don't try to translate diagnostics from the precompiled preamble to the code-completion results, the SourceManager state may be slightly different when code-completing.
And we don't even care for diagnostics when code-completing, anyway.
llvm-svn: 170979
show more ...
|
Revision tags: llvmorg-3.2.0, llvmorg-3.2.0-rc3 |
|
#
3a02247d |
| 04-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Sort all of Clang's files under 'lib', and fix up the broken headers uncovered.
This required manually correcting all of the incorrect main-module headers I could find, and running the new llvm/util
Sort all of Clang's files under 'lib', and fix up the broken headers uncovered.
This required manually correcting all of the incorrect main-module headers I could find, and running the new llvm/utils/sort_includes.py script over the files.
I also manually added quite a few missing headers that were uncovered by shuffling the order or moving headers up to be main-module-headers.
llvm-svn: 169237
show more ...
|
Revision tags: llvmorg-3.2.0-rc2 |
|
#
f8715de5 |
| 16-Nov-2012 |
Douglas Gregor <dgregor@apple.com> |
Since CreateTargetInfo is taking ownership of the target options, pass it as a pointer.
llvm-svn: 168136
|
#
2bafa007 |
| 16-Nov-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] When caching code-completion results, pass the CachedCompletionAllocator to the CodeCompletionTUInfo that is going to be used to get the results.
Previously we would use ASTUnit's CodeCom
[libclang] When caching code-completion results, pass the CachedCompletionAllocator to the CodeCompletionTUInfo that is going to be used to get the results.
Previously we would use ASTUnit's CodeCompletionTUInfo which has its own allocator that will go away when we reparse. That could result in a use-after-free bug when getting the parent context name from a CodeCompletionString.
Addresses rdar://12568377.
llvm-svn: 168133
show more ...
|
#
2ec29367 |
| 15-Nov-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[modules] Setup the import location of a module file and use it as the include location of the main file of an imported module.
llvm-svn: 168061
|
#
b2aa9234 |
| 15-Nov-2012 |
Dmitri Gribenko <gribozavr@gmail.com> |
Use empty parens for empty function parameter list instead of '(void)'.
llvm-svn: 168041
|
Revision tags: llvmorg-3.2.0-rc1 |
|
#
873c8583 |
| 09-Nov-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Turn FrontendInputFile into an immutable class and have it also accept a memory buffer instead of only a filename.
llvm-svn: 167627
|
#
870704f6 |
| 02-Nov-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
When code-completing don't disable the preprocessing record if modules are enabled.
llvm-svn: 167325
|
#
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
|
#
e878343c |
| 29-Oct-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Move getOriginalSourceFileName inline. Patch by Laszlo Nagy.
llvm-svn: 166981
|
#
d02437c9 |
| 25-Oct-2012 |
Douglas Gregor <dgregor@apple.com> |
ASTUnit doesn't actually care about the predefines; don't record them.
llvm-svn: 166650
|
#
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 ...
|
#
fc9e7a29 |
| 23-Oct-2012 |
Douglas Gregor <dgregor@apple.com> |
If the precompiled header named by "-include" is actually a directory, check each of the files within that directory to determine if any of them is an AST file that matches the language and target op
If the precompiled header named by "-include" is actually a directory, check each of the files within that directory to determine if any of them is an AST file that matches the language and target options. If so, the first matching AST file is loaded. This fixes a longstanding discrepency with GCC's precompiled header implementation.
llvm-svn: 166469
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 ...
|
#
cb177f15 |
| 16-Oct-2012 |
Douglas Gregor <dgregor@apple.com> |
Serialize TargetOptions into an AST file, and make sure that we keep target options around so they can be accessed at any point (rather than keeping them transient).
llvm-svn: 166072
|
#
bc10b9fb |
| 15-Oct-2012 |
Douglas Gregor <dgregor@apple.com> |
Teach TargetInfo to hold on to the TargetOptions with which it was created.
llvm-svn: 165943
|
#
0db720f0 |
| 11-Oct-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] Improve AST serialization done by ASTUnit::Save().
The ASTUnit needs to initialize an ASTWriter at the beginning of parsing to fully handle serialization of a translation unit that import
[libclang] Improve AST serialization done by ASTUnit::Save().
The ASTUnit needs to initialize an ASTWriter at the beginning of parsing to fully handle serialization of a translation unit that imports modules. Do this by introducing an option to enable it, which corresponds to CXTranslationUnit_ForSerialization on the C API side.
llvm-svn: 165717
show more ...
|
#
e445c723 |
| 10-Oct-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
When indexing a module file, for the ppIncludedFile callback give an invalid location if the location points to the synthetic buffer for the module input.
llvm-svn: 165592
|
#
f484b139 |
| 03-Oct-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] When indexing, invoke the importedASTFile for PCH files as well.
llvm-svn: 165161
|
#
e514b200 |
| 03-Oct-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Some renames to use the 'visitor' nomenclature, no functionality change.
llvm-svn: 165083
|