summaryrefslogtreecommitdiffstats
path: root/clang/unittests/libclang/LibclangTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use 'override/final' instead of 'virtual' for overridden methodsAlexander Kornienko2015-04-111-2/+2
| | | | | | | | | | | | | | | | | | | | Summary: The patch is generated using clang-tidy misc-use-override check. This command was used: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \ -checks='-*,misc-use-override' -header-filter='llvm|clang' -j=32 -fix Reviewers: dblaikie Reviewed By: dblaikie Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D8926 llvm-svn: 234678
* [cleanup] Re-sort the #include lines using llvm/utils/sort_includes.pyChandler Carruth2015-01-141-1/+1
| | | | | | | No functionality changed, this is a purely mechanical cleanup to ensure the #include order remains consistent across the project. llvm-svn: 225975
* VirtualFileSystem: Correctly generate the mapping for an empty VFSJustin Bogner2014-07-151-0/+10
| | | | | | | In r209332 I accidentally broke generation of empty VFS maps. This fixes the issue and adds a test. llvm-svn: 213028
* Use temporary module cache in testBen Langmuir2014-07-071-1/+3
| | | | llvm-svn: 212467
* Consider module depedencies when checking a preamble in libclangBen Langmuir2014-06-301-1/+34
| | | | | | | | | | | | | Add module dependencies (header files, module map files) to the list of files to check when deciding whether to rebuild a preamble. That fixes using preambles with module imports so long as they are in non-overridden files. My intent is to use to unify the existing dependency collectors to the new “DependencyCollectory” interface from this commit, starting with the DependencyFileGenerator. llvm-svn: 212060
* LibclangTest.cpp: s/uint/unsigned/. I think 'uint' is not a standard type.NAKAMURA Takumi2014-06-291-3/+3
| | | | llvm-svn: 211997
* Add reparse test for libclangBen Langmuir2014-06-271-0/+89
| | | | | | Adapted from a reproducer by Dan Schmidt, thanks! llvm-svn: 211910
* [C++11] Use 'nullptr'. Unittests edition.Craig Topper2014-06-081-6/+7
| | | | llvm-svn: 210423
* VirtualFileSystem: Fix a few directory traversal bugs in VFSWriterJustin Bogner2014-05-211-0/+68
| | | | | | | | | | | 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
* libclang: Give each VirtualFileOverlay unit test its own nameJustin Bogner2014-05-201-173/+176
| | | | llvm-svn: 209257
* VirtualFileSystem: Fix false positives in YAMLVFSWriter::containedInJustin Bogner2014-05-201-0/+51
| | | | | | | | 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
* Switch another write_escaped to yaml::escapeBen Langmuir2014-05-161-2/+2
| | | | | | I missed one in r206443. llvm-svn: 208941
* Fix a tiny test-only leak, found by LSan.Nico Weber2014-04-241-8/+8
| | | | llvm-svn: 207137
* When writing YAML in libclang, use yaml::escape instead of write_escapedBen Langmuir2014-04-171-0/+21
| | | | | | | | 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
* [libclang] Introduce clang_VirtualFileOverlay_setCaseSensitivity that ↵Argyrios Kyrtzidis2014-03-201-0/+23
| | | | | | | | | | exposes the VFS option to set the case-sensitivity for lookups. rdar://16374696 llvm-svn: 204303
* [libclang] Introduce APIs that assist in constructing a simple module.map ↵Argyrios Kyrtzidis2014-03-031-0/+23
| | | | | | | | file for a user framework. rdar://16092858 llvm-svn: 202681
* [libclang] Change clang_VirtualFileOverlay_writeToBuffer to return a ↵Argyrios Kyrtzidis2014-03-031-4/+6
| | | | | | | | malloc'ed buffer. Returning CXString is not appropriate if we want to switch to a non-string format buffer. llvm-svn: 202675
* [libclang] Introduce libclang APIs for creating a buffer with a JSON virtual ↵Argyrios Kyrtzidis2014-02-251-0/+111
| | | | | | | | | | file overlay description. The current API only supports adding 'virtual file path' -> 'real file path' mappings. rdar://15986708 llvm-svn: 202105
* libclang: ensure clang_createTranslationUnit2 always initializes *TUDmitri Gribenko2014-02-191-1/+14
| | | | llvm-svn: 201657
* Add files that I forgot to svn add in 201578.Dmitri Gribenko2014-02-181-0/+17
| | | | llvm-svn: 201579
* Revert "libclang: fix a bug in processing invalid arguments, introduced in ↵Juergen Ributzka2014-02-131-17/+0
| | | | | | | | r201249," Reverting commit (201346) for now, because it is breaking our internal builds. llvm-svn: 201373
* libclang: fix a bug in processing invalid arguments, introduced in r201249,Dmitri Gribenko2014-02-131-0/+17
pointed out by Daniel Jasper in r201329 llvm-svn: 201346
OpenPOWER on IntegriCloud