Alexander Kornienko
77b1ae5656
Removed standalone clang-ast-dump tool.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160772 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-26 01:44:18 +00:00
Alexander Kornienko
dea8fba3c6
The new clang-ast-dump tool for selective AST dumping. Moved common command-line tool stuff to CommandLineClangTool
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160265 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-16 12:46:48 +00:00
Chandler Carruth
4a26392de0
Extend a workaround for a CMake bug in LLVM's r159593 to apply to
...
a Clang target which hits the same bug directly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159598 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-02 21:46:03 +00:00
Chandler Carruth
1e537f442e
We support a mode where the Clang regression tests are run but not the
...
Clang unit tests. It's not clear why we support this mode in builds
where LLVM is available (LLVM itself does not), but at least this makes
us support it correctly.
This also fixes a long-standing bug where we would pass the unit test
param flag to lit in the standalone build even though the standalone
build *never* has the unittests built and ready for testing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159594 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-02 21:37:04 +00:00
Chandler Carruth
56e9b0d28e
Switch from using a lit.cfg-generator variable to the real variable in
...
the standalone mode. We've changed scoping and sequencing of variables
being defined and that cause this to start to be unset breaking some
cmake users. Thanks to Jordan Rose for the report.
The fix also makes the condition on the preceding line much more
sensible. =D
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159576 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-02 20:14:59 +00:00
Chandler Carruth
82a53bd389
Switch Clang to use the new common LLVM CMake infrastructure for adding
...
lit testsuites. This sinks all management of the aggregate lit runs into
the LLVM CMake files, making Clang only responsible for declaring its
own testsuite. In the process we fix numerous "bugs" where the proper
method of invoking lit has changed over time, and the old system
encoded several broken artifacts of this in ABIs and compatibility
tests.
It also switches to 'check-clang' for the canonical name of the test
suite, although 'clang-test' remains as an alias.
The situation when Clang is being built in standalone mode is little
changed. It replicates just enough of the lit setup to cope with the
oddities of being run outside of an LLVM build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159483 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-30 10:14:27 +00:00
Chandler Carruth
65cf624deb
Switch Clang's CMake lit.site.cfg generation over to use the common
...
helpers rather than its own special-rolled code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159398 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-29 00:39:23 +00:00
Chandler Carruth
4421e55fc3
Remove a completely unused and remarkably inaccurate list of test
...
directories from the cmake file. Dunno what the history is here, but
we're not using it.
More refactorings to come here.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159261 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 10:06:26 +00:00
Chandler Carruth
073b98e76b
Update the Clang CMake build to reflect the name change in LLVM r159258.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159260 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 09:49:07 +00:00
Manuel Klimek
43d5aac4b0
Add the dependency on clang-check to clang-test, so clang-check
...
can be integration tested.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154009 91177308-0d34-0410-b5e6-96231b3b80d8
2012-04-04 12:18:22 +00:00
NAKAMURA Takumi
add5adb9aa
CMake: Promote the testing targets out of folders on IDE.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149220 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-30 03:15:47 +00:00
Peter Collingbourne
744d90bfe2
CUDA: set proper calling conventions for PTX
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141296 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-06 16:49:54 +00:00
NAKAMURA Takumi
a47027bbd8
CMake: "clang-test" may not depend on check.deps.
...
...I believe it would not break anything...
FIXME: "check-all" may not be generated w/o LLVM_INCLUDE_TESTS.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137709 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-16 03:45:31 +00:00
Ted Kremenek
8425126b7b
Add diagtool-based test where we enforce that no additional warnings can be added to Clang without a -W flag.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137369 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-11 22:06:55 +00:00
NAKAMURA Takumi
582c1fb301
test/CMakeLists.txt: Re-indent.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135591 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-20 16:35:49 +00:00
Douglas Gregor
fc71ac810f
Don't refer to check.deps unless LLVM_INCLUDE_TESTS is enabled
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135300 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-15 21:03:20 +00:00
NAKAMURA Takumi
1d78f32fc4
test/CMakeLists.txt: clang-test may depend on llc when LLVM is built together.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134874 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-10 17:45:28 +00:00
NAKAMURA Takumi
92d9a1e339
test/CMakeLists.txt: Fix ClangUnitTests to be built with clang-test and check-all.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134873 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-10 17:45:23 +00:00
NAKAMURA Takumi
064fa99dbe
test/CMakeLists.txt: Add missing c-arcmt-test to clang-test.deps.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134851 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-09 23:36:37 +00:00
Andrew Trick
7140b3cde0
cmake+lit: final cleanup related to the recent churn
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133730 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-23 18:00:48 +00:00
Andrew Trick
fc0f40acc6
Only do config-time substitution of LLVM_BUILD_MODE in
...
test/lit.site.cfg, not Unit/test/lit.site.cfg.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133609 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-22 05:44:01 +00:00
Chandler Carruth
fd8af77307
Add another dependency to the clang-test CMake target, this time to support lit.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133138 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-16 02:21:11 +00:00
Chandler Carruth
4f5ef6e11f
Add the new arcmt-test tool to the clang-test dependencies with
...
c-index-test and friends. This brings the failures on CMake clang tests
from 23 to 2 on Linux.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133137 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-16 02:01:48 +00:00
Douglas Gregor
6b07d31e41
Remove the clang-test-XXX targets from the CMake builds; they really aren't useful
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131728 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-20 15:01:17 +00:00
Douglas Gregor
9e63d4aed8
Nth time's a charm?
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126461 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-25 00:46:48 +00:00
Douglas Gregor
02bba191ed
CMake target check.deps only exists when LLVM_INCLUDE_TESTS
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126460 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-25 00:43:05 +00:00
NAKAMURA Takumi
378d2a110a
CMake: Don't use ${CMAKE_CFG_INTDIR} for installed llvm-lit on Visual Studio.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126310 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-23 12:07:49 +00:00
Oscar Fuentes
a3f787c32b
Put targets on folders, if the IDE supports the feature.
...
Requires CMake 2.8.3 or newer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126094 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-20 22:06:44 +00:00
Daniel Dunbar
299696c8c9
More correct fix for CMake breakage I was seeing, my buildbots use
...
LLVM_INCLUDE_TESTS:=OFF, which may no longer be necessary for all I know.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125985 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-18 22:55:32 +00:00
Daniel Dunbar
35eaa281af
Unbreak CMake build on MSVC9, chapuni please check.
...
Without this I get:
--
-- Generating done
CMake Error: Unknown Target referenced : check.deps
CMake Error: Target: check-all depends on unknown target: check.deps
--
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125976 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-18 22:24:23 +00:00
NAKAMURA Takumi
652f1ef660
test/CMakeLists.txt: Don't depend on llvm toolchain at clang-standalone build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125646 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-16 03:07:10 +00:00
Peter Collingbourne
39d3e7a26c
OpenCL: semantic analysis support for cl_khr_fp64 extension
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125588 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-15 19:46:23 +00:00
Jeffrey Yasskin
718b01d077
Add CMake support to the clang unittests.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125561 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-15 07:54:28 +00:00
Peter Collingbourne
f315fa81ee
OpenCL: add support for __kernel, kernel keywords and EXTENSION,
...
FP_CONTRACT pragmas. Patch originally by ARM.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125475 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-14 01:42:53 +00:00
Oscar Fuentes
ba43a4da6a
Support running tests from the VS IDE and XCode.
...
Untested, but should work :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124975 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-05 21:37:51 +00:00
Oscar Fuentes
57ca32bbf0
Support `make clang-test' when Clang is compiled outside of LLVM.
...
This may not work on build platforms that place the binaries on
special folders ($build_dir/bin/Release/) such as the VS IDE and
XCode. For fixing this it is necessary to add a lit.py configuration
option for saying where the Clang binaries are, and apply to that path
the same magit that is used with the path to the LLVM tools binary
directory. Doing this requires a bit of autoconf work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124969 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-05 19:08:56 +00:00
NAKAMURA Takumi
c3189e950e
CMake: Fix test. CMake has not built unittests yet.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124787 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-03 09:01:12 +00:00
NAKAMURA Takumi
f0d9d8b793
Add dependency to "make clang-test check-all".
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121458 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-10 02:58:03 +00:00
Peter Collingbourne
ced7671c18
Basic, Sema: add support for CUDA location attributes
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120545 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-01 03:15:31 +00:00
NAKAMURA Takumi
3aa8c64305
test/CMakeLists.txt: Implement the target "check-all". For now, it has no dependencies.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120280 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-29 01:18:56 +00:00
NAKAMURA Takumi
c84aca4b50
test/CMakeLists.txt: Use ${LLVM_LIT_ARGS} and remove redundant arguments "-sv" and "--no-progress-bar".
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118777 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-11 04:09:51 +00:00
Daniel Dunbar
2b1acd47e0
CMake: Clang test targets depend on the {FileCheck,not,count} tools.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109816 91177308-0d34-0410-b5e6-96231b3b80d8
2010-07-29 22:57:17 +00:00
Ted Kremenek
f7507f29d7
Add test cases for r98003 and r98006.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98008 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08 23:38:27 +00:00
Chandler Carruth
dbdad6d933
Remove a few more references to index-test; this was killed in r94210.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94522 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-26 05:36:44 +00:00
Daniel Dunbar
864db01dec
Remove clang-cc tool, it has joined in unholy union with clang.
...
- tools/driver will be renamed to tools/clang at some point.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91195 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-12 00:56:47 +00:00
Daniel Dunbar
e33f82f346
CMake: Add support for running tests with valgrind.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89625 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-22 21:55:22 +00:00
Daniel Dunbar
30eb055802
Simplify.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86456 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-08 09:46:39 +00:00
Daniel Dunbar
1e63492a14
Rework site config for cmake to be generated at configure time, and only pass
...
the 'build_config' value in at runtime using the new lit runtime user parameter
feature.
This simplifies things and drops a dependency on 'sed', FWIW.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86421 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-07 23:53:32 +00:00
Daniel Dunbar
b258d8f961
Add clang_site_config user variable, so that extra tests (e.g., utils/C++Syntax)
...
can always find the main clang site config (when invoked via CMake/Makefiles, at
least).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86139 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-05 16:36:19 +00:00
Daniel Dunbar
e9a7323737
Add target_triple to Clang site configuration.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85881 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-03 07:25:53 +00:00