NAKAMURA Takumi
6189422f08
LibclangTest.cpp: s/uint/unsigned/. I think 'uint' is not a standard type.
...
llvm-svn: 211997
2014-06-29 11:07:48 +00:00
Ben Langmuir
f3050d2461
Add reparse test for libclang
...
Adapted from a reproducer by Dan Schmidt, thanks!
llvm-svn: 211910
2014-06-27 17:04:26 +00:00
Craig Topper
416fa34b87
[C++11] Use 'nullptr'. Unittests edition.
...
llvm-svn: 210423
2014-06-08 08:38:12 +00:00
Justin Bogner
44fa45034b
VirtualFileSystem: Fix a few directory traversal bugs in VFSWriter
...
There are a couple of issues with writing VFS maps that are awkward to
fix within the current mutually recursive approach. Instead, replace
the algorithm with an iterative version that uses an explicit stack of
directories.
Includes tests for cases the old approach was tripping on.
llvm-svn: 209332
2014-05-21 22:46:51 +00:00
Justin Bogner
5719614b77
libclang: Give each VirtualFileOverlay unit test its own name
...
llvm-svn: 209257
2014-05-20 23:52:11 +00:00
Justin Bogner
1c078f2b1f
VirtualFileSystem: Fix false positives in YAMLVFSWriter::containedIn
...
Checking if a path starts with another path isn't sufficient for
determining if one is contained within the heirarchy of the other.
We need to ensure that the substring ends at a directory boundary.
llvm-svn: 209250
2014-05-20 22:12:58 +00:00
Ben Langmuir
5bf828dd34
Switch another write_escaped to yaml::escape
...
I missed one in r206443.
llvm-svn: 208941
2014-05-16 01:38:59 +00:00
Nico Weber
655af097a1
Fix a tiny test-only leak, found by LSan.
...
llvm-svn: 207137
2014-04-24 19:04:10 +00:00
Ben Langmuir
a56071c5fb
When writing YAML in libclang, use yaml::escape instead of write_escaped
...
The YAMLParser has its own escaped string representation, and does not
handle octal escape sequences. When writing the virtual file system to a
YAML file, use yaml::escape().
llvm-svn: 206443
2014-04-17 03:31:02 +00:00
Argyrios Kyrtzidis
a9ab4d46bb
[libclang] Introduce clang_VirtualFileOverlay_setCaseSensitivity that exposes the VFS option
...
to set the case-sensitivity for lookups.
rdar://16374696
llvm-svn: 204303
2014-03-20 04:51:48 +00:00
Argyrios Kyrtzidis
d502a10c5e
[libclang] Introduce APIs that assist in constructing a simple module.map file for a user framework.
...
rdar://16092858
llvm-svn: 202681
2014-03-03 07:41:45 +00:00
Argyrios Kyrtzidis
74c96c0c75
[libclang] Change clang_VirtualFileOverlay_writeToBuffer to return a malloc'ed buffer.
...
Returning CXString is not appropriate if we want to switch to a non-string format buffer.
llvm-svn: 202675
2014-03-03 06:38:52 +00:00
Argyrios Kyrtzidis
0b9682efa4
[libclang] Introduce libclang APIs for creating a buffer with a JSON virtual file overlay description.
...
The current API only supports adding 'virtual file path' -> 'real file path' mappings.
rdar://15986708
llvm-svn: 202105
2014-02-25 03:59:23 +00:00
Dmitri Gribenko
8850cdad34
libclang: ensure clang_createTranslationUnit2 always initializes *TU
...
llvm-svn: 201657
2014-02-19 10:24:00 +00:00
Dmitri Gribenko
f85b929211
Add files that I forgot to svn add in 201578.
...
llvm-svn: 201579
2014-02-18 15:29:17 +00:00
Juergen Ributzka
c67c93d031
Revert "libclang: fix a bug in processing invalid arguments, introduced in r201249,"
...
Reverting commit (201346) for now, because it is breaking our internal builds.
llvm-svn: 201373
2014-02-13 23:34:54 +00:00
Dmitri Gribenko
fbe5672746
libclang: fix a bug in processing invalid arguments, introduced in r201249,
...
pointed out by Daniel Jasper in r201329
llvm-svn: 201346
2014-02-13 16:51:38 +00:00