| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 122340
|
|
|
|
| |
llvm-svn: 120880
|
|
|
|
| |
llvm-svn: 120297
|
|
|
|
|
|
|
|
|
| |
FileSystemOpts through a ton of apis, simplifying a lot of code.
This also fixes a latent bug in ASTUnit where it would invoke
methods on FileManager without creating one in some code paths
in cindextext.
llvm-svn: 120010
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When -working-directory is passed in command line, file paths are resolved relative to the specified directory.
This helps both when using libclang (where we can't require the user to actually change the working directory)
and to help reproduce test cases when the reproduction work comes along.
--FileSystemOptions is introduced which controls how file system operations are performed (currently it just contains
the working directory value if set).
--FileSystemOptions are passed around to various interfaces that perform file operations.
--Opening & reading the content of files should be done only through FileManager. This is useful in general since
file operations will be abstracted in the future for the reproduction mechanism.
FileSystemOptions is independent of FileManager so that we can have multiple translation units sharing the same
FileManager but with different FileSystemOptions.
Addresses rdar://8583824.
llvm-svn: 118203
|
|
|
|
|
|
| |
doesn't try to define them as typedefs.
llvm-svn: 113126
|
|
|
|
|
|
| |
is not a predefined macro, remove it.
llvm-svn: 112953
|
|
|
|
| |
llvm-svn: 112478
|
|
|
|
| |
llvm-svn: 111729
|
|
|
|
| |
llvm-svn: 110126
|
|
|
|
| |
llvm-svn: 110116
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
ASTUnit/CXTranslationUnit. We can't actually use this preamble yet,
however.
llvm-svn: 109202
|
|
|
|
|
|
|
|
| |
'long'. The practical upshot is so that the uint64_t we define in our stdint.h
ends up being compatible with that defined by gcc (at least on Darwin), which
otherwise could lead to type incompatibilities with other system headers.
llvm-svn: 107255
|
|
|
|
| |
llvm-svn: 107064
|
|
|
|
|
|
| |
Fixes <rdar://problem/8098441>.
llvm-svn: 107061
|
|
|
|
| |
llvm-svn: 106786
|
|
|
|
|
|
| |
target specific preprocessor define as well.
llvm-svn: 106715
|
|
|
|
| |
llvm-svn: 104906
|
|
|
|
| |
llvm-svn: 104742
|
|
|
|
| |
llvm-svn: 102686
|
|
|
|
|
|
|
|
| |
.S files. "# 123" is passed through as-is, not treated as a line
marker in this mode. No testcase, because it would be nasty and isn't
worth it.
llvm-svn: 102391
|
|
|
|
|
|
|
| |
and only define it where we know we need it---Linux and Cygwin. Thanks
to Chris for the prodding.
llvm-svn: 101989
|
|
|
|
|
|
|
| |
platform that typically uses glibc. Fixes a Boost.Thread compilation
failure.
llvm-svn: 101450
|
|
|
|
|
|
|
|
|
|
| |
copy the source buffers provided rather than referencing them
directly, so that the caller can free those buffers immediately after
calling clang_createTranslationUnitFromSourceFile(). Otherwise, we
risk hitting those buffers later (when building source ranges, forming
diagnostics, etc.).
llvm-svn: 97296
|
|
|
|
|
|
|
| |
calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling,
for Darwin ARM.
llvm-svn: 95787
|
|
|
|
|
|
| |
translation units that include unsaved files.
llvm-svn: 94258
|
|
|
|
|
|
| |
Comments and/or improvements to the documentation are welcome.
llvm-svn: 93982
|
|
|
|
|
|
|
| |
temporaries (this is one reason I'm nervous about propagating their use beyond
particularly performance critical places).
llvm-svn: 93981
|
|
|
|
|
|
| |
rewriting for any target. (refixes radar 7530235).
llvm-svn: 93331
|
|
|
|
| |
llvm-svn: 93088
|
|
|
|
| |
llvm-svn: 93058
|
|
|
|
| |
llvm-svn: 93057
|
|
|
|
|
|
|
|
|
|
|
|
| |
std::vectors.
- MacroBuilder wraps a raw_ostream so it can easily write to any buffer
supported by raw_ostream.
- MacroBuilder's method take Twines for easy string concatenation (this was done
with sprintf and temporary buffers before).
- Targets still use std::vector as they don't have access to the builder.
llvm-svn: 93051
|
|
|
|
| |
llvm-svn: 93049
|
|
|
|
| |
llvm-svn: 93048
|
|
|
|
| |
llvm-svn: 92923
|
|
|
|
| |
llvm-svn: 92917
|
|
|
|
|
|
| |
http://llvm.org/viewvc/llvm-project?view=rev&revision=70926
llvm-svn: 90596
|
|
|
|
|
|
| |
from me -- they thought wrong.
llvm-svn: 90442
|
|
|
|
|
|
|
|
|
|
|
|
| |
file. This is accomplished by introducing the notion of a "virtual"
file into the file manager, which provides a FileEntry* for a named
file whose size and modification time are known but which may not
exist on disk.
Added a cute little test that remaps both a .c file and a .h file it
includes to alternative files.
llvm-svn: 90329
|
|
|
|
| |
llvm-svn: 90322
|
|
|
|
|
|
|
|
| |
command line to the input file.
We passed <built-in> on the way in, so we should pass it again on the way out.
llvm-svn: 90250
|
|
|
|
| |
llvm-svn: 89597
|
|
|
|
| |
llvm-svn: 89353
|
|
|
|
|
|
| |
stdint.h.
llvm-svn: 89348
|
|
|
|
| |
llvm-svn: 89346
|
|
|
|
|
|
|
| |
__INTPTR_TYPE__ as the last is used in the test/CodeGen/const-init.c and all
could potentially be in use in the wild. My apologies.
llvm-svn: 89345
|
|
|
|
|
|
| |
replaced with __PTRDIFF_WIDTH__.
llvm-svn: 89344
|
|
|
|
| |
llvm-svn: 89342
|