r201579 - Add files that I forgot to svn add in 201578.
Dmitri Gribenko
gribozavr at gmail.com
Tue Feb 18 07:29:17 PST 2014
Author: gribozavr
Date: Tue Feb 18 09:29:17 2014
New Revision: 201579
URL: http://llvm.org/viewvc/llvm-project?rev=201579&view=rev
Log:
Add files that I forgot to svn add in 201578.
Added:
cfe/trunk/unittests/libclang/CMakeLists.txt
cfe/trunk/unittests/libclang/LibclangTest.cpp
cfe/trunk/unittests/libclang/Makefile
Added: cfe/trunk/unittests/libclang/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/libclang/CMakeLists.txt?rev=201579&view=auto
==============================================================================
--- cfe/trunk/unittests/libclang/CMakeLists.txt (added)
+++ cfe/trunk/unittests/libclang/CMakeLists.txt Tue Feb 18 09:29:17 2014
@@ -0,0 +1,7 @@
+add_clang_unittest(libclangTests
+ LibclangTest.cpp
+ )
+
+target_link_libraries(libclangTests
+ libclang
+ )
Added: cfe/trunk/unittests/libclang/LibclangTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/libclang/LibclangTest.cpp?rev=201579&view=auto
==============================================================================
--- cfe/trunk/unittests/libclang/LibclangTest.cpp (added)
+++ cfe/trunk/unittests/libclang/LibclangTest.cpp Tue Feb 18 09:29:17 2014
@@ -0,0 +1,17 @@
+//===- unittests/libclang/LibclangTest.cpp --- libclang tests -------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "clang-c/Index.h"
+#include "gtest/gtest.h"
+
+TEST(libclang, TestInvalidArgs) {
+ EXPECT_EQ(CXError_InvalidArguments,
+ clang_parseTranslationUnit2(0, 0, 0, 0, 0, 0, 0, 0));
+}
+
Added: cfe/trunk/unittests/libclang/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/libclang/Makefile?rev=201579&view=auto
==============================================================================
--- cfe/trunk/unittests/libclang/Makefile (added)
+++ cfe/trunk/unittests/libclang/Makefile Tue Feb 18 09:29:17 2014
@@ -0,0 +1,27 @@
+##===- unittests/libclang/Makefile -------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+CLANG_LEVEL = ../..
+TESTNAME = libclang
+LINK_LIBS_IN_SHARED := 1
+
+include $(CLANG_LEVEL)/../../Makefile.config
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader support mc option
+
+# Note that 'USEDLIBS' must include all of the core clang libraries
+# when -static is given to linker on cygming.
+USEDLIBS = clang.a \
+ clangIndex.a clangFormat.a clangRewriteCore.a \
+ clangFrontend.a clangDriver.a \
+ clangTooling.a \
+ clangSerialization.a clangParse.a clangSema.a \
+ clangAnalysis.a clangEdit.a clangAST.a clangLex.a \
+ clangBasic.a
+
+include $(CLANG_LEVEL)/unittests/Makefile
More information about the cfe-commits
mailing list