Rafael Espindola
46f68f50f0
Fix the static build.
...
llvm-svn: 295245
2017-02-15 22:19:04 +00:00
Argyrios Kyrtzidis
08155c9a54
[c-index-test] CMake: add missing reference to clangSerialization library.
...
llvm-svn: 293466
2017-01-30 07:11:27 +00:00
Argyrios Kyrtzidis
5fab854082
[c-index-test] Provide capability for 'c-index-test core' to dump symbol information from a PCH/module file.
...
llvm-svn: 293416
2017-01-29 04:50:35 +00:00
Argyrios Kyrtzidis
223838aea2
[c-index-test] CMake: When installing c-index-test to a different prefix directory, add an rpath so that
...
it can find libclang.
llvm-svn: 261445
2016-02-20 20:34:55 +00:00
NAKAMURA Takumi
15c4ce4c50
c-index-test: Fix libdeps corresponding to r260841.
...
llvm-svn: 260847
2016-02-14 09:19:04 +00:00
Argyrios Kyrtzidis
6fdcb9c590
[index] Enhance c-index-test tool and have it link and test the clangIndex library directly.
...
llvm-svn: 260842
2016-02-14 06:39:11 +00:00
Argyrios Kyrtzidis
f10158c025
[CMake] Don't install c-index-test when LLVM_INSTALL_TOOLCHAIN_ONLY=ON.
...
llvm-svn: 253099
2015-11-13 22:41:14 +00:00
Argyrios Kyrtzidis
2cab8eec74
[CMake] If 'INTERNAL_INSTALL_PREFIX' is set, use it for determining the install destination of c-index-test and the libclang headers.
...
llvm-svn: 253001
2015-11-13 01:46:18 +00:00
Ismail Donmez
19a17c3a16
Fix c-index-test install path
...
llvm-svn: 252890
2015-11-12 13:47:35 +00:00
Argyrios Kyrtzidis
e053d44309
[CMake] Setup an install component for libclang and c-index-test.
...
Also don't create libclang dylib symlinks on darwin.
llvm-svn: 252836
2015-11-12 00:46:57 +00:00
Rafael Espindola
8cbf4a0b5d
Support LLVM_BUILD_STATIC.
...
llvm-svn: 221346
2014-11-05 14:04:25 +00:00
Rafael Espindola
cf63c0d2d8
Use -std=gnu89 in tools/c-index-test/CMakeLists.txt
...
With the old use of -std=c89 off_t is not defined and the build fails.
This seems to be another variation of
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40278 .
llvm-svn: 198748
2014-01-08 11:44:42 +00:00
NAKAMURA Takumi
ac85179219
[CMake] Update target_link_libraries() and LLVM_LINK_COMPONENTS for each CMakeLists.txt.
...
llvm-svn: 196916
2013-12-10 12:40:37 +00:00
NAKAMURA Takumi
80e373e44f
c-index-test/CMakeLists.txt: Suggest -isystem to include libxml2 with include_directories(SYSTEM).
...
llvm-svn: 185928
2013-07-09 11:14:30 +00:00
NAKAMURA Takumi
92eb254c3c
[CMake] Move libxml2 stuff from clang to llvm/cmake.
...
llvm-svn: 170225
2012-12-14 18:30:20 +00:00
Dmitri Gribenko
9fcad0947c
Force C89 for c-index-test.c
...
MSVC supports only C89, so it is important to keep c-index-test.c
buildable with C89. However, Clang defaults to C99, so while building
Clang with Clang one can introduce C99 constructs into c-index-test.c
without noticing.
Thanks to Nakamura Takumi for helping with MSVC bits.
llvm-svn: 167561
2012-11-07 23:52:25 +00:00
Dmitri Gribenko
740c0fbe0e
libclang API for comment-to-xml conversion.
...
The implementation also includes a Relax NG schema and tests for the schema
itself. The schema is used in c-index-test to verify that XML documents we
produce are valid. In order to do the validation, we add an optional libxml2
dependency for c-index-test.
Credits for CMake part go to Doug Gregor. Credits for Autoconf part go to Eric
Christopher. Thanks!
llvm-svn: 161431
2012-08-07 17:54:38 +00:00
David Blaikie
5ba8be0e9a
Include clang-check as part of the clang installation.
...
This also tidies up a couple of other tools we were (partially) installing:
* c-index-test was being installed but shouldn't be (it's just a clang-dev tool)
* diagtool was being installed in cmake but not make (& shouldn't be installed in either)
Review by Manuel Klimek, Doug Gregor, and Chandler Carruth.
llvm-svn: 161073
2012-07-31 20:29:59 +00:00
Chandler Carruth
28969b4139
Remove a goofy CMake hack and use the standard CMake facilities to
...
express library-level dependencies within Clang.
This is no more verbose really, and plays nicer with the rest of the
CMake facilities. It should also have no change in functionality.
llvm-svn: 158888
2012-06-21 01:30:21 +00:00
NAKAMURA Takumi
37a4674fdc
Install c-index-test also on CMake build, following up r140681.
...
llvm-svn: 140694
2011-09-28 10:50:23 +00:00
Peter Collingbourne
8f5cf74c77
Re-instate r125819 and r125820 with no functionality change
...
llvm-svn: 126060
2011-02-19 23:03:58 +00:00
Rafael Espindola
a6d2bff0c5
Revert 125820 and 125819 to fix PR9266.
...
llvm-svn: 126050
2011-02-19 21:39:31 +00:00
Peter Collingbourne
14a552b2d7
Move CompilerInstance::LLVMContext and LLVMContext ownership to CodeGenAction
...
This removes the final dependency edge from any lib outside of CodeGen
to core. As a result we can, and do, trim the dependency on core
from libclang, PrintFunctionNames, the unit tests and c-index-test.
While at it, review and trim other unneeded dependencies.
llvm-svn: 125820
2011-02-18 02:25:12 +00:00
NAKAMURA Takumi
98dd73d66c
CMake: LLVM_NO_RTTI must be obsolete now!
...
llvm-svn: 125275
2011-02-10 09:15:32 +00:00
Michael J. Spencer
09476212de
Revert "CMake: Update to use standard CMake dependency tracking facilities instead"
...
This reverts commit r113631
Conflicts:
CMakeLists.txt
lib/CodeGen/CMakeLists.txt
llvm-svn: 113817
2010-09-13 23:54:41 +00:00
Michael J. Spencer
0881f4a367
CMake: Update to use standard CMake dependency tracking facilities instead
...
of whatever we were using before...
llvm-svn: 113631
2010-09-10 21:13:16 +00:00
Douglas Gregor
c9199f522f
Clean up CMake dependencies
...
llvm-svn: 113489
2010-09-09 15:44:58 +00:00
John McCall
8b0666cf79
Another step in the process of making the parser depend on Sema:
...
- move DeclSpec &c into the Sema library
- move ParseAST into the Parse library
Reflect this change in a thousand different includes.
Reflect this change in the link orders.
llvm-svn: 111667
2010-08-20 18:27:03 +00:00
Sebastian Redl
135bcc791b
Reintroduce the serialization library, with fixed dependencies.
...
llvm-svn: 111279
2010-08-17 20:43:28 +00:00
Daniel Dunbar
d5a2a073a0
Rename 'CIndex' to 'libclang', since it has basically become our stable public
...
(C) API, and will likely grow further in this direction in the future.
llvm-svn: 102779
2010-04-30 21:51:10 +00:00
Daniel Dunbar
845a87bd04
Normalize CIndex/c-index-test/index-test link lines in the hopes it will fix
...
*something*.
- We really need to fix how LLVM's build systems manage
linking. Pretty-please-someone-else-do-this? :)
llvm-svn: 90350
2009-12-02 21:47:55 +00:00
Daniel Dunbar
e7fe5b2613
Fix relative ordering of Analyis library.
...
llvm-svn: 90312
2009-12-02 08:44:24 +00:00
Daniel Dunbar
764c082027
Add ASTUnit::LoadFromCompilerInvocation, which does what it says.
...
Also, add an -ast-from-source option to index-test which allows index-test to
run on source files directly.
llvm-svn: 90223
2009-12-01 09:51:01 +00:00
Douglas Gregor
084a654334
Make sure that c-index-test links as a C++ executable
...
llvm-svn: 83335
2009-10-05 22:29:42 +00:00
Steve Naroff
a1c728438c
Lot's of little changes to get the C-based indexing API going...
...
Work in progress.
llvm-svn: 80367
2009-08-28 15:28:48 +00:00